This file is indexed.

/usr/include/thunderbird/nsIAutoSyncManager.h is in thunderbird-dev 1:52.8.0-1~deb8u1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAutoSyncManager.idl
 */

#ifndef __gen_nsIAutoSyncManager_h__
#define __gen_nsIAutoSyncManager_h__


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

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

class nsIMsgAccount; /* 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); */
  NS_IMETHOD OnFolderAddedIntoQ(int32_t aQType, nsIMsgFolder *aFolder) = 0;

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

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

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

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

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

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

  /* void onAutoSyncInitiated (in nsIMsgFolder aFolder); */
  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 \
  NS_METHOD OnFolderAddedIntoQ(int32_t aQType, nsIMsgFolder *aFolder); \
  NS_METHOD OnFolderRemovedFromQ(int32_t aQType, nsIMsgFolder *aFolder); \
  NS_METHOD OnDownloadStarted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages, uint32_t aTotalPending); \
  NS_METHOD OnDownloadCompleted(nsIMsgFolder *aFolder); \
  NS_METHOD OnDownloadError(nsIMsgFolder *aFolder); \
  NS_METHOD OnStateChanged(bool aRunning); \
  NS_METHOD OnDiscoveryQProcessed(nsIMsgFolder *aFolder, uint32_t aNumberOfHdrsProcessed, uint32_t aLeftToProcess); \
  NS_METHOD 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); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsAutoSyncMgrListener : public nsIAutoSyncMgrListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIAUTOSYNCMGRLISTENER

  nsAutoSyncMgrListener();

private:
  ~nsAutoSyncMgrListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsAutoSyncMgrListener, nsIAutoSyncMgrListener)

nsAutoSyncMgrListener::nsAutoSyncMgrListener()
{
  /* member initializers and constructor code */
}

nsAutoSyncMgrListener::~nsAutoSyncMgrListener()
{
  /* destructor code */
}

/* void onFolderAddedIntoQ (in long aQType, in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsAutoSyncMgrListener::OnFolderAddedIntoQ(int32_t aQType, nsIMsgFolder *aFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onFolderRemovedFromQ (in long aQType, in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsAutoSyncMgrListener::OnFolderRemovedFromQ(int32_t aQType, nsIMsgFolder *aFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDownloadStarted (in nsIMsgFolder aFolder, in unsigned long aNumberOfMessages, in unsigned long aTotalPending); */
NS_IMETHODIMP nsAutoSyncMgrListener::OnDownloadStarted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages, uint32_t aTotalPending)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDownloadCompleted (in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsAutoSyncMgrListener::OnDownloadCompleted(nsIMsgFolder *aFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDownloadError (in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsAutoSyncMgrListener::OnDownloadError(nsIMsgFolder *aFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onStateChanged (in boolean aRunning); */
NS_IMETHODIMP nsAutoSyncMgrListener::OnStateChanged(bool aRunning)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDiscoveryQProcessed (in nsIMsgFolder aFolder, in unsigned long aNumberOfHdrsProcessed, in unsigned long aLeftToProcess); */
NS_IMETHODIMP nsAutoSyncMgrListener::OnDiscoveryQProcessed(nsIMsgFolder *aFolder, uint32_t aNumberOfHdrsProcessed, uint32_t aLeftToProcess)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onAutoSyncInitiated (in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsAutoSyncMgrListener::OnAutoSyncInitiated(nsIMsgFolder *aFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* 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; */
  NS_IMETHOD GetGroupSize(uint32_t *aGroupSize) = 0;
  NS_IMETHOD SetGroupSize(uint32_t aGroupSize) = 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /* void resume (); */
  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 \
  NS_METHOD GetGroupSize(uint32_t *aGroupSize); \
  NS_METHOD SetGroupSize(uint32_t aGroupSize); \
  NS_METHOD GetMsgStrategy(nsIAutoSyncMsgStrategy * *aMsgStrategy); \
  NS_METHOD SetMsgStrategy(nsIAutoSyncMsgStrategy *aMsgStrategy); \
  NS_METHOD GetFolderStrategy(nsIAutoSyncFolderStrategy * *aFolderStrategy); \
  NS_METHOD SetFolderStrategy(nsIAutoSyncFolderStrategy *aFolderStrategy); \
  NS_METHOD AddListener(nsIAutoSyncMgrListener *aListener); \
  NS_METHOD RemoveListener(nsIAutoSyncMgrListener *aListener); \
  NS_METHOD DoesMsgFitDownloadCriteria(nsIMsgDBHdr *aMsgHdr, bool *_retval); \
  NS_METHOD OnDownloadQChanged(nsIAutoSyncState *aAutoSyncStateObj); \
  NS_METHOD OnDownloadStarted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aStartCode); \
  NS_METHOD OnDownloadCompleted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aExitCode); \
  NS_METHOD GetDiscoveryQLength(uint32_t *aDiscoveryQLength); \
  NS_METHOD GetUpdateQLength(uint32_t *aUpdateQLength); \
  NS_METHOD GetDownloadQLength(uint32_t *aDownloadQLength); \
  NS_METHOD GetDownloadModel(int32_t *aDownloadModel); \
  NS_METHOD SetDownloadModel(int32_t aDownloadModel); \
  NS_METHOD OnFolderHasPendingMsgs(nsIAutoSyncState *aAutoSyncState); \
  NS_METHOD Pause(void); \
  NS_METHOD 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(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsAutoSyncManager : public nsIAutoSyncManager
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIAUTOSYNCMANAGER

  nsAutoSyncManager();

private:
  ~nsAutoSyncManager();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsAutoSyncManager, nsIAutoSyncManager)

nsAutoSyncManager::nsAutoSyncManager()
{
  /* member initializers and constructor code */
}

nsAutoSyncManager::~nsAutoSyncManager()
{
  /* destructor code */
}

/* attribute unsigned long groupSize; */
NS_IMETHODIMP nsAutoSyncManager::GetGroupSize(uint32_t *aGroupSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAutoSyncManager::SetGroupSize(uint32_t aGroupSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIAutoSyncMsgStrategy msgStrategy; */
NS_IMETHODIMP nsAutoSyncManager::GetMsgStrategy(nsIAutoSyncMsgStrategy * *aMsgStrategy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAutoSyncManager::SetMsgStrategy(nsIAutoSyncMsgStrategy *aMsgStrategy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIAutoSyncFolderStrategy folderStrategy; */
NS_IMETHODIMP nsAutoSyncManager::GetFolderStrategy(nsIAutoSyncFolderStrategy * *aFolderStrategy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAutoSyncManager::SetFolderStrategy(nsIAutoSyncFolderStrategy *aFolderStrategy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addListener (in nsIAutoSyncMgrListener aListener); */
NS_IMETHODIMP nsAutoSyncManager::AddListener(nsIAutoSyncMgrListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeListener (in nsIAutoSyncMgrListener aListener); */
NS_IMETHODIMP nsAutoSyncManager::RemoveListener(nsIAutoSyncMgrListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean doesMsgFitDownloadCriteria (in nsIMsgDBHdr aMsgHdr); */
NS_IMETHODIMP nsAutoSyncManager::DoesMsgFitDownloadCriteria(nsIMsgDBHdr *aMsgHdr, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDownloadQChanged (in nsIAutoSyncState aAutoSyncStateObj); */
NS_IMETHODIMP nsAutoSyncManager::OnDownloadQChanged(nsIAutoSyncState *aAutoSyncStateObj)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDownloadStarted (in nsIAutoSyncState aAutoSyncStateObj, in nsresult aStartCode); */
NS_IMETHODIMP nsAutoSyncManager::OnDownloadStarted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aStartCode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDownloadCompleted (in nsIAutoSyncState aAutoSyncStateObj, in nsresult aExitCode); */
NS_IMETHODIMP nsAutoSyncManager::OnDownloadCompleted(nsIAutoSyncState *aAutoSyncStateObj, nsresult aExitCode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long discoveryQLength; */
NS_IMETHODIMP nsAutoSyncManager::GetDiscoveryQLength(uint32_t *aDiscoveryQLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long updateQLength; */
NS_IMETHODIMP nsAutoSyncManager::GetUpdateQLength(uint32_t *aUpdateQLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long downloadQLength; */
NS_IMETHODIMP nsAutoSyncManager::GetDownloadQLength(uint32_t *aDownloadQLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute long downloadModel; */
NS_IMETHODIMP nsAutoSyncManager::GetDownloadModel(int32_t *aDownloadModel)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAutoSyncManager::SetDownloadModel(int32_t aDownloadModel)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onFolderHasPendingMsgs (in nsIAutoSyncState aAutoSyncState); */
NS_IMETHODIMP nsAutoSyncManager::OnFolderHasPendingMsgs(nsIAutoSyncState *aAutoSyncState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void pause (); */
NS_IMETHODIMP nsAutoSyncManager::Pause()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void resume (); */
NS_IMETHODIMP nsAutoSyncManager::Resume()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

#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__ */