Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsImapStringBundle.h File Reference
#include "nsIStringBundle.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IMAP_STATUS_SELECTING_MAILBOX   5000
#define IMAP_STATUS_CREATING_MAILBOX   5001
#define IMAP_STATUS_DELETING_MAILBOX   5002
#define IMAP_STATUS_RENAMING_MAILBOX   5003
#define IMAP_STATUS_LOOKING_FOR_MAILBOX   5004
#define IMAP_STATUS_SUBSCRIBE_TO_MAILBOX   5005
#define IMAP_STATUS_UNSUBSCRIBE_MAILBOX   5006
#define IMAP_STATUS_SEARCH_MAILBOX   5007
#define IMAP_STATUS_MSG_INFO   5008
#define IMAP_STATUS_CLOSE_MAILBOX   5009
#define IMAP_STATUS_EXPUNGING_MAILBOX   5010
#define IMAP_STATUS_LOGGING_OUT   5011
#define IMAP_STATUS_CHECK_COMPAT   5012
#define IMAP_STATUS_SENDING_LOGIN   5013
#define IMAP_STATUS_SENDING_AUTH_LOGIN   5014
#define IMAP_DOWNLOADING_MESSAGE   5015
#define IMAP_STATUS_GETTING_NAMESPACE   5020
#define IMAP_UPGRADE_NO_PERSONAL_NAMESPACE   5021
#define IMAP_UPGRADE_PROMPT_USER_2   5024
#define IMAP_UPGRADE_CUSTOM   5026
#define IMAP_UPGRADE_SUCCESSFUL   5028
#define IMAP_GETTING_ACL_FOR_FOLDER   5029
#define IMAP_GETTING_SERVER_INFO   5030
#define IMAP_GETTING_MAILBOX_INFO   5031
#define IMAP_EMPTY_MIME_PART   5032
#define IMAP_UNABLE_TO_SAVE_MESSAGE   5033
#define IMAP_NO_ONLINE_FOLDER   5034
#define IMAP_LOGIN_FAILED   5035
#define IMAP_RECEIVING_MESSAGE_HEADERS_OF   5036
#define IMAP_RECEIVING_MESSAGE_FLAGS_OF   5037
#define IMAP_DELETING_MESSAGES   5038
#define IMAP_DELETING_MESSAGE   5039
#define IMAP_MOVING_MESSAGES_TO   5040
#define IMAP_MOVING_MESSAGE_TO   5041
#define IMAP_COPYING_MESSAGES_TO   5042
#define IMAP_COPYING_MESSAGE_TO   5043
#define IMAP_SELECTING_MAILBOX   5044
#define IMAP_FOLDER_RECEIVING_MESSAGE_OF   5045
#define IMAP_DISCOVERING_MAILBOX   5046
#define IMAP_ENTER_PASSWORD_PROMPT   5047
#define IMAP_SERVER_NOT_IMAP4   5048
#define IMAP_SERVER_SAID   5049
#define IMAP_DONE   5050
#define IMAP_ENTER_PASSWORD_PROMPT_TITLE   5051
#define IMAP_UNKNOWN_HOST_ERROR   5052
#define IMAP_CONNECTION_REFUSED_ERROR   5053
#define IMAP_NET_TIMEOUT_ERROR   5054
#define IMAP_MOVE_FOLDER_TO_TRASH   5055
#define IMAP_NO_NEW_MESSAGES   5056
#define IMAP_DEFAULT_ACCOUNT_NAME   5057
#define IMAP_DELETE_NO_TRASH   5058
#define IMAP_HTML_NO_CACHED_BODY_TITLE   5059
#define IMAP_HTML_NO_CACHED_BODY_BODY   5060
#define IMAP_EMPTY_TRASH_CONFIRM   5061
#define IMAP_PERSONAL_FILING_CABINET   5062
#define IMAP_PFC_READ_MAIL   5063
#define IMAP_PFC_SENT_MAIL   5064
#define IMAP_SPECIAL_CHAR   5065
#define IMAP_PERSONAL_SHARED_FOLDER_TYPE_NAME   5066
#define IMAP_PUBLIC_FOLDER_TYPE_NAME   5067
#define IMAP_OTHER_USERS_FOLDER_TYPE_NAME   5068
#define IMAP_PERSONAL_FOLDER_TYPE_DESCRIPTION   5069
#define IMAP_PERSONAL_SHARED_FOLDER_TYPE_DESCRIPTION   5070
#define IMAP_PUBLIC_FOLDER_TYPE_DESCRIPTION   5071
#define IMAP_OTHER_USERS_FOLDER_TYPE_DESCRIPTION   5072
#define IMAP_ACL_FULL_RIGHTS   5073
#define IMAP_ACL_LOOKUP_RIGHT   5074
#define IMAP_ACL_READ_RIGHT   5075
#define IMAP_ACL_SEEN_RIGHT   5076
#define IMAP_ACL_WRITE_RIGHT   5077
#define IMAP_ACL_INSERT_RIGHT   5078
#define IMAP_ACL_POST_RIGHT   5079
#define IMAP_ACL_CREATE_RIGHT   5080
#define IMAP_ACL_DELETE_RIGHT   5081
#define IMAP_ACL_ADMINISTER_RIGHT   5082
#define IMAP_UNKNOWN_USER   5083
#define IMAP_SERVER_DOESNT_SUPPORT_ACL   5084
#define IMAP_SERVER_DISCONNECTED   5090
#define IMAP_REDIRECT_LOGIN_FAILED   5091
#define IMAP_SUBSCRIBE_PROMPT   5092
#define IMAP_SERVER_DROPPED_CONNECTION   5093
#define IMAP_QUOTA_STATUS_FOLDERNOTOPEN   5095
#define IMAP_QUOTA_STATUS_NOTSUPPORTED   5096
#define IMAP_QUOTA_STATUS_NOQUOTA   5097
#define IMAP_OUT_OF_MEMORY   5100
#define IMAP_AUTH_SECURE_NOTSUPPORTED   5102
#define IMAP_COPYING_MESSAGE_OF   5103
#define IMAP_LOGIN_DISABLED   5104

Functions

PR_BEGIN_EXTERN_C nsresult IMAPGetStringByID (PRInt32 stringID, PRUnichar **aString)
nsresult IMAPGetStringBundle (nsIStringBundle **aBundle)

Define Documentation

Definition at line 126 of file nsImapStringBundle.h.

Definition at line 124 of file nsImapStringBundle.h.

Definition at line 125 of file nsImapStringBundle.h.

Definition at line 117 of file nsImapStringBundle.h.

Definition at line 122 of file nsImapStringBundle.h.

Definition at line 118 of file nsImapStringBundle.h.

Definition at line 123 of file nsImapStringBundle.h.

Definition at line 119 of file nsImapStringBundle.h.

Definition at line 120 of file nsImapStringBundle.h.

Definition at line 121 of file nsImapStringBundle.h.

Definition at line 137 of file nsImapStringBundle.h.

Definition at line 97 of file nsImapStringBundle.h.

Definition at line 138 of file nsImapStringBundle.h.

Definition at line 87 of file nsImapStringBundle.h.

Definition at line 86 of file nsImapStringBundle.h.

Definition at line 101 of file nsImapStringBundle.h.

Definition at line 102 of file nsImapStringBundle.h.

Definition at line 83 of file nsImapStringBundle.h.

Definition at line 82 of file nsImapStringBundle.h.

Definition at line 90 of file nsImapStringBundle.h.

#define IMAP_DONE   5050

Definition at line 94 of file nsImapStringBundle.h.

Definition at line 67 of file nsImapStringBundle.h.

Definition at line 76 of file nsImapStringBundle.h.

Definition at line 105 of file nsImapStringBundle.h.

Definition at line 91 of file nsImapStringBundle.h.

Definition at line 95 of file nsImapStringBundle.h.

Definition at line 89 of file nsImapStringBundle.h.

Definition at line 73 of file nsImapStringBundle.h.

Definition at line 75 of file nsImapStringBundle.h.

Definition at line 74 of file nsImapStringBundle.h.

Definition at line 104 of file nsImapStringBundle.h.

Definition at line 103 of file nsImapStringBundle.h.

Definition at line 139 of file nsImapStringBundle.h.

Definition at line 79 of file nsImapStringBundle.h.

Definition at line 99 of file nsImapStringBundle.h.

Definition at line 85 of file nsImapStringBundle.h.

Definition at line 84 of file nsImapStringBundle.h.

Definition at line 98 of file nsImapStringBundle.h.

Definition at line 100 of file nsImapStringBundle.h.

Definition at line 78 of file nsImapStringBundle.h.

Definition at line 116 of file nsImapStringBundle.h.

Definition at line 112 of file nsImapStringBundle.h.

Definition at line 136 of file nsImapStringBundle.h.

Definition at line 106 of file nsImapStringBundle.h.

Definition at line 113 of file nsImapStringBundle.h.

Definition at line 114 of file nsImapStringBundle.h.

Definition at line 110 of file nsImapStringBundle.h.

Definition at line 107 of file nsImapStringBundle.h.

Definition at line 108 of file nsImapStringBundle.h.

Definition at line 115 of file nsImapStringBundle.h.

Definition at line 111 of file nsImapStringBundle.h.

Definition at line 133 of file nsImapStringBundle.h.

Definition at line 135 of file nsImapStringBundle.h.

Definition at line 134 of file nsImapStringBundle.h.

Definition at line 81 of file nsImapStringBundle.h.

Definition at line 80 of file nsImapStringBundle.h.

Definition at line 130 of file nsImapStringBundle.h.

Definition at line 88 of file nsImapStringBundle.h.

Definition at line 129 of file nsImapStringBundle.h.

Definition at line 128 of file nsImapStringBundle.h.

Definition at line 132 of file nsImapStringBundle.h.

Definition at line 92 of file nsImapStringBundle.h.

Definition at line 93 of file nsImapStringBundle.h.

Definition at line 109 of file nsImapStringBundle.h.

Definition at line 64 of file nsImapStringBundle.h.

Definition at line 61 of file nsImapStringBundle.h.

Definition at line 53 of file nsImapStringBundle.h.

Definition at line 54 of file nsImapStringBundle.h.

Definition at line 62 of file nsImapStringBundle.h.

Definition at line 68 of file nsImapStringBundle.h.

Definition at line 63 of file nsImapStringBundle.h.

Definition at line 56 of file nsImapStringBundle.h.

Definition at line 60 of file nsImapStringBundle.h.

Definition at line 55 of file nsImapStringBundle.h.

Definition at line 59 of file nsImapStringBundle.h.

Definition at line 52 of file nsImapStringBundle.h.

Definition at line 66 of file nsImapStringBundle.h.

Definition at line 65 of file nsImapStringBundle.h.

Definition at line 57 of file nsImapStringBundle.h.

Definition at line 58 of file nsImapStringBundle.h.

Definition at line 131 of file nsImapStringBundle.h.

Definition at line 77 of file nsImapStringBundle.h.

Definition at line 96 of file nsImapStringBundle.h.

Definition at line 127 of file nsImapStringBundle.h.

Definition at line 71 of file nsImapStringBundle.h.

Definition at line 69 of file nsImapStringBundle.h.

Definition at line 70 of file nsImapStringBundle.h.

Definition at line 72 of file nsImapStringBundle.h.


Function Documentation

Definition at line 61 of file nsImapStringBundle.cpp.

{
  nsresult rv=NS_OK;
  nsCOMPtr<nsIStringBundleService> stringService = do_GetService(NS_STRINGBUNDLE_CONTRACTID, &rv);
  NS_ENSURE_SUCCESS(rv, rv);
  if (!stringService) return NS_ERROR_NULL_POINTER;
  nsCOMPtr<nsIStringBundle> stringBundle;
  rv = stringService->CreateBundle(IMAP_MSGS_URL, getter_AddRefs(stringBundle));
  *aBundle = stringBundle;
  NS_IF_ADDREF(*aBundle);
  return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 50 of file nsImapStringBundle.cpp.

{
  nsresult res=NS_OK;
  nsCOMPtr <nsIStringBundle> sBundle;
  res = IMAPGetStringBundle(getter_AddRefs(sBundle));
  if (NS_SUCCEEDED(res) && sBundle)
    res = sBundle->GetStringFromID(stringID, aString);
  return res;
}

Here is the call graph for this function:

Here is the caller graph for this function: