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

#ifndef __gen_nsIAutoSyncManager_h__
#define __gen_nsIAutoSyncManager_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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 nsIAutoSyncMsgStrategy; /* forward declaration */

class nsIAutoSyncFolderStrategy; /* forward declaration */

class nsIMsgDBHdr; /* forward declaration */

class nsIAutoSyncState; /* forward declaration */

class nsIAutoSyncMgrListener; /* forward declaration */

class nsIMsgFolder; /* forward declaration */


/* starting interface:    nsIAutoSyncMgrListener */
#define NS_IAUTOSYNCMGRLISTENER_IID_STR "41ec36a7-1a53-4ca3-b698-dca6452a8761"

#define NS_IAUTOSYNCMGRLISTENER_IID \
  {0x41ec36a7, 0x1a53, 0x4ca3, \
    { 0xb6, 0x98, 0xdc, 0xa6, 0x45, 0x2a, 0x87, 0x61 }}

class NS_NO_VTABLE nsIAutoSyncMgrListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOSYNCMGRLISTENER_IID)

  enum {
    PriorityQueue = 1,
    UpdateQueue = 2,
    DiscoveryQueue = 3
  };

  /* void onFolderAddedIntoQ (in long aQType, in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnFolderAddedIntoQ(int32_t aQType, nsIMsgFolder *aFolder) = 0;

  /* void onFolderRemovedFromQ (in long aQType, in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnFolderRemovedFromQ(int32_t aQType, nsIMsgFolder *aFolder) = 0;

  /* void onDownloadStarted (in nsIMsgFolder aFolder, in unsigned long aNumberOfMessages, in unsigned long aTotalPending); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDownloadStarted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages, uint32_t aTotalPending) = 0;

  /* void onDownloadCompleted (in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDownloadCompleted(nsIMsgFolder *aFolder) = 0;

  /* void onDownloadError (in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDownloadError(nsIMsgFolder *aFolder) = 0;

  /* void onStateChanged (in boolean aRunning); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnStateChanged(bool aRunning) = 0;

  /* void onDiscoveryQProcessed (in nsIMsgFolder aFolder, in unsigned long aNumberOfHdrsProcessed, in unsigned long aLeftToProcess); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDiscoveryQProcessed(nsIMsgFolder *aFolder, uint32_t aNumberOfHdrsProcessed, uint32_t aLeftToProcess) = 0;

  /* void onAutoSyncInitiated (in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnAutoSyncInitiated(nsIMsgFolder *aFolder) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoSyncMgrListener, NS_IAUTOSYNCMGRLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUTOSYNCMGRLISTENER \
  NS_IMETHOD OnFolderAddedIntoQ(int32_t aQType, nsIMsgFolder *aFolder) override; \
  NS_IMETHOD OnFolderRemovedFromQ(int32_t aQType, nsIMsgFolder *aFolder) override; \
  NS_IMETHOD OnDownloadStarted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages, uint32_t aTotalPending) override; \
  NS_IMETHOD OnDownloadCompleted(nsIMsgFolder *aFolder) override; \
  NS_IMETHOD OnDownloadError(nsIMsgFolder *aFolder) override; \
  NS_IMETHOD OnStateChanged(bool aRunning) override; \
  NS_IMETHOD OnDiscoveryQProcessed(nsIMsgFolder *aFolder, uint32_t aNumberOfHdrsProcessed, uint32_t aLeftToProcess) override; \
  NS_IMETHOD OnAutoSyncInitiated(nsIMsgFolder *aFolder) 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_NSIAUTOSYNCMGRLISTENER \
  nsresult OnFolderAddedIntoQ(int32_t aQType, nsIMsgFolder *aFolder); \
  nsresult OnFolderRemovedFromQ(int32_t aQType, nsIMsgFolder *aFolder); \
  nsresult OnDownloadStarted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages, uint32_t aTotalPending); \
  nsresult OnDownloadCompleted(nsIMsgFolder *aFolder); \
  nsresult OnDownloadError(nsIMsgFolder *aFolder); \
  nsresult OnStateChanged(bool aRunning); \
  nsresult OnDiscoveryQProcessed(nsIMsgFolder *aFolder, uint32_t aNumberOfHdrsProcessed, uint32_t aLeftToProcess); \
  nsresult OnAutoSyncInitiated(nsIMsgFolder *aFolder); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUTOSYNCMGRLISTENER(_to) \
  NS_IMETHOD OnFolderAddedIntoQ(int32_t aQType, nsIMsgFolder *aFolder) override { return _to OnFolderAddedIntoQ(aQType, aFolder); } \
  NS_IMETHOD OnFolderRemovedFromQ(int32_t aQType, nsIMsgFolder *aFolder) override { return _to OnFolderRemovedFromQ(aQType, aFolder); } \
  NS_IMETHOD OnDownloadStarted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages, uint32_t aTotalPending) override { return _to OnDownloadStarted(aFolder, aNumberOfMessages, aTotalPending); } \
  NS_IMETHOD OnDownloadCompleted(nsIMsgFolder *aFolder) override { return _to OnDownloadCompleted(aFolder); } \
  NS_IMETHOD OnDownloadError(nsIMsgFolder *aFolder) override { return _to OnDownloadError(aFolder); } \
  NS_IMETHOD OnStateChanged(bool aRunning) override { return _to OnStateChanged(aRunning); } \
  NS_IMETHOD OnDiscoveryQProcessed(nsIMsgFolder *aFolder, uint32_t aNumberOfHdrsProcessed, uint32_t aLeftToProcess) override { return _to OnDiscoveryQProcessed(aFolder, aNumberOfHdrsProcessed, aLeftToProcess); } \
  NS_IMETHOD OnAutoSyncInitiated(nsIMsgFolder *aFolder) override { return _to OnAutoSyncInitiated(aFolder); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUTOSYNCMGRLISTENER(_to) \
  NS_IMETHOD OnFolderAddedIntoQ(int32_t aQType, nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFolderAddedIntoQ(aQType, aFolder); } \
  NS_IMETHOD OnFolderRemovedFromQ(int32_t aQType, nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFolderRemovedFromQ(aQType, aFolder); } \
  NS_IMETHOD OnDownloadStarted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages, uint32_t aTotalPending) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadStarted(aFolder, aNumberOfMessages, aTotalPending); } \
  NS_IMETHOD OnDownloadCompleted(nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadCompleted(aFolder); } \
  NS_IMETHOD OnDownloadError(nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadError(aFolder); } \
  NS_IMETHOD OnStateChanged(bool aRunning) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStateChanged(aRunning); } \
  NS_IMETHOD OnDiscoveryQProcessed(nsIMsgFolder *aFolder, uint32_t aNumberOfHdrsProcessed, uint32_t aLeftToProcess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDiscoveryQProcessed(aFolder, aNumberOfHdrsProcessed, aLeftToProcess); } \
  NS_IMETHOD OnAutoSyncInitiated(nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAutoSyncInitiated(aFolder); } 


/* starting interface:    nsIAutoSyncManager */
#define NS_IAUTOSYNCMANAGER_IID_STR "7fe0b48e-f5d8-4747-beb7-888c9cced3a5"

#define NS_IAUTOSYNCMANAGER_IID \
  {0x7fe0b48e, 0xf5d8, 0x4747, \
    { 0xbe, 0xb7, 0x88, 0x8c, 0x9c, 0xce, 0xd3, 0xa5 }}

class NS_NO_VTABLE nsIAutoSyncManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOSYNCMANAGER_IID)

  enum {
    dmParallel = 0,
    dmChained = 1
  };

  /* attribute unsigned long groupSize; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGroupSize(uint32_t *aGroupSize) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetGroupSize(uint32_t aGroupSize) = 0;

  /* attribute nsIAutoSyncMsgStrategy msgStrategy; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgStrategy(nsIAutoSyncMsgStrategy **aMsgStrategy) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMsgStrategy(nsIAutoSyncMsgStrategy *aMsgStrategy) = 0;

  /* attribute nsIAutoSyncFolderStrategy folderStrategy; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderStrategy(nsIAutoSyncFolderStrategy **aFolderStrategy) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFolderStrategy(nsIAutoSyncFolderStrategy *aFolderStrategy) = 0;

  /* void addListener (in nsIAutoSyncMgrListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddListener(nsIAutoSyncMgrListener *aListener) = 0;

  /* void removeListener (in nsIAutoSyncMgrListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveListener(nsIAutoSyncMgrListener *aListener) = 0;

  /* boolean doesMsgFitDownloadCriteria (in nsIMsgDBHdr aMsgHdr); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DoesMsgFitDownloadCriteria(nsIMsgDBHdr *aMsgHdr, bool *_retval) = 0;

  /* void onDownloadQChanged (in nsIAutoSyncState aAutoSyncStateObj); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDownloadQChanged(nsIAutoSyncState *aAutoSyncStateObj) = 0;

  /* void onDownloadStarted (in nsIAutoSyncState aAutoSyncStateObj, in nsresult aStartCode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDownloadStarted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aStartCode) = 0;

  /* void onDownloadCompleted (in nsIAutoSyncState aAutoSyncStateObj, in nsresult aExitCode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDownloadCompleted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aExitCode) = 0;

  /* readonly attribute unsigned long discoveryQLength; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDiscoveryQLength(uint32_t *aDiscoveryQLength) = 0;

  /* readonly attribute unsigned long updateQLength; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUpdateQLength(uint32_t *aUpdateQLength) = 0;

  /* readonly attribute unsigned long downloadQLength; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDownloadQLength(uint32_t *aDownloadQLength) = 0;

  /* attribute long downloadModel; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDownloadModel(int32_t *aDownloadModel) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDownloadModel(int32_t aDownloadModel) = 0;

  /* void onFolderHasPendingMsgs (in nsIAutoSyncState aAutoSyncState); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnFolderHasPendingMsgs(nsIAutoSyncState *aAutoSyncState) = 0;

  /* void pause (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Pause(void) = 0;

  /* void resume (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Resume(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoSyncManager, NS_IAUTOSYNCMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUTOSYNCMANAGER \
  NS_IMETHOD GetGroupSize(uint32_t *aGroupSize) override; \
  NS_IMETHOD SetGroupSize(uint32_t aGroupSize) override; \
  NS_IMETHOD GetMsgStrategy(nsIAutoSyncMsgStrategy **aMsgStrategy) override; \
  NS_IMETHOD SetMsgStrategy(nsIAutoSyncMsgStrategy *aMsgStrategy) override; \
  NS_IMETHOD GetFolderStrategy(nsIAutoSyncFolderStrategy **aFolderStrategy) override; \
  NS_IMETHOD SetFolderStrategy(nsIAutoSyncFolderStrategy *aFolderStrategy) override; \
  NS_IMETHOD AddListener(nsIAutoSyncMgrListener *aListener) override; \
  NS_IMETHOD RemoveListener(nsIAutoSyncMgrListener *aListener) override; \
  NS_IMETHOD DoesMsgFitDownloadCriteria(nsIMsgDBHdr *aMsgHdr, bool *_retval) override; \
  NS_IMETHOD OnDownloadQChanged(nsIAutoSyncState *aAutoSyncStateObj) override; \
  NS_IMETHOD OnDownloadStarted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aStartCode) override; \
  NS_IMETHOD OnDownloadCompleted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aExitCode) override; \
  NS_IMETHOD GetDiscoveryQLength(uint32_t *aDiscoveryQLength) override; \
  NS_IMETHOD GetUpdateQLength(uint32_t *aUpdateQLength) override; \
  NS_IMETHOD GetDownloadQLength(uint32_t *aDownloadQLength) override; \
  NS_IMETHOD GetDownloadModel(int32_t *aDownloadModel) override; \
  NS_IMETHOD SetDownloadModel(int32_t aDownloadModel) override; \
  NS_IMETHOD OnFolderHasPendingMsgs(nsIAutoSyncState *aAutoSyncState) override; \
  NS_IMETHOD Pause(void) override; \
  NS_IMETHOD Resume(void) 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_NSIAUTOSYNCMANAGER \
  nsresult GetGroupSize(uint32_t *aGroupSize); \
  nsresult SetGroupSize(uint32_t aGroupSize); \
  nsresult GetMsgStrategy(nsIAutoSyncMsgStrategy **aMsgStrategy); \
  nsresult SetMsgStrategy(nsIAutoSyncMsgStrategy *aMsgStrategy); \
  nsresult GetFolderStrategy(nsIAutoSyncFolderStrategy **aFolderStrategy); \
  nsresult SetFolderStrategy(nsIAutoSyncFolderStrategy *aFolderStrategy); \
  nsresult AddListener(nsIAutoSyncMgrListener *aListener); \
  nsresult RemoveListener(nsIAutoSyncMgrListener *aListener); \
  nsresult DoesMsgFitDownloadCriteria(nsIMsgDBHdr *aMsgHdr, bool *_retval); \
  nsresult OnDownloadQChanged(nsIAutoSyncState *aAutoSyncStateObj); \
  nsresult OnDownloadStarted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aStartCode); \
  nsresult OnDownloadCompleted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aExitCode); \
  nsresult GetDiscoveryQLength(uint32_t *aDiscoveryQLength); \
  nsresult GetUpdateQLength(uint32_t *aUpdateQLength); \
  nsresult GetDownloadQLength(uint32_t *aDownloadQLength); \
  nsresult GetDownloadModel(int32_t *aDownloadModel); \
  nsresult SetDownloadModel(int32_t aDownloadModel); \
  nsresult OnFolderHasPendingMsgs(nsIAutoSyncState *aAutoSyncState); \
  nsresult Pause(void); \
  nsresult Resume(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUTOSYNCMANAGER(_to) \
  NS_IMETHOD GetGroupSize(uint32_t *aGroupSize) override { return _to GetGroupSize(aGroupSize); } \
  NS_IMETHOD SetGroupSize(uint32_t aGroupSize) override { return _to SetGroupSize(aGroupSize); } \
  NS_IMETHOD GetMsgStrategy(nsIAutoSyncMsgStrategy **aMsgStrategy) override { return _to GetMsgStrategy(aMsgStrategy); } \
  NS_IMETHOD SetMsgStrategy(nsIAutoSyncMsgStrategy *aMsgStrategy) override { return _to SetMsgStrategy(aMsgStrategy); } \
  NS_IMETHOD GetFolderStrategy(nsIAutoSyncFolderStrategy **aFolderStrategy) override { return _to GetFolderStrategy(aFolderStrategy); } \
  NS_IMETHOD SetFolderStrategy(nsIAutoSyncFolderStrategy *aFolderStrategy) override { return _to SetFolderStrategy(aFolderStrategy); } \
  NS_IMETHOD AddListener(nsIAutoSyncMgrListener *aListener) override { return _to AddListener(aListener); } \
  NS_IMETHOD RemoveListener(nsIAutoSyncMgrListener *aListener) override { return _to RemoveListener(aListener); } \
  NS_IMETHOD DoesMsgFitDownloadCriteria(nsIMsgDBHdr *aMsgHdr, bool *_retval) override { return _to DoesMsgFitDownloadCriteria(aMsgHdr, _retval); } \
  NS_IMETHOD OnDownloadQChanged(nsIAutoSyncState *aAutoSyncStateObj) override { return _to OnDownloadQChanged(aAutoSyncStateObj); } \
  NS_IMETHOD OnDownloadStarted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aStartCode) override { return _to OnDownloadStarted(aAutoSyncStateObj, aStartCode); } \
  NS_IMETHOD OnDownloadCompleted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aExitCode) override { return _to OnDownloadCompleted(aAutoSyncStateObj, aExitCode); } \
  NS_IMETHOD GetDiscoveryQLength(uint32_t *aDiscoveryQLength) override { return _to GetDiscoveryQLength(aDiscoveryQLength); } \
  NS_IMETHOD GetUpdateQLength(uint32_t *aUpdateQLength) override { return _to GetUpdateQLength(aUpdateQLength); } \
  NS_IMETHOD GetDownloadQLength(uint32_t *aDownloadQLength) override { return _to GetDownloadQLength(aDownloadQLength); } \
  NS_IMETHOD GetDownloadModel(int32_t *aDownloadModel) override { return _to GetDownloadModel(aDownloadModel); } \
  NS_IMETHOD SetDownloadModel(int32_t aDownloadModel) override { return _to SetDownloadModel(aDownloadModel); } \
  NS_IMETHOD OnFolderHasPendingMsgs(nsIAutoSyncState *aAutoSyncState) override { return _to OnFolderHasPendingMsgs(aAutoSyncState); } \
  NS_IMETHOD Pause(void) override { return _to Pause(); } \
  NS_IMETHOD Resume(void) override { return _to Resume(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUTOSYNCMANAGER(_to) \
  NS_IMETHOD GetGroupSize(uint32_t *aGroupSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupSize(aGroupSize); } \
  NS_IMETHOD SetGroupSize(uint32_t aGroupSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGroupSize(aGroupSize); } \
  NS_IMETHOD GetMsgStrategy(nsIAutoSyncMsgStrategy **aMsgStrategy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgStrategy(aMsgStrategy); } \
  NS_IMETHOD SetMsgStrategy(nsIAutoSyncMsgStrategy *aMsgStrategy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgStrategy(aMsgStrategy); } \
  NS_IMETHOD GetFolderStrategy(nsIAutoSyncFolderStrategy **aFolderStrategy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderStrategy(aFolderStrategy); } \
  NS_IMETHOD SetFolderStrategy(nsIAutoSyncFolderStrategy *aFolderStrategy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderStrategy(aFolderStrategy); } \
  NS_IMETHOD AddListener(nsIAutoSyncMgrListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(aListener); } \
  NS_IMETHOD RemoveListener(nsIAutoSyncMgrListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(aListener); } \
  NS_IMETHOD DoesMsgFitDownloadCriteria(nsIMsgDBHdr *aMsgHdr, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoesMsgFitDownloadCriteria(aMsgHdr, _retval); } \
  NS_IMETHOD OnDownloadQChanged(nsIAutoSyncState *aAutoSyncStateObj) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadQChanged(aAutoSyncStateObj); } \
  NS_IMETHOD OnDownloadStarted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aStartCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadStarted(aAutoSyncStateObj, aStartCode); } \
  NS_IMETHOD OnDownloadCompleted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aExitCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadCompleted(aAutoSyncStateObj, aExitCode); } \
  NS_IMETHOD GetDiscoveryQLength(uint32_t *aDiscoveryQLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDiscoveryQLength(aDiscoveryQLength); } \
  NS_IMETHOD GetUpdateQLength(uint32_t *aUpdateQLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdateQLength(aUpdateQLength); } \
  NS_IMETHOD GetDownloadQLength(uint32_t *aDownloadQLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownloadQLength(aDownloadQLength); } \
  NS_IMETHOD GetDownloadModel(int32_t *aDownloadModel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownloadModel(aDownloadModel); } \
  NS_IMETHOD SetDownloadModel(int32_t aDownloadModel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDownloadModel(aDownloadModel); } \
  NS_IMETHOD OnFolderHasPendingMsgs(nsIAutoSyncState *aAutoSyncState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFolderHasPendingMsgs(aAutoSyncState); } \
  NS_IMETHOD Pause(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Pause(); } \
  NS_IMETHOD Resume(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } 

#define NS_AUTOSYNCMANAGER_CID  \
{ /* C358C568-47B2-42b2-8146-3C0F8D1FAD6E */  \
  0xc358c568, 0x47b2, 0x42b2,                 \
  { 0x81, 0x46, 0x3c, 0xf, 0x8d, 0x1f, 0xad, 0x6e }}
#define NS_AUTOSYNCMANAGER_CLASSNAME \
  "Auto-Sync Manager"
#define NS_AUTOSYNCMANAGER_CONTRACTID \
  "@mozilla.org/imap/autosyncmgr;1"

#endif /* __gen_nsIAutoSyncManager_h__ */