DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/imap/public/nsIImapServerSink.idl
 */

#ifndef __gen_nsIImapServerSink_h__
#define __gen_nsIImapServerSink_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_MailNewsTypes2_h__
#include "MailNewsTypes2.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIMsgWindow; /* forward declaration */

class nsIMsgMailNewsUrl; /* forward declaration */

class nsIImapProtocol; /* forward declaration */

class nsIImapUrl; /* forward declaration */

class nsIImapMockChannel; /* forward declaration */


/* starting interface:    nsIImapServerSink */
#define NS_IIMAPSERVERSINK_IID_STR "2160c641-e4fa-4bbc-ab8b-d9ba45069027"

#define NS_IIMAPSERVERSINK_IID \
  {0x2160c641, 0xe4fa, 0x4bbc, \
    { 0xab, 0x8b, 0xd9, 0xba, 0x45, 0x06, 0x90, 0x27 }}

class NS_NO_VTABLE nsIImapServerSink : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAPSERVERSINK_IID)

  /* boolean possibleImapMailbox (in ACString folderPath, in char hierarchyDelimiter, in long boxFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PossibleImapMailbox(const nsACString& folderPath, char hierarchyDelimiter, int32_t boxFlags, bool *_retval) = 0;

  /* boolean folderNeedsACLInitialized (in ACString folderPath); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FolderNeedsACLInitialized(const nsACString& folderPath, bool *_retval) = 0;

  /* void addFolderRights (in ACString folderPath, in ACString userName, in ACString rights); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddFolderRights(const nsACString& folderPath, const nsACString& userName, const nsACString& rights) = 0;

  /* void refreshFolderRights (in ACString folderPath); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RefreshFolderRights(const nsACString& folderPath) = 0;

  /* void discoveryDone (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DiscoveryDone(void) = 0;

  /* void onlineFolderDelete (in ACString folderName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnlineFolderDelete(const nsACString& folderName) = 0;

  /* void onlineFolderCreateFailed (in ACString aFolderName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnlineFolderCreateFailed(const nsACString& aFolderName) = 0;

  /* void onlineFolderRename (in nsIMsgWindow msgWindow, in ACString oldName, in ACString newName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnlineFolderRename(nsIMsgWindow *msgWindow, const nsACString& oldName, const nsACString& newName) = 0;

  /* boolean folderIsNoSelect (in ACString folderName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FolderIsNoSelect(const nsACString& folderName, bool *_retval) = 0;

  /* void setFolderAdminURL (in ACString folderName, in ACString adminUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFolderAdminURL(const nsACString& folderName, const nsACString& adminUrl) = 0;

  /* boolean folderVerifiedOnline (in ACString folderName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FolderVerifiedOnline(const nsACString& folderName, bool *_retval) = 0;

  /* void setCapability (in unsigned long long capability); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCapability(uint64_t capability) = 0;

  /* void setServerID (in ACString aServerID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetServerID(const nsACString& aServerID) = 0;

  /* boolean loadNextQueuedUrl (in nsIImapProtocol protocol); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadNextQueuedUrl(nsIImapProtocol *protocol, bool *_retval) = 0;

  /* nsIImapMockChannel prepareToRetryUrl (in nsIImapUrl imapUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PrepareToRetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel **_retval) = 0;

  /* void suspendUrl (in nsIImapUrl aImapUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SuspendUrl(nsIImapUrl *aImapUrl) = 0;

  /* void retryUrl (in nsIImapUrl imapUrl, in nsIImapMockChannel channel); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel *channel) = 0;

  /* void abortQueuedUrls (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AbortQueuedUrls(void) = 0;

  /* AString getImapStringByName (in string msgName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetImapStringByName(const char * msgName, nsAString& _retval) = 0;

  /* int32_t promptLoginFailed (in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PromptLoginFailed(nsIMsgWindow *aMsgWindow, int32_t *_retval) = 0;

  /* void fEAlert (in AString aAlertString, in nsIMsgMailNewsUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FEAlert(const nsAString& aAlertString, nsIMsgMailNewsUrl *aUrl) = 0;

  /* void fEAlertWithName (in string aMsgName, in nsIMsgMailNewsUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FEAlertWithName(const char * aMsgName, nsIMsgMailNewsUrl *aUrl) = 0;

  /* void fEAlertFromServer (in ACString aServerString, in nsIMsgMailNewsUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FEAlertFromServer(const nsACString& aServerString, nsIMsgMailNewsUrl *aUrl) = 0;

  /* void commitNamespaces (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CommitNamespaces(void) = 0;

  /* void asyncGetPassword (in nsIImapProtocol aProtocol, in boolean aNewPasswordRequested, out AString aPassword); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncGetPassword(nsIImapProtocol *aProtocol, bool aNewPasswordRequested, nsAString& aPassword) = 0;

  /* attribute boolean userAuthenticated; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUserAuthenticated(bool *aUserAuthenticated) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUserAuthenticated(bool aUserAuthenticated) = 0;

  /* void setMailServerUrls (in ACString manageMailAccount, in ACString manageLists, in ACString manageFilters); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMailServerUrls(const nsACString& manageMailAccount, const nsACString& manageLists, const nsACString& manageFilters) = 0;

  /* void UpdateTrySTARTTLSPref (in boolean aSucceeded); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateTrySTARTTLSPref(bool aSucceeded) = 0;

  /* readonly attribute ACString arbitraryHeaders; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetArbitraryHeaders(nsACString& aArbitraryHeaders) = 0;

  /* void forgetPassword (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ForgetPassword(void) = 0;

  /* readonly attribute boolean showAttachmentsInline; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetShowAttachmentsInline(bool *aShowAttachmentsInline) = 0;

  /* string cramMD5Hash (in string decodedChallenge, in string key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CramMD5Hash(const char * decodedChallenge, const char * key, char * *_retval) = 0;

  /* readonly attribute ACString loginUsername; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLoginUsername(nsACString& aLoginUsername) = 0;

  /* readonly attribute ACString originalUsername; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOriginalUsername(nsACString& aOriginalUsername) = 0;

  /* readonly attribute ACString serverKey; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetServerKey(nsACString& aServerKey) = 0;

  /* readonly attribute AString serverPassword; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetServerPassword(nsAString& aServerPassword) = 0;

  /* void removeServerConnection (in nsIImapProtocol aProtocol); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveServerConnection(nsIImapProtocol *aProtocol) = 0;

  /* readonly attribute boolean serverShuttingDown; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetServerShuttingDown(bool *aServerShuttingDown) = 0;

  /* void resetServerConnection (in ACString aFolderName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetServerConnection(const nsACString& aFolderName) = 0;

  /* void setServerDoingLsub (in boolean aDoingLsub); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetServerDoingLsub(bool aDoingLsub) = 0;

  /* void SetServerForceSelect (in ACString forceSelect); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetServerForceSelect(const nsACString& forceSelect) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImapServerSink, NS_IIMAPSERVERSINK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPSERVERSINK \
  NS_IMETHOD PossibleImapMailbox(const nsACString& folderPath, char hierarchyDelimiter, int32_t boxFlags, bool *_retval) override; \
  NS_IMETHOD FolderNeedsACLInitialized(const nsACString& folderPath, bool *_retval) override; \
  NS_IMETHOD AddFolderRights(const nsACString& folderPath, const nsACString& userName, const nsACString& rights) override; \
  NS_IMETHOD RefreshFolderRights(const nsACString& folderPath) override; \
  NS_IMETHOD DiscoveryDone(void) override; \
  NS_IMETHOD OnlineFolderDelete(const nsACString& folderName) override; \
  NS_IMETHOD OnlineFolderCreateFailed(const nsACString& aFolderName) override; \
  NS_IMETHOD OnlineFolderRename(nsIMsgWindow *msgWindow, const nsACString& oldName, const nsACString& newName) override; \
  NS_IMETHOD FolderIsNoSelect(const nsACString& folderName, bool *_retval) override; \
  NS_IMETHOD SetFolderAdminURL(const nsACString& folderName, const nsACString& adminUrl) override; \
  NS_IMETHOD FolderVerifiedOnline(const nsACString& folderName, bool *_retval) override; \
  NS_IMETHOD SetCapability(uint64_t capability) override; \
  NS_IMETHOD SetServerID(const nsACString& aServerID) override; \
  NS_IMETHOD LoadNextQueuedUrl(nsIImapProtocol *protocol, bool *_retval) override; \
  NS_IMETHOD PrepareToRetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel **_retval) override; \
  NS_IMETHOD SuspendUrl(nsIImapUrl *aImapUrl) override; \
  NS_IMETHOD RetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel *channel) override; \
  NS_IMETHOD AbortQueuedUrls(void) override; \
  NS_IMETHOD GetImapStringByName(const char * msgName, nsAString& _retval) override; \
  NS_IMETHOD PromptLoginFailed(nsIMsgWindow *aMsgWindow, int32_t *_retval) override; \
  NS_IMETHOD FEAlert(const nsAString& aAlertString, nsIMsgMailNewsUrl *aUrl) override; \
  NS_IMETHOD FEAlertWithName(const char * aMsgName, nsIMsgMailNewsUrl *aUrl) override; \
  NS_IMETHOD FEAlertFromServer(const nsACString& aServerString, nsIMsgMailNewsUrl *aUrl) override; \
  NS_IMETHOD CommitNamespaces(void) override; \
  NS_IMETHOD AsyncGetPassword(nsIImapProtocol *aProtocol, bool aNewPasswordRequested, nsAString& aPassword) override; \
  NS_IMETHOD GetUserAuthenticated(bool *aUserAuthenticated) override; \
  NS_IMETHOD SetUserAuthenticated(bool aUserAuthenticated) override; \
  NS_IMETHOD SetMailServerUrls(const nsACString& manageMailAccount, const nsACString& manageLists, const nsACString& manageFilters) override; \
  NS_IMETHOD UpdateTrySTARTTLSPref(bool aSucceeded) override; \
  NS_IMETHOD GetArbitraryHeaders(nsACString& aArbitraryHeaders) override; \
  NS_IMETHOD ForgetPassword(void) override; \
  NS_IMETHOD GetShowAttachmentsInline(bool *aShowAttachmentsInline) override; \
  NS_IMETHOD CramMD5Hash(const char * decodedChallenge, const char * key, char * *_retval) override; \
  NS_IMETHOD GetLoginUsername(nsACString& aLoginUsername) override; \
  NS_IMETHOD GetOriginalUsername(nsACString& aOriginalUsername) override; \
  NS_IMETHOD GetServerKey(nsACString& aServerKey) override; \
  NS_IMETHOD GetServerPassword(nsAString& aServerPassword) override; \
  NS_IMETHOD RemoveServerConnection(nsIImapProtocol *aProtocol) override; \
  NS_IMETHOD GetServerShuttingDown(bool *aServerShuttingDown) override; \
  NS_IMETHOD ResetServerConnection(const nsACString& aFolderName) override; \
  NS_IMETHOD SetServerDoingLsub(bool aDoingLsub) override; \
  NS_IMETHOD SetServerForceSelect(const nsACString& forceSelect) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIIMAPSERVERSINK \
  nsresult PossibleImapMailbox(const nsACString& folderPath, char hierarchyDelimiter, int32_t boxFlags, bool *_retval); \
  nsresult FolderNeedsACLInitialized(const nsACString& folderPath, bool *_retval); \
  nsresult AddFolderRights(const nsACString& folderPath, const nsACString& userName, const nsACString& rights); \
  nsresult RefreshFolderRights(const nsACString& folderPath); \
  nsresult DiscoveryDone(void); \
  nsresult OnlineFolderDelete(const nsACString& folderName); \
  nsresult OnlineFolderCreateFailed(const nsACString& aFolderName); \
  nsresult OnlineFolderRename(nsIMsgWindow *msgWindow, const nsACString& oldName, const nsACString& newName); \
  nsresult FolderIsNoSelect(const nsACString& folderName, bool *_retval); \
  nsresult SetFolderAdminURL(const nsACString& folderName, const nsACString& adminUrl); \
  nsresult FolderVerifiedOnline(const nsACString& folderName, bool *_retval); \
  nsresult SetCapability(uint64_t capability); \
  nsresult SetServerID(const nsACString& aServerID); \
  nsresult LoadNextQueuedUrl(nsIImapProtocol *protocol, bool *_retval); \
  nsresult PrepareToRetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel **_retval); \
  nsresult SuspendUrl(nsIImapUrl *aImapUrl); \
  nsresult RetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel *channel); \
  nsresult AbortQueuedUrls(void); \
  nsresult GetImapStringByName(const char * msgName, nsAString& _retval); \
  nsresult PromptLoginFailed(nsIMsgWindow *aMsgWindow, int32_t *_retval); \
  nsresult FEAlert(const nsAString& aAlertString, nsIMsgMailNewsUrl *aUrl); \
  nsresult FEAlertWithName(const char * aMsgName, nsIMsgMailNewsUrl *aUrl); \
  nsresult FEAlertFromServer(const nsACString& aServerString, nsIMsgMailNewsUrl *aUrl); \
  nsresult CommitNamespaces(void); \
  nsresult AsyncGetPassword(nsIImapProtocol *aProtocol, bool aNewPasswordRequested, nsAString& aPassword); \
  nsresult GetUserAuthenticated(bool *aUserAuthenticated); \
  nsresult SetUserAuthenticated(bool aUserAuthenticated); \
  nsresult SetMailServerUrls(const nsACString& manageMailAccount, const nsACString& manageLists, const nsACString& manageFilters); \
  nsresult UpdateTrySTARTTLSPref(bool aSucceeded); \
  nsresult GetArbitraryHeaders(nsACString& aArbitraryHeaders); \
  nsresult ForgetPassword(void); \
  nsresult GetShowAttachmentsInline(bool *aShowAttachmentsInline); \
  nsresult CramMD5Hash(const char * decodedChallenge, const char * key, char * *_retval); \
  nsresult GetLoginUsername(nsACString& aLoginUsername); \
  nsresult GetOriginalUsername(nsACString& aOriginalUsername); \
  nsresult GetServerKey(nsACString& aServerKey); \
  nsresult GetServerPassword(nsAString& aServerPassword); \
  nsresult RemoveServerConnection(nsIImapProtocol *aProtocol); \
  nsresult GetServerShuttingDown(bool *aServerShuttingDown); \
  nsresult ResetServerConnection(const nsACString& aFolderName); \
  nsresult SetServerDoingLsub(bool aDoingLsub); \
  nsresult SetServerForceSelect(const nsACString& forceSelect); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPSERVERSINK(_to) \
  NS_IMETHOD PossibleImapMailbox(const nsACString& folderPath, char hierarchyDelimiter, int32_t boxFlags, bool *_retval) override { return _to PossibleImapMailbox(folderPath, hierarchyDelimiter, boxFlags, _retval); } \
  NS_IMETHOD FolderNeedsACLInitialized(const nsACString& folderPath, bool *_retval) override { return _to FolderNeedsACLInitialized(folderPath, _retval); } \
  NS_IMETHOD AddFolderRights(const nsACString& folderPath, const nsACString& userName, const nsACString& rights) override { return _to AddFolderRights(folderPath, userName, rights); } \
  NS_IMETHOD RefreshFolderRights(const nsACString& folderPath) override { return _to RefreshFolderRights(folderPath); } \
  NS_IMETHOD DiscoveryDone(void) override { return _to DiscoveryDone(); } \
  NS_IMETHOD OnlineFolderDelete(const nsACString& folderName) override { return _to OnlineFolderDelete(folderName); } \
  NS_IMETHOD OnlineFolderCreateFailed(const nsACString& aFolderName) override { return _to OnlineFolderCreateFailed(aFolderName); } \
  NS_IMETHOD OnlineFolderRename(nsIMsgWindow *msgWindow, const nsACString& oldName, const nsACString& newName) override { return _to OnlineFolderRename(msgWindow, oldName, newName); } \
  NS_IMETHOD FolderIsNoSelect(const nsACString& folderName, bool *_retval) override { return _to FolderIsNoSelect(folderName, _retval); } \
  NS_IMETHOD SetFolderAdminURL(const nsACString& folderName, const nsACString& adminUrl) override { return _to SetFolderAdminURL(folderName, adminUrl); } \
  NS_IMETHOD FolderVerifiedOnline(const nsACString& folderName, bool *_retval) override { return _to FolderVerifiedOnline(folderName, _retval); } \
  NS_IMETHOD SetCapability(uint64_t capability) override { return _to SetCapability(capability); } \
  NS_IMETHOD SetServerID(const nsACString& aServerID) override { return _to SetServerID(aServerID); } \
  NS_IMETHOD LoadNextQueuedUrl(nsIImapProtocol *protocol, bool *_retval) override { return _to LoadNextQueuedUrl(protocol, _retval); } \
  NS_IMETHOD PrepareToRetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel **_retval) override { return _to PrepareToRetryUrl(imapUrl, _retval); } \
  NS_IMETHOD SuspendUrl(nsIImapUrl *aImapUrl) override { return _to SuspendUrl(aImapUrl); } \
  NS_IMETHOD RetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel *channel) override { return _to RetryUrl(imapUrl, channel); } \
  NS_IMETHOD AbortQueuedUrls(void) override { return _to AbortQueuedUrls(); } \
  NS_IMETHOD GetImapStringByName(const char * msgName, nsAString& _retval) override { return _to GetImapStringByName(msgName, _retval); } \
  NS_IMETHOD PromptLoginFailed(nsIMsgWindow *aMsgWindow, int32_t *_retval) override { return _to PromptLoginFailed(aMsgWindow, _retval); } \
  NS_IMETHOD FEAlert(const nsAString& aAlertString, nsIMsgMailNewsUrl *aUrl) override { return _to FEAlert(aAlertString, aUrl); } \
  NS_IMETHOD FEAlertWithName(const char * aMsgName, nsIMsgMailNewsUrl *aUrl) override { return _to FEAlertWithName(aMsgName, aUrl); } \
  NS_IMETHOD FEAlertFromServer(const nsACString& aServerString, nsIMsgMailNewsUrl *aUrl) override { return _to FEAlertFromServer(aServerString, aUrl); } \
  NS_IMETHOD CommitNamespaces(void) override { return _to CommitNamespaces(); } \
  NS_IMETHOD AsyncGetPassword(nsIImapProtocol *aProtocol, bool aNewPasswordRequested, nsAString& aPassword) override { return _to AsyncGetPassword(aProtocol, aNewPasswordRequested, aPassword); } \
  NS_IMETHOD GetUserAuthenticated(bool *aUserAuthenticated) override { return _to GetUserAuthenticated(aUserAuthenticated); } \
  NS_IMETHOD SetUserAuthenticated(bool aUserAuthenticated) override { return _to SetUserAuthenticated(aUserAuthenticated); } \
  NS_IMETHOD SetMailServerUrls(const nsACString& manageMailAccount, const nsACString& manageLists, const nsACString& manageFilters) override { return _to SetMailServerUrls(manageMailAccount, manageLists, manageFilters); } \
  NS_IMETHOD UpdateTrySTARTTLSPref(bool aSucceeded) override { return _to UpdateTrySTARTTLSPref(aSucceeded); } \
  NS_IMETHOD GetArbitraryHeaders(nsACString& aArbitraryHeaders) override { return _to GetArbitraryHeaders(aArbitraryHeaders); } \
  NS_IMETHOD ForgetPassword(void) override { return _to ForgetPassword(); } \
  NS_IMETHOD GetShowAttachmentsInline(bool *aShowAttachmentsInline) override { return _to GetShowAttachmentsInline(aShowAttachmentsInline); } \
  NS_IMETHOD CramMD5Hash(const char * decodedChallenge, const char * key, char * *_retval) override { return _to CramMD5Hash(decodedChallenge, key, _retval); } \
  NS_IMETHOD GetLoginUsername(nsACString& aLoginUsername) override { return _to GetLoginUsername(aLoginUsername); } \
  NS_IMETHOD GetOriginalUsername(nsACString& aOriginalUsername) override { return _to GetOriginalUsername(aOriginalUsername); } \
  NS_IMETHOD GetServerKey(nsACString& aServerKey) override { return _to GetServerKey(aServerKey); } \
  NS_IMETHOD GetServerPassword(nsAString& aServerPassword) override { return _to GetServerPassword(aServerPassword); } \
  NS_IMETHOD RemoveServerConnection(nsIImapProtocol *aProtocol) override { return _to RemoveServerConnection(aProtocol); } \
  NS_IMETHOD GetServerShuttingDown(bool *aServerShuttingDown) override { return _to GetServerShuttingDown(aServerShuttingDown); } \
  NS_IMETHOD ResetServerConnection(const nsACString& aFolderName) override { return _to ResetServerConnection(aFolderName); } \
  NS_IMETHOD SetServerDoingLsub(bool aDoingLsub) override { return _to SetServerDoingLsub(aDoingLsub); } \
  NS_IMETHOD SetServerForceSelect(const nsACString& forceSelect) override { return _to SetServerForceSelect(forceSelect); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMAPSERVERSINK(_to) \
  NS_IMETHOD PossibleImapMailbox(const nsACString& folderPath, char hierarchyDelimiter, int32_t boxFlags, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PossibleImapMailbox(folderPath, hierarchyDelimiter, boxFlags, _retval); } \
  NS_IMETHOD FolderNeedsACLInitialized(const nsACString& folderPath, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderNeedsACLInitialized(folderPath, _retval); } \
  NS_IMETHOD AddFolderRights(const nsACString& folderPath, const nsACString& userName, const nsACString& rights) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFolderRights(folderPath, userName, rights); } \
  NS_IMETHOD RefreshFolderRights(const nsACString& folderPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshFolderRights(folderPath); } \
  NS_IMETHOD DiscoveryDone(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DiscoveryDone(); } \
  NS_IMETHOD OnlineFolderDelete(const nsACString& folderName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnlineFolderDelete(folderName); } \
  NS_IMETHOD OnlineFolderCreateFailed(const nsACString& aFolderName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnlineFolderCreateFailed(aFolderName); } \
  NS_IMETHOD OnlineFolderRename(nsIMsgWindow *msgWindow, const nsACString& oldName, const nsACString& newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnlineFolderRename(msgWindow, oldName, newName); } \
  NS_IMETHOD FolderIsNoSelect(const nsACString& folderName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderIsNoSelect(folderName, _retval); } \
  NS_IMETHOD SetFolderAdminURL(const nsACString& folderName, const nsACString& adminUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderAdminURL(folderName, adminUrl); } \
  NS_IMETHOD FolderVerifiedOnline(const nsACString& folderName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderVerifiedOnline(folderName, _retval); } \
  NS_IMETHOD SetCapability(uint64_t capability) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCapability(capability); } \
  NS_IMETHOD SetServerID(const nsACString& aServerID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerID(aServerID); } \
  NS_IMETHOD LoadNextQueuedUrl(nsIImapProtocol *protocol, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadNextQueuedUrl(protocol, _retval); } \
  NS_IMETHOD PrepareToRetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrepareToRetryUrl(imapUrl, _retval); } \
  NS_IMETHOD SuspendUrl(nsIImapUrl *aImapUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SuspendUrl(aImapUrl); } \
  NS_IMETHOD RetryUrl(nsIImapUrl *imapUrl, nsIImapMockChannel *channel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RetryUrl(imapUrl, channel); } \
  NS_IMETHOD AbortQueuedUrls(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AbortQueuedUrls(); } \
  NS_IMETHOD GetImapStringByName(const char * msgName, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImapStringByName(msgName, _retval); } \
  NS_IMETHOD PromptLoginFailed(nsIMsgWindow *aMsgWindow, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptLoginFailed(aMsgWindow, _retval); } \
  NS_IMETHOD FEAlert(const nsAString& aAlertString, nsIMsgMailNewsUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FEAlert(aAlertString, aUrl); } \
  NS_IMETHOD FEAlertWithName(const char * aMsgName, nsIMsgMailNewsUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FEAlertWithName(aMsgName, aUrl); } \
  NS_IMETHOD FEAlertFromServer(const nsACString& aServerString, nsIMsgMailNewsUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FEAlertFromServer(aServerString, aUrl); } \
  NS_IMETHOD CommitNamespaces(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CommitNamespaces(); } \
  NS_IMETHOD AsyncGetPassword(nsIImapProtocol *aProtocol, bool aNewPasswordRequested, nsAString& aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncGetPassword(aProtocol, aNewPasswordRequested, aPassword); } \
  NS_IMETHOD GetUserAuthenticated(bool *aUserAuthenticated) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserAuthenticated(aUserAuthenticated); } \
  NS_IMETHOD SetUserAuthenticated(bool aUserAuthenticated) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserAuthenticated(aUserAuthenticated); } \
  NS_IMETHOD SetMailServerUrls(const nsACString& manageMailAccount, const nsACString& manageLists, const nsACString& manageFilters) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMailServerUrls(manageMailAccount, manageLists, manageFilters); } \
  NS_IMETHOD UpdateTrySTARTTLSPref(bool aSucceeded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateTrySTARTTLSPref(aSucceeded); } \
  NS_IMETHOD GetArbitraryHeaders(nsACString& aArbitraryHeaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArbitraryHeaders(aArbitraryHeaders); } \
  NS_IMETHOD ForgetPassword(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForgetPassword(); } \
  NS_IMETHOD GetShowAttachmentsInline(bool *aShowAttachmentsInline) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowAttachmentsInline(aShowAttachmentsInline); } \
  NS_IMETHOD CramMD5Hash(const char * decodedChallenge, const char * key, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CramMD5Hash(decodedChallenge, key, _retval); } \
  NS_IMETHOD GetLoginUsername(nsACString& aLoginUsername) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoginUsername(aLoginUsername); } \
  NS_IMETHOD GetOriginalUsername(nsACString& aOriginalUsername) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalUsername(aOriginalUsername); } \
  NS_IMETHOD GetServerKey(nsACString& aServerKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerKey(aServerKey); } \
  NS_IMETHOD GetServerPassword(nsAString& aServerPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerPassword(aServerPassword); } \
  NS_IMETHOD RemoveServerConnection(nsIImapProtocol *aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveServerConnection(aProtocol); } \
  NS_IMETHOD GetServerShuttingDown(bool *aServerShuttingDown) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerShuttingDown(aServerShuttingDown); } \
  NS_IMETHOD ResetServerConnection(const nsACString& aFolderName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetServerConnection(aFolderName); } \
  NS_IMETHOD SetServerDoingLsub(bool aDoingLsub) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerDoingLsub(aDoingLsub); } \
  NS_IMETHOD SetServerForceSelect(const nsACString& forceSelect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerForceSelect(forceSelect); } 


#endif /* __gen_nsIImapServerSink_h__ */