Back to index

lightning-sunbird  0.9+nobinonly
nsLocalStringBundle.h
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is mozilla.org code.
00015  *
00016  * The Initial Developer of the Original Code is
00017  * Netscape Communications Corporation.
00018  * Portions created by the Initial Developer are Copyright (C) 1998
00019  * the Initial Developer. All Rights Reserved.
00020  *
00021  * Contributor(s):
00022  *
00023  * Alternatively, the contents of this file may be used under the terms of
00024  * either of the GNU General Public License Version 2 or later (the "GPL"),
00025  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00026  * in which case the provisions of the GPL or the LGPL are applicable instead
00027  * of those above. If you wish to allow use of your version of this file only
00028  * under the terms of either the GPL or the LGPL, and not to allow others to
00029  * use your version of this file under the terms of the MPL, indicate your
00030  * decision by deleting the provisions above and replace them with the notice
00031  * and other provisions required by the GPL or the LGPL. If you do not delete
00032  * the provisions above, a recipient may use your version of this file under
00033  * the terms of any one of the MPL, the GPL or the LGPL.
00034  *
00035  * ***** END LICENSE BLOCK ***** */
00036 
00037 #ifndef _nsLocalStringBundle_H__
00038 #define _nsLocalStringBundle_H__
00039 
00040 #include "nsIMsgStringService.h"
00041 #include "nsIStringBundle.h"
00042 #include "nsMsgLocalCID.h"
00043 #include "nsCOMPtr.h"
00044 
00045 class nsLocalStringService : public nsIMsgStringService
00046 {
00047 public:
00048   nsLocalStringService();
00049   virtual ~nsLocalStringService();
00050 
00051   NS_DECL_ISUPPORTS
00052   NS_DECL_NSIMSGSTRINGSERVICE
00053 
00054 private:
00055   nsCOMPtr<nsIStringBundle> mLocalStringBundle;
00056   nsresult InitializeStringBundle();
00057 };
00058 
00059 #define       IMAP_OUT_OF_MEMORY                                 -1000
00060 #define       LOCAL_STATUS_SELECTING_MAILBOX                      4000
00061 #define       LOCAL_STATUS_DOCUMENT_DONE                                            4001
00062 #define LOCAL_STATUS_RECEIVING_MESSAGE_OF                             4002
00063 #define POP3_SERVER_ERROR                                                           4003
00064 #define POP3_USERNAME_FAILURE                                                       4004
00065 #define POP3_PASSWORD_FAILURE                                                       4005
00066 #define POP3_MESSAGE_WRITE_ERROR                                             4006
00067 #define POP3_CONNECT_HOST_CONTACTED_SENDING_LOGIN_INFORMATION 4007
00068 #define POP3_NO_MESSAGES                                                            4008
00069 #define POP3_DOWNLOAD_COUNT                                                         4009
00070 #define POP3_SERVER_DOES_NOT_SUPPORT_UIDL_ETC                         4010
00071 #define POP3_SERVER_DOES_NOT_SUPPORT_THE_TOP_COMMAND           4011
00072 #define POP3_RETR_FAILURE                                                           4012
00073 #define POP3_PASSWORD_UNDEFINED                                                     4013
00074 #define POP3_USERNAME_UNDEFINED                                                     4014
00075 #define POP3_LIST_FAILURE                                                           4015
00076 #define POP3_DELE_FAILURE                                                           4016
00077 #define POP3_ENTER_PASSWORD_PROMPT                          4017
00078 #define POP3_PREVIOUSLY_ENTERED_PASSWORD_IS_INVALID_ETC     4018
00079 #define POP3_NO_ANSWER                                      4019
00080 #define POP3_ENTER_PASSWORD_PROMPT_TITLE                4020
00081 #define POP3_MOVE_FOLDER_TO_TRASH                           4021
00082 #define POP3_FOLDER_FOR_TRASH                               4023
00083 #define POP3_STAT_FAILURE                                   4024
00084 #define POP3_SERVER_SAID                                    4025
00085 #define DELETING_MSGS_STATUS                                4026
00086 #define COPYING_MSGS_STATUS                                 4027
00087 #define MOVING_MSGS_STATUS                                  4028
00088 #define POP3_MESSAGE_FOLDER_BUSY                            4029
00089 #define CANNOT_PROCESS_SECURE_AUTH                          4030
00090 #define CANNOT_PROCESS_APOP_AUTH                            4031
00091 #define MOVEMAIL_SPOOL_FILE_LOCKED                          4032
00092 #define MOVEMAIL_CANT_OPEN_SPOOL_FILE                       4033
00093 #define MOVEMAIL_CANT_CREATE_LOCK                           4034
00094 #define MOVEMAIL_CANT_DELETE_LOCK                           4035
00095 #define MOVEMAIL_CANT_TRUNCATE_SPOOL_FILE                   4036
00096 #define MOVEMAIL_SPOOL_FILE_NOT_FOUND                       4037
00097 #define POP3_TMP_DOWNLOAD_FAILED                            4038
00098 #define NS_ERROR_COULD_NOT_CONNECT_VIA_TLS                  4039
00099 
00100 #endif /* _nsLocalStringBundle_H__ */