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 357 358 359 360
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/imap/public/nsIImapMailFolderSink.idl
 */

#ifndef __gen_nsIImapMailFolderSink_h__
#define __gen_nsIImapMailFolderSink_h__


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

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

#ifndef __gen_nsIImapProtocol_h__
#include "nsIImapProtocol.h"
#endif

#ifndef __gen_nsIMailboxSpec_h__
#include "nsIMailboxSpec.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 nsIMsgMailNewsUrl; /* forward declaration */

class nsIImapMockChannel; /* forward declaration */

class nsIImapHeaderXferInfo; /* forward declaration */

typedef int32_t  ImapOnlineCopyState;


/* starting interface:    ImapOnlineCopyStateType */
#define IMAPONLINECOPYSTATETYPE_IID_STR "5f7484b0-68b4-11d3-a53e-0060b0fc04b7"

#define IMAPONLINECOPYSTATETYPE_IID \
  {0x5f7484b0, 0x68b4, 0x11d3, \
    { 0xa5, 0x3e, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}

class NS_NO_VTABLE ImapOnlineCopyStateType {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMAPONLINECOPYSTATETYPE_IID)

  enum {
    kInProgress = 0,
    kSuccessfulCopy = 1,
    kSuccessfulMove = 2,
    kSuccessfulDelete = 3,
    kFailedDelete = 4,
    kReadyForAppendData = 5,
    kFailedAppend = 6,
    kInterruptedState = 7,
    kFailedCopy = 8,
    kFailedMove = 9
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(ImapOnlineCopyStateType, IMAPONLINECOPYSTATETYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMAPONLINECOPYSTATETYPE \

/* 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_IMAPONLINECOPYSTATETYPE \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMAPONLINECOPYSTATETYPE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMAPONLINECOPYSTATETYPE(_to) \


/* starting interface:    nsIImapMailFolderSink */
#define NS_IIMAPMAILFOLDERSINK_IID_STR "525e1278-a39d-46d6-9dbc-b48c7e1d4faa"

#define NS_IIMAPMAILFOLDERSINK_IID \
  {0x525e1278, 0xa39d, 0x46d6, \
    { 0x9d, 0xbc, 0xb4, 0x8c, 0x7e, 0x1d, 0x4f, 0xaa }}

class NS_NO_VTABLE nsIImapMailFolderSink : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAPMAILFOLDERSINK_IID)

  /* attribute boolean folderNeedsACLListed; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderNeedsACLListed(bool *aFolderNeedsACLListed) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFolderNeedsACLListed(bool aFolderNeedsACLListed) = 0;

  /* attribute boolean folderNeedsSubscribing; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderNeedsSubscribing(bool *aFolderNeedsSubscribing) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFolderNeedsSubscribing(bool aFolderNeedsSubscribing) = 0;

  /* attribute boolean folderNeedsAdded; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderNeedsAdded(bool *aFolderNeedsAdded) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFolderNeedsAdded(bool aFolderNeedsAdded) = 0;

  /* attribute unsigned long aclFlags; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAclFlags(uint32_t *aAclFlags) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAclFlags(uint32_t aAclFlags) = 0;

  /* attribute long uidValidity; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUidValidity(int32_t *aUidValidity) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUidValidity(int32_t aUidValidity) = 0;

  /* attribute boolean folderQuotaCommandIssued; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderQuotaCommandIssued(bool *aFolderQuotaCommandIssued) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFolderQuotaCommandIssued(bool aFolderQuotaCommandIssued) = 0;

  /* void setFolderQuotaData (in ACString aFolderQuotaRoot, in unsigned long aFolderQuotaUsedKB, in unsigned long aFolderQuotaMaxKB); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFolderQuotaData(const nsACString& aFolderQuotaRoot, uint32_t aFolderQuotaUsedKB, uint32_t aFolderQuotaMaxKB) = 0;

  /* readonly attribute boolean shouldDownloadAllHeaders; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetShouldDownloadAllHeaders(bool *aShouldDownloadAllHeaders) = 0;

  /* readonly attribute char onlineDelimiter; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOnlineDelimiter(char *aOnlineDelimiter) = 0;

  /* void OnNewIdleMessages (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnNewIdleMessages(void) = 0;

  /* void UpdateImapMailboxInfo (in nsIImapProtocol aProtocol, in nsIMailboxSpec aSpec); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateImapMailboxInfo(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec) = 0;

  /* void UpdateImapMailboxStatus (in nsIImapProtocol aProtocol, in nsIMailboxSpec aSpec); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateImapMailboxStatus(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec) = 0;

  /* void getMsgHdrsToDownload (out boolean aMore, out long aTotalCount, out unsigned long aCount, [array, size_is (aCount), retval] out nsMsgKey aKeys); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgHdrsToDownload(bool *aMore, int32_t *aTotalCount, uint32_t *aCount, nsMsgKey **aKeys) = 0;

  /* void parseMsgHdrs (in nsIImapProtocol aProtocol, in nsIImapHeaderXferInfo aHdrXferInfo); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ParseMsgHdrs(nsIImapProtocol *aProtocol, nsIImapHeaderXferInfo *aHdrXferInfo) = 0;

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

  /* void OnlineCopyCompleted (in nsIImapProtocol aProtocol, in ImapOnlineCopyState aCopyState); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnlineCopyCompleted(nsIImapProtocol *aProtocol, ImapOnlineCopyState aCopyState) = 0;

  /* void StartMessage (in nsIMsgMailNewsUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartMessage(nsIMsgMailNewsUrl *aUrl) = 0;

  /* void EndMessage (in nsIMsgMailNewsUrl aUrl, in nsMsgKey uidOfMessage); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EndMessage(nsIMsgMailNewsUrl *aUrl, nsMsgKey uidOfMessage) = 0;

  /* void NotifySearchHit (in nsIMsgMailNewsUrl aUrl, in string hitLine); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifySearchHit(nsIMsgMailNewsUrl *aUrl, const char * hitLine) = 0;

  /* void copyNextStreamMessage (in boolean copySucceeded, in nsISupports copyState); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CopyNextStreamMessage(bool copySucceeded, nsISupports *copyState) = 0;

  /* void closeMockChannel (in nsIImapMockChannel aChannel); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CloseMockChannel(nsIImapMockChannel *aChannel) = 0;

  /* void setUrlState (in nsIImapProtocol aProtocol, in nsIMsgMailNewsUrl aUrl, in boolean isRunning, in boolean aSuspend, in nsresult status); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUrlState(nsIImapProtocol *aProtocol, nsIMsgMailNewsUrl *aUrl, bool isRunning, bool aSuspend, nsresult status) = 0;

  /* void releaseUrlCacheEntry (in nsIMsgMailNewsUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReleaseUrlCacheEntry(nsIMsgMailNewsUrl *aUrl) = 0;

  /* void headerFetchCompleted (in nsIImapProtocol aProtocol); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HeaderFetchCompleted(nsIImapProtocol *aProtocol) = 0;

  /* void setBiffStateAndUpdate (in long biffState); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetBiffStateAndUpdate(int32_t biffState) = 0;

  /* void progressStatusString (in nsIImapProtocol aProtocol, in string aMsgId, in wstring extraInfo); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ProgressStatusString(nsIImapProtocol *aProtocol, const char * aMsgId, const char16_t * extraInfo) = 0;

  /* void percentProgress (in nsIImapProtocol aProtocol, in wstring aMessage, in long long aCurrentProgress, in long long aMaxProgressProgressInfo); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PercentProgress(nsIImapProtocol *aProtocol, const char16_t * aMessage, int64_t aCurrentProgress, int64_t aMaxProgressProgressInfo) = 0;

  /* void clearFolderRights (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearFolderRights(void) = 0;

  /* void setCopyResponseUid (in string msgIdString, in nsIImapUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCopyResponseUid(const char * msgIdString, nsIImapUrl *aUrl) = 0;

  /* void setAppendMsgUid (in nsMsgKey newKey, in nsIImapUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAppendMsgUid(nsMsgKey newKey, nsIImapUrl *aUrl) = 0;

  /* ACString getMessageId (in nsIImapUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageId(nsIImapUrl *aUrl, nsACString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImapMailFolderSink, NS_IIMAPMAILFOLDERSINK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPMAILFOLDERSINK \
  NS_IMETHOD GetFolderNeedsACLListed(bool *aFolderNeedsACLListed) override; \
  NS_IMETHOD SetFolderNeedsACLListed(bool aFolderNeedsACLListed) override; \
  NS_IMETHOD GetFolderNeedsSubscribing(bool *aFolderNeedsSubscribing) override; \
  NS_IMETHOD SetFolderNeedsSubscribing(bool aFolderNeedsSubscribing) override; \
  NS_IMETHOD GetFolderNeedsAdded(bool *aFolderNeedsAdded) override; \
  NS_IMETHOD SetFolderNeedsAdded(bool aFolderNeedsAdded) override; \
  NS_IMETHOD GetAclFlags(uint32_t *aAclFlags) override; \
  NS_IMETHOD SetAclFlags(uint32_t aAclFlags) override; \
  NS_IMETHOD GetUidValidity(int32_t *aUidValidity) override; \
  NS_IMETHOD SetUidValidity(int32_t aUidValidity) override; \
  NS_IMETHOD GetFolderQuotaCommandIssued(bool *aFolderQuotaCommandIssued) override; \
  NS_IMETHOD SetFolderQuotaCommandIssued(bool aFolderQuotaCommandIssued) override; \
  NS_IMETHOD SetFolderQuotaData(const nsACString& aFolderQuotaRoot, uint32_t aFolderQuotaUsedKB, uint32_t aFolderQuotaMaxKB) override; \
  NS_IMETHOD GetShouldDownloadAllHeaders(bool *aShouldDownloadAllHeaders) override; \
  NS_IMETHOD GetOnlineDelimiter(char *aOnlineDelimiter) override; \
  NS_IMETHOD OnNewIdleMessages(void) override; \
  NS_IMETHOD UpdateImapMailboxInfo(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec) override; \
  NS_IMETHOD UpdateImapMailboxStatus(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec) override; \
  NS_IMETHOD GetMsgHdrsToDownload(bool *aMore, int32_t *aTotalCount, uint32_t *aCount, nsMsgKey **aKeys) override; \
  NS_IMETHOD ParseMsgHdrs(nsIImapProtocol *aProtocol, nsIImapHeaderXferInfo *aHdrXferInfo) override; \
  NS_IMETHOD AbortHeaderParseStream(nsIImapProtocol *aProtocol) override; \
  NS_IMETHOD OnlineCopyCompleted(nsIImapProtocol *aProtocol, ImapOnlineCopyState aCopyState) override; \
  NS_IMETHOD StartMessage(nsIMsgMailNewsUrl *aUrl) override; \
  NS_IMETHOD EndMessage(nsIMsgMailNewsUrl *aUrl, nsMsgKey uidOfMessage) override; \
  NS_IMETHOD NotifySearchHit(nsIMsgMailNewsUrl *aUrl, const char * hitLine) override; \
  NS_IMETHOD CopyNextStreamMessage(bool copySucceeded, nsISupports *copyState) override; \
  NS_IMETHOD CloseMockChannel(nsIImapMockChannel *aChannel) override; \
  NS_IMETHOD SetUrlState(nsIImapProtocol *aProtocol, nsIMsgMailNewsUrl *aUrl, bool isRunning, bool aSuspend, nsresult status) override; \
  NS_IMETHOD ReleaseUrlCacheEntry(nsIMsgMailNewsUrl *aUrl) override; \
  NS_IMETHOD HeaderFetchCompleted(nsIImapProtocol *aProtocol) override; \
  NS_IMETHOD SetBiffStateAndUpdate(int32_t biffState) override; \
  NS_IMETHOD ProgressStatusString(nsIImapProtocol *aProtocol, const char * aMsgId, const char16_t * extraInfo) override; \
  NS_IMETHOD PercentProgress(nsIImapProtocol *aProtocol, const char16_t * aMessage, int64_t aCurrentProgress, int64_t aMaxProgressProgressInfo) override; \
  NS_IMETHOD ClearFolderRights(void) override; \
  NS_IMETHOD SetCopyResponseUid(const char * msgIdString, nsIImapUrl *aUrl) override; \
  NS_IMETHOD SetAppendMsgUid(nsMsgKey newKey, nsIImapUrl *aUrl) override; \
  NS_IMETHOD GetMessageId(nsIImapUrl *aUrl, nsACString& _retval) 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_NSIIMAPMAILFOLDERSINK \
  nsresult GetFolderNeedsACLListed(bool *aFolderNeedsACLListed); \
  nsresult SetFolderNeedsACLListed(bool aFolderNeedsACLListed); \
  nsresult GetFolderNeedsSubscribing(bool *aFolderNeedsSubscribing); \
  nsresult SetFolderNeedsSubscribing(bool aFolderNeedsSubscribing); \
  nsresult GetFolderNeedsAdded(bool *aFolderNeedsAdded); \
  nsresult SetFolderNeedsAdded(bool aFolderNeedsAdded); \
  nsresult GetAclFlags(uint32_t *aAclFlags); \
  nsresult SetAclFlags(uint32_t aAclFlags); \
  nsresult GetUidValidity(int32_t *aUidValidity); \
  nsresult SetUidValidity(int32_t aUidValidity); \
  nsresult GetFolderQuotaCommandIssued(bool *aFolderQuotaCommandIssued); \
  nsresult SetFolderQuotaCommandIssued(bool aFolderQuotaCommandIssued); \
  nsresult SetFolderQuotaData(const nsACString& aFolderQuotaRoot, uint32_t aFolderQuotaUsedKB, uint32_t aFolderQuotaMaxKB); \
  nsresult GetShouldDownloadAllHeaders(bool *aShouldDownloadAllHeaders); \
  nsresult GetOnlineDelimiter(char *aOnlineDelimiter); \
  nsresult OnNewIdleMessages(void); \
  nsresult UpdateImapMailboxInfo(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec); \
  nsresult UpdateImapMailboxStatus(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec); \
  nsresult GetMsgHdrsToDownload(bool *aMore, int32_t *aTotalCount, uint32_t *aCount, nsMsgKey **aKeys); \
  nsresult ParseMsgHdrs(nsIImapProtocol *aProtocol, nsIImapHeaderXferInfo *aHdrXferInfo); \
  nsresult AbortHeaderParseStream(nsIImapProtocol *aProtocol); \
  nsresult OnlineCopyCompleted(nsIImapProtocol *aProtocol, ImapOnlineCopyState aCopyState); \
  nsresult StartMessage(nsIMsgMailNewsUrl *aUrl); \
  nsresult EndMessage(nsIMsgMailNewsUrl *aUrl, nsMsgKey uidOfMessage); \
  nsresult NotifySearchHit(nsIMsgMailNewsUrl *aUrl, const char * hitLine); \
  nsresult CopyNextStreamMessage(bool copySucceeded, nsISupports *copyState); \
  nsresult CloseMockChannel(nsIImapMockChannel *aChannel); \
  nsresult SetUrlState(nsIImapProtocol *aProtocol, nsIMsgMailNewsUrl *aUrl, bool isRunning, bool aSuspend, nsresult status); \
  nsresult ReleaseUrlCacheEntry(nsIMsgMailNewsUrl *aUrl); \
  nsresult HeaderFetchCompleted(nsIImapProtocol *aProtocol); \
  nsresult SetBiffStateAndUpdate(int32_t biffState); \
  nsresult ProgressStatusString(nsIImapProtocol *aProtocol, const char * aMsgId, const char16_t * extraInfo); \
  nsresult PercentProgress(nsIImapProtocol *aProtocol, const char16_t * aMessage, int64_t aCurrentProgress, int64_t aMaxProgressProgressInfo); \
  nsresult ClearFolderRights(void); \
  nsresult SetCopyResponseUid(const char * msgIdString, nsIImapUrl *aUrl); \
  nsresult SetAppendMsgUid(nsMsgKey newKey, nsIImapUrl *aUrl); \
  nsresult GetMessageId(nsIImapUrl *aUrl, nsACString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPMAILFOLDERSINK(_to) \
  NS_IMETHOD GetFolderNeedsACLListed(bool *aFolderNeedsACLListed) override { return _to GetFolderNeedsACLListed(aFolderNeedsACLListed); } \
  NS_IMETHOD SetFolderNeedsACLListed(bool aFolderNeedsACLListed) override { return _to SetFolderNeedsACLListed(aFolderNeedsACLListed); } \
  NS_IMETHOD GetFolderNeedsSubscribing(bool *aFolderNeedsSubscribing) override { return _to GetFolderNeedsSubscribing(aFolderNeedsSubscribing); } \
  NS_IMETHOD SetFolderNeedsSubscribing(bool aFolderNeedsSubscribing) override { return _to SetFolderNeedsSubscribing(aFolderNeedsSubscribing); } \
  NS_IMETHOD GetFolderNeedsAdded(bool *aFolderNeedsAdded) override { return _to GetFolderNeedsAdded(aFolderNeedsAdded); } \
  NS_IMETHOD SetFolderNeedsAdded(bool aFolderNeedsAdded) override { return _to SetFolderNeedsAdded(aFolderNeedsAdded); } \
  NS_IMETHOD GetAclFlags(uint32_t *aAclFlags) override { return _to GetAclFlags(aAclFlags); } \
  NS_IMETHOD SetAclFlags(uint32_t aAclFlags) override { return _to SetAclFlags(aAclFlags); } \
  NS_IMETHOD GetUidValidity(int32_t *aUidValidity) override { return _to GetUidValidity(aUidValidity); } \
  NS_IMETHOD SetUidValidity(int32_t aUidValidity) override { return _to SetUidValidity(aUidValidity); } \
  NS_IMETHOD GetFolderQuotaCommandIssued(bool *aFolderQuotaCommandIssued) override { return _to GetFolderQuotaCommandIssued(aFolderQuotaCommandIssued); } \
  NS_IMETHOD SetFolderQuotaCommandIssued(bool aFolderQuotaCommandIssued) override { return _to SetFolderQuotaCommandIssued(aFolderQuotaCommandIssued); } \
  NS_IMETHOD SetFolderQuotaData(const nsACString& aFolderQuotaRoot, uint32_t aFolderQuotaUsedKB, uint32_t aFolderQuotaMaxKB) override { return _to SetFolderQuotaData(aFolderQuotaRoot, aFolderQuotaUsedKB, aFolderQuotaMaxKB); } \
  NS_IMETHOD GetShouldDownloadAllHeaders(bool *aShouldDownloadAllHeaders) override { return _to GetShouldDownloadAllHeaders(aShouldDownloadAllHeaders); } \
  NS_IMETHOD GetOnlineDelimiter(char *aOnlineDelimiter) override { return _to GetOnlineDelimiter(aOnlineDelimiter); } \
  NS_IMETHOD OnNewIdleMessages(void) override { return _to OnNewIdleMessages(); } \
  NS_IMETHOD UpdateImapMailboxInfo(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec) override { return _to UpdateImapMailboxInfo(aProtocol, aSpec); } \
  NS_IMETHOD UpdateImapMailboxStatus(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec) override { return _to UpdateImapMailboxStatus(aProtocol, aSpec); } \
  NS_IMETHOD GetMsgHdrsToDownload(bool *aMore, int32_t *aTotalCount, uint32_t *aCount, nsMsgKey **aKeys) override { return _to GetMsgHdrsToDownload(aMore, aTotalCount, aCount, aKeys); } \
  NS_IMETHOD ParseMsgHdrs(nsIImapProtocol *aProtocol, nsIImapHeaderXferInfo *aHdrXferInfo) override { return _to ParseMsgHdrs(aProtocol, aHdrXferInfo); } \
  NS_IMETHOD AbortHeaderParseStream(nsIImapProtocol *aProtocol) override { return _to AbortHeaderParseStream(aProtocol); } \
  NS_IMETHOD OnlineCopyCompleted(nsIImapProtocol *aProtocol, ImapOnlineCopyState aCopyState) override { return _to OnlineCopyCompleted(aProtocol, aCopyState); } \
  NS_IMETHOD StartMessage(nsIMsgMailNewsUrl *aUrl) override { return _to StartMessage(aUrl); } \
  NS_IMETHOD EndMessage(nsIMsgMailNewsUrl *aUrl, nsMsgKey uidOfMessage) override { return _to EndMessage(aUrl, uidOfMessage); } \
  NS_IMETHOD NotifySearchHit(nsIMsgMailNewsUrl *aUrl, const char * hitLine) override { return _to NotifySearchHit(aUrl, hitLine); } \
  NS_IMETHOD CopyNextStreamMessage(bool copySucceeded, nsISupports *copyState) override { return _to CopyNextStreamMessage(copySucceeded, copyState); } \
  NS_IMETHOD CloseMockChannel(nsIImapMockChannel *aChannel) override { return _to CloseMockChannel(aChannel); } \
  NS_IMETHOD SetUrlState(nsIImapProtocol *aProtocol, nsIMsgMailNewsUrl *aUrl, bool isRunning, bool aSuspend, nsresult status) override { return _to SetUrlState(aProtocol, aUrl, isRunning, aSuspend, status); } \
  NS_IMETHOD ReleaseUrlCacheEntry(nsIMsgMailNewsUrl *aUrl) override { return _to ReleaseUrlCacheEntry(aUrl); } \
  NS_IMETHOD HeaderFetchCompleted(nsIImapProtocol *aProtocol) override { return _to HeaderFetchCompleted(aProtocol); } \
  NS_IMETHOD SetBiffStateAndUpdate(int32_t biffState) override { return _to SetBiffStateAndUpdate(biffState); } \
  NS_IMETHOD ProgressStatusString(nsIImapProtocol *aProtocol, const char * aMsgId, const char16_t * extraInfo) override { return _to ProgressStatusString(aProtocol, aMsgId, extraInfo); } \
  NS_IMETHOD PercentProgress(nsIImapProtocol *aProtocol, const char16_t * aMessage, int64_t aCurrentProgress, int64_t aMaxProgressProgressInfo) override { return _to PercentProgress(aProtocol, aMessage, aCurrentProgress, aMaxProgressProgressInfo); } \
  NS_IMETHOD ClearFolderRights(void) override { return _to ClearFolderRights(); } \
  NS_IMETHOD SetCopyResponseUid(const char * msgIdString, nsIImapUrl *aUrl) override { return _to SetCopyResponseUid(msgIdString, aUrl); } \
  NS_IMETHOD SetAppendMsgUid(nsMsgKey newKey, nsIImapUrl *aUrl) override { return _to SetAppendMsgUid(newKey, aUrl); } \
  NS_IMETHOD GetMessageId(nsIImapUrl *aUrl, nsACString& _retval) override { return _to GetMessageId(aUrl, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMAPMAILFOLDERSINK(_to) \
  NS_IMETHOD GetFolderNeedsACLListed(bool *aFolderNeedsACLListed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderNeedsACLListed(aFolderNeedsACLListed); } \
  NS_IMETHOD SetFolderNeedsACLListed(bool aFolderNeedsACLListed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderNeedsACLListed(aFolderNeedsACLListed); } \
  NS_IMETHOD GetFolderNeedsSubscribing(bool *aFolderNeedsSubscribing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderNeedsSubscribing(aFolderNeedsSubscribing); } \
  NS_IMETHOD SetFolderNeedsSubscribing(bool aFolderNeedsSubscribing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderNeedsSubscribing(aFolderNeedsSubscribing); } \
  NS_IMETHOD GetFolderNeedsAdded(bool *aFolderNeedsAdded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderNeedsAdded(aFolderNeedsAdded); } \
  NS_IMETHOD SetFolderNeedsAdded(bool aFolderNeedsAdded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderNeedsAdded(aFolderNeedsAdded); } \
  NS_IMETHOD GetAclFlags(uint32_t *aAclFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAclFlags(aAclFlags); } \
  NS_IMETHOD SetAclFlags(uint32_t aAclFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAclFlags(aAclFlags); } \
  NS_IMETHOD GetUidValidity(int32_t *aUidValidity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUidValidity(aUidValidity); } \
  NS_IMETHOD SetUidValidity(int32_t aUidValidity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUidValidity(aUidValidity); } \
  NS_IMETHOD GetFolderQuotaCommandIssued(bool *aFolderQuotaCommandIssued) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderQuotaCommandIssued(aFolderQuotaCommandIssued); } \
  NS_IMETHOD SetFolderQuotaCommandIssued(bool aFolderQuotaCommandIssued) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderQuotaCommandIssued(aFolderQuotaCommandIssued); } \
  NS_IMETHOD SetFolderQuotaData(const nsACString& aFolderQuotaRoot, uint32_t aFolderQuotaUsedKB, uint32_t aFolderQuotaMaxKB) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderQuotaData(aFolderQuotaRoot, aFolderQuotaUsedKB, aFolderQuotaMaxKB); } \
  NS_IMETHOD GetShouldDownloadAllHeaders(bool *aShouldDownloadAllHeaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShouldDownloadAllHeaders(aShouldDownloadAllHeaders); } \
  NS_IMETHOD GetOnlineDelimiter(char *aOnlineDelimiter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnlineDelimiter(aOnlineDelimiter); } \
  NS_IMETHOD OnNewIdleMessages(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnNewIdleMessages(); } \
  NS_IMETHOD UpdateImapMailboxInfo(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateImapMailboxInfo(aProtocol, aSpec); } \
  NS_IMETHOD UpdateImapMailboxStatus(nsIImapProtocol *aProtocol, nsIMailboxSpec *aSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateImapMailboxStatus(aProtocol, aSpec); } \
  NS_IMETHOD GetMsgHdrsToDownload(bool *aMore, int32_t *aTotalCount, uint32_t *aCount, nsMsgKey **aKeys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgHdrsToDownload(aMore, aTotalCount, aCount, aKeys); } \
  NS_IMETHOD ParseMsgHdrs(nsIImapProtocol *aProtocol, nsIImapHeaderXferInfo *aHdrXferInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseMsgHdrs(aProtocol, aHdrXferInfo); } \
  NS_IMETHOD AbortHeaderParseStream(nsIImapProtocol *aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AbortHeaderParseStream(aProtocol); } \
  NS_IMETHOD OnlineCopyCompleted(nsIImapProtocol *aProtocol, ImapOnlineCopyState aCopyState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnlineCopyCompleted(aProtocol, aCopyState); } \
  NS_IMETHOD StartMessage(nsIMsgMailNewsUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartMessage(aUrl); } \
  NS_IMETHOD EndMessage(nsIMsgMailNewsUrl *aUrl, nsMsgKey uidOfMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndMessage(aUrl, uidOfMessage); } \
  NS_IMETHOD NotifySearchHit(nsIMsgMailNewsUrl *aUrl, const char * hitLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySearchHit(aUrl, hitLine); } \
  NS_IMETHOD CopyNextStreamMessage(bool copySucceeded, nsISupports *copyState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyNextStreamMessage(copySucceeded, copyState); } \
  NS_IMETHOD CloseMockChannel(nsIImapMockChannel *aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseMockChannel(aChannel); } \
  NS_IMETHOD SetUrlState(nsIImapProtocol *aProtocol, nsIMsgMailNewsUrl *aUrl, bool isRunning, bool aSuspend, nsresult status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUrlState(aProtocol, aUrl, isRunning, aSuspend, status); } \
  NS_IMETHOD ReleaseUrlCacheEntry(nsIMsgMailNewsUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReleaseUrlCacheEntry(aUrl); } \
  NS_IMETHOD HeaderFetchCompleted(nsIImapProtocol *aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HeaderFetchCompleted(aProtocol); } \
  NS_IMETHOD SetBiffStateAndUpdate(int32_t biffState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBiffStateAndUpdate(biffState); } \
  NS_IMETHOD ProgressStatusString(nsIImapProtocol *aProtocol, const char * aMsgId, const char16_t * extraInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProgressStatusString(aProtocol, aMsgId, extraInfo); } \
  NS_IMETHOD PercentProgress(nsIImapProtocol *aProtocol, const char16_t * aMessage, int64_t aCurrentProgress, int64_t aMaxProgressProgressInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PercentProgress(aProtocol, aMessage, aCurrentProgress, aMaxProgressProgressInfo); } \
  NS_IMETHOD ClearFolderRights(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearFolderRights(); } \
  NS_IMETHOD SetCopyResponseUid(const char * msgIdString, nsIImapUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCopyResponseUid(msgIdString, aUrl); } \
  NS_IMETHOD SetAppendMsgUid(nsMsgKey newKey, nsIImapUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppendMsgUid(newKey, aUrl); } \
  NS_IMETHOD GetMessageId(nsIImapUrl *aUrl, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageId(aUrl, _retval); } 


#endif /* __gen_nsIImapMailFolderSink_h__ */