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

#ifndef __gen_nsIAutoSyncState_h__
#define __gen_nsIAutoSyncState_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 nsIMsgFolder; /* forward declaration */

class nsIArray; /* forward declaration */

class nsIMutableArray; /* forward declaration */


/* starting interface:    nsIAutoSyncState */
#define NS_IAUTOSYNCSTATE_IID_STR "7512f927-b8f0-48c4-b101-03e859e61281"

#define NS_IAUTOSYNCSTATE_IID \
  {0x7512f927, 0xb8f0, 0x48c4, \
    { 0xb1, 0x01, 0x03, 0xe8, 0x59, 0xe6, 0x12, 0x81 }}

class NS_NO_VTABLE nsIAutoSyncState : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOSYNCSTATE_IID)

  enum {
    stCompletedIdle = 0,
    stStatusIssued = 1,
    stUpdateNeeded = 2,
    stUpdateIssued = 3,
    stDownloadInProgress = 4,
    stReadyToDownload = 5
  };

  /* void rollback (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Rollback(void) = 0;

  /* void resetDownloadQ (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetDownloadQ(void) = 0;

  /* void tryCurrentGroupAgain (in unsigned long aRetryCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TryCurrentGroupAgain(uint32_t aRetryCount) = 0;

  /* void resetRetryCounter (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetRetryCounter(void) = 0;

  /* boolean isSibling (in nsIAutoSyncState aAnotherStateObj); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsSibling(nsIAutoSyncState *aAnotherStateObj, bool *_retval) = 0;

  /* void updateFolder (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateFolder(void) = 0;

  /* void downloadMessagesForOffline (in nsIArray aMessageList); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DownloadMessagesForOffline(nsIArray *aMessageList) = 0;

  /* nsIMutableArray getNextGroupOfMessages (in unsigned long aSuggestedGroupSizeLimit, out unsigned long aActualGroupSize); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNextGroupOfMessages(uint32_t aSuggestedGroupSizeLimit, uint32_t *aActualGroupSize, nsIMutableArray **_retval) = 0;

  /* unsigned long processExistingHeaders (in unsigned long aNumberOfHeadersToProcess); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ProcessExistingHeaders(uint32_t aNumberOfHeadersToProcess, uint32_t *_retval) = 0;

  /* [noscript] readonly attribute PRTime lastSyncTime; */
  NS_IMETHOD GetLastSyncTime(PRTime *aLastSyncTime) = 0;

  /* [noscript] attribute PRTime lastUpdateTime; */
  NS_IMETHOD GetLastUpdateTime(PRTime *aLastUpdateTime) = 0;
  NS_IMETHOD SetLastUpdateTime(PRTime aLastUpdateTime) = 0;

  /* attribute long state; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetState(int32_t *aState) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetState(int32_t aState) = 0;

  /* readonly attribute long pendingMessageCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPendingMessageCount(int32_t *aPendingMessageCount) = 0;

  /* readonly attribute long totalMessageCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTotalMessageCount(int32_t *aTotalMessageCount) = 0;

  /* readonly attribute nsIMsgFolder ownerFolder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOwnerFolder(nsIMsgFolder **aOwnerFolder) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoSyncState, NS_IAUTOSYNCSTATE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUTOSYNCSTATE \
  NS_IMETHOD Rollback(void) override; \
  NS_IMETHOD ResetDownloadQ(void) override; \
  NS_IMETHOD TryCurrentGroupAgain(uint32_t aRetryCount) override; \
  NS_IMETHOD ResetRetryCounter(void) override; \
  NS_IMETHOD IsSibling(nsIAutoSyncState *aAnotherStateObj, bool *_retval) override; \
  NS_IMETHOD UpdateFolder(void) override; \
  NS_IMETHOD DownloadMessagesForOffline(nsIArray *aMessageList) override; \
  NS_IMETHOD GetNextGroupOfMessages(uint32_t aSuggestedGroupSizeLimit, uint32_t *aActualGroupSize, nsIMutableArray **_retval) override; \
  NS_IMETHOD ProcessExistingHeaders(uint32_t aNumberOfHeadersToProcess, uint32_t *_retval) override; \
  NS_IMETHOD GetLastSyncTime(PRTime *aLastSyncTime) override; \
  NS_IMETHOD GetLastUpdateTime(PRTime *aLastUpdateTime) override; \
  NS_IMETHOD SetLastUpdateTime(PRTime aLastUpdateTime) override; \
  NS_IMETHOD GetState(int32_t *aState) override; \
  NS_IMETHOD SetState(int32_t aState) override; \
  NS_IMETHOD GetPendingMessageCount(int32_t *aPendingMessageCount) override; \
  NS_IMETHOD GetTotalMessageCount(int32_t *aTotalMessageCount) override; \
  NS_IMETHOD GetOwnerFolder(nsIMsgFolder **aOwnerFolder) 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_NSIAUTOSYNCSTATE \
  nsresult Rollback(void); \
  nsresult ResetDownloadQ(void); \
  nsresult TryCurrentGroupAgain(uint32_t aRetryCount); \
  nsresult ResetRetryCounter(void); \
  nsresult IsSibling(nsIAutoSyncState *aAnotherStateObj, bool *_retval); \
  nsresult UpdateFolder(void); \
  nsresult DownloadMessagesForOffline(nsIArray *aMessageList); \
  nsresult GetNextGroupOfMessages(uint32_t aSuggestedGroupSizeLimit, uint32_t *aActualGroupSize, nsIMutableArray **_retval); \
  nsresult ProcessExistingHeaders(uint32_t aNumberOfHeadersToProcess, uint32_t *_retval); \
  nsresult GetLastSyncTime(PRTime *aLastSyncTime); \
  nsresult GetLastUpdateTime(PRTime *aLastUpdateTime); \
  nsresult SetLastUpdateTime(PRTime aLastUpdateTime); \
  nsresult GetState(int32_t *aState); \
  nsresult SetState(int32_t aState); \
  nsresult GetPendingMessageCount(int32_t *aPendingMessageCount); \
  nsresult GetTotalMessageCount(int32_t *aTotalMessageCount); \
  nsresult GetOwnerFolder(nsIMsgFolder **aOwnerFolder); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUTOSYNCSTATE(_to) \
  NS_IMETHOD Rollback(void) override { return _to Rollback(); } \
  NS_IMETHOD ResetDownloadQ(void) override { return _to ResetDownloadQ(); } \
  NS_IMETHOD TryCurrentGroupAgain(uint32_t aRetryCount) override { return _to TryCurrentGroupAgain(aRetryCount); } \
  NS_IMETHOD ResetRetryCounter(void) override { return _to ResetRetryCounter(); } \
  NS_IMETHOD IsSibling(nsIAutoSyncState *aAnotherStateObj, bool *_retval) override { return _to IsSibling(aAnotherStateObj, _retval); } \
  NS_IMETHOD UpdateFolder(void) override { return _to UpdateFolder(); } \
  NS_IMETHOD DownloadMessagesForOffline(nsIArray *aMessageList) override { return _to DownloadMessagesForOffline(aMessageList); } \
  NS_IMETHOD GetNextGroupOfMessages(uint32_t aSuggestedGroupSizeLimit, uint32_t *aActualGroupSize, nsIMutableArray **_retval) override { return _to GetNextGroupOfMessages(aSuggestedGroupSizeLimit, aActualGroupSize, _retval); } \
  NS_IMETHOD ProcessExistingHeaders(uint32_t aNumberOfHeadersToProcess, uint32_t *_retval) override { return _to ProcessExistingHeaders(aNumberOfHeadersToProcess, _retval); } \
  NS_IMETHOD GetLastSyncTime(PRTime *aLastSyncTime) override { return _to GetLastSyncTime(aLastSyncTime); } \
  NS_IMETHOD GetLastUpdateTime(PRTime *aLastUpdateTime) override { return _to GetLastUpdateTime(aLastUpdateTime); } \
  NS_IMETHOD SetLastUpdateTime(PRTime aLastUpdateTime) override { return _to SetLastUpdateTime(aLastUpdateTime); } \
  NS_IMETHOD GetState(int32_t *aState) override { return _to GetState(aState); } \
  NS_IMETHOD SetState(int32_t aState) override { return _to SetState(aState); } \
  NS_IMETHOD GetPendingMessageCount(int32_t *aPendingMessageCount) override { return _to GetPendingMessageCount(aPendingMessageCount); } \
  NS_IMETHOD GetTotalMessageCount(int32_t *aTotalMessageCount) override { return _to GetTotalMessageCount(aTotalMessageCount); } \
  NS_IMETHOD GetOwnerFolder(nsIMsgFolder **aOwnerFolder) override { return _to GetOwnerFolder(aOwnerFolder); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUTOSYNCSTATE(_to) \
  NS_IMETHOD Rollback(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Rollback(); } \
  NS_IMETHOD ResetDownloadQ(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetDownloadQ(); } \
  NS_IMETHOD TryCurrentGroupAgain(uint32_t aRetryCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TryCurrentGroupAgain(aRetryCount); } \
  NS_IMETHOD ResetRetryCounter(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetRetryCounter(); } \
  NS_IMETHOD IsSibling(nsIAutoSyncState *aAnotherStateObj, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSibling(aAnotherStateObj, _retval); } \
  NS_IMETHOD UpdateFolder(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateFolder(); } \
  NS_IMETHOD DownloadMessagesForOffline(nsIArray *aMessageList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadMessagesForOffline(aMessageList); } \
  NS_IMETHOD GetNextGroupOfMessages(uint32_t aSuggestedGroupSizeLimit, uint32_t *aActualGroupSize, nsIMutableArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextGroupOfMessages(aSuggestedGroupSizeLimit, aActualGroupSize, _retval); } \
  NS_IMETHOD ProcessExistingHeaders(uint32_t aNumberOfHeadersToProcess, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessExistingHeaders(aNumberOfHeadersToProcess, _retval); } \
  NS_IMETHOD GetLastSyncTime(PRTime *aLastSyncTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastSyncTime(aLastSyncTime); } \
  NS_IMETHOD GetLastUpdateTime(PRTime *aLastUpdateTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastUpdateTime(aLastUpdateTime); } \
  NS_IMETHOD SetLastUpdateTime(PRTime aLastUpdateTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastUpdateTime(aLastUpdateTime); } \
  NS_IMETHOD GetState(int32_t *aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
  NS_IMETHOD SetState(int32_t aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetState(aState); } \
  NS_IMETHOD GetPendingMessageCount(int32_t *aPendingMessageCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPendingMessageCount(aPendingMessageCount); } \
  NS_IMETHOD GetTotalMessageCount(int32_t *aTotalMessageCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalMessageCount(aTotalMessageCount); } \
  NS_IMETHOD GetOwnerFolder(nsIMsgFolder **aOwnerFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerFolder(aOwnerFolder); } 


#endif /* __gen_nsIAutoSyncState_h__ */