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

#ifndef __gen_nsIMsgLocalMailFolder_h__
#define __gen_nsIMsgLocalMailFolder_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 nsIArray; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIUrlListener; /* forward declaration */

class nsIMsgDatabase; /* forward declaration */

class nsIMsgDBHdr; /* forward declaration */

class nsIMsgFolder; /* forward declaration */

class nsIMsgCopyServiceListener; /* forward declaration */

/* flags for markMsgsOnPop3Server */
#define POP3_NONE 0
#define POP3_DELETE 1
#define POP3_FETCH_BODY 2
#define POP3_FORCE_DEL 3
struct nsLocalFolderScanState;

/* starting interface:    nsIMsgLocalMailFolder */
#define NS_IMSGLOCALMAILFOLDER_IID_STR "ebf7576c-e15f-4aba-b021-cc6e9266e90c"

#define NS_IMSGLOCALMAILFOLDER_IID \
  {0xebf7576c, 0xe15f, 0x4aba, \
    { 0xb0, 0x21, 0xcc, 0x6e, 0x92, 0x66, 0xe9, 0x0c }}

class NS_NO_VTABLE nsIMsgLocalMailFolder : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGLOCALMAILFOLDER_IID)

  /* void setFlagsOnDefaultMailboxes (in unsigned long flags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFlagsOnDefaultMailboxes(uint32_t flags) = 0;

  /* nsIMsgDatabase getDatabaseWOReparse (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDatabaseWOReparse(nsIMsgDatabase **_retval) = 0;

  /* nsIMsgDatabase getDatabaseWithReparse (in nsIUrlListener aReparseUrlListener, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDatabaseWithReparse(nsIUrlListener *aReparseUrlListener, nsIMsgWindow *aMsgWindow, nsIMsgDatabase **_retval) = 0;

  /* void parseFolder (in nsIMsgWindow aMsgWindow, in nsIUrlListener listener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ParseFolder(nsIMsgWindow *aMsgWindow, nsIUrlListener *listener) = 0;

  /* void copyFolderLocal (in nsIMsgFolder srcFolder, in boolean isMove, in nsIMsgWindow msgWindow, in nsIMsgCopyServiceListener listener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CopyFolderLocal(nsIMsgFolder *srcFolder, bool isMove, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener) = 0;

  /* void copyAllSubFolders (in nsIMsgFolder srcFolder, in nsIMsgWindow msgWindow, in nsIMsgCopyServiceListener listener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CopyAllSubFolders(nsIMsgFolder *srcFolder, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener) = 0;

  /* void onCopyCompleted (in nsISupports aSrcSupport, in boolean aMoveCopySucceeded); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCopyCompleted(nsISupports *aSrcSupport, bool aMoveCopySucceeded) = 0;

  /* attribute boolean checkForNewMessagesAfterParsing; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCheckForNewMessagesAfterParsing(bool *aCheckForNewMessagesAfterParsing) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCheckForNewMessagesAfterParsing(bool aCheckForNewMessagesAfterParsing) = 0;

  /* void markMsgsOnPop3Server (in nsIArray aMessages, in int32_t aMark); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MarkMsgsOnPop3Server(nsIArray *aMessages, int32_t aMark) = 0;

  /* void refreshSizeOnDisk (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RefreshSizeOnDisk(void) = 0;

  /* nsIMsgFolder createLocalSubfolder (in AString aFolderName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateLocalSubfolder(const nsAString& aFolderName, nsIMsgFolder **_retval) = 0;

  /* nsIMsgDBHdr addMessage (in string aMessage); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddMessage(const char * aMessage, nsIMsgDBHdr **_retval) = 0;

  /* nsIArray addMessageBatch (in uint32_t aMessageCount, [array, size_is (aMessageCount)] in string aMessages); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddMessageBatch(uint32_t aMessageCount, const char * *aMessages, nsIArray **_retval) = 0;

  /* void deleteDownloadMsg (in nsIMsgDBHdr aMsgHdr, out boolean aDoSelect); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteDownloadMsg(nsIMsgDBHdr *aMsgHdr, bool *aDoSelect) = 0;

  /* void selectDownloadMsg (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SelectDownloadMsg(void) = 0;

  /* void notifyDelete (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyDelete(void) = 0;

  /* [noscript] void getFolderScanState (in nsLocalFolderScanState aState); */
  NS_IMETHOD GetFolderScanState(nsLocalFolderScanState * aState) = 0;

  /* [noscript] void getUidlFromFolder (in nsLocalFolderScanState aState, in nsIMsgDBHdr aMsgHdr); */
  NS_IMETHOD GetUidlFromFolder(nsLocalFolderScanState * aState, nsIMsgDBHdr *aMsgHdr) = 0;

  /* boolean warnIfLocalFileTooBig (in nsIMsgWindow aWindow, [optional] in long long aSpaceRequested); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WarnIfLocalFileTooBig(nsIMsgWindow *aWindow, int64_t aSpaceRequested, bool *_retval) = 0;

  /* void updateNewMsgHdr (in nsIMsgDBHdr aOldHdr, in nsIMsgDBHdr aNewHdr); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateNewMsgHdr(nsIMsgDBHdr *aOldHdr, nsIMsgDBHdr *aNewHdr) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgLocalMailFolder, NS_IMSGLOCALMAILFOLDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGLOCALMAILFOLDER \
  NS_IMETHOD SetFlagsOnDefaultMailboxes(uint32_t flags) override; \
  NS_IMETHOD GetDatabaseWOReparse(nsIMsgDatabase **_retval) override; \
  NS_IMETHOD GetDatabaseWithReparse(nsIUrlListener *aReparseUrlListener, nsIMsgWindow *aMsgWindow, nsIMsgDatabase **_retval) override; \
  NS_IMETHOD ParseFolder(nsIMsgWindow *aMsgWindow, nsIUrlListener *listener) override; \
  NS_IMETHOD CopyFolderLocal(nsIMsgFolder *srcFolder, bool isMove, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener) override; \
  NS_IMETHOD CopyAllSubFolders(nsIMsgFolder *srcFolder, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener) override; \
  NS_IMETHOD OnCopyCompleted(nsISupports *aSrcSupport, bool aMoveCopySucceeded) override; \
  NS_IMETHOD GetCheckForNewMessagesAfterParsing(bool *aCheckForNewMessagesAfterParsing) override; \
  NS_IMETHOD SetCheckForNewMessagesAfterParsing(bool aCheckForNewMessagesAfterParsing) override; \
  NS_IMETHOD MarkMsgsOnPop3Server(nsIArray *aMessages, int32_t aMark) override; \
  NS_IMETHOD RefreshSizeOnDisk(void) override; \
  NS_IMETHOD CreateLocalSubfolder(const nsAString& aFolderName, nsIMsgFolder **_retval) override; \
  NS_IMETHOD AddMessage(const char * aMessage, nsIMsgDBHdr **_retval) override; \
  NS_IMETHOD AddMessageBatch(uint32_t aMessageCount, const char * *aMessages, nsIArray **_retval) override; \
  NS_IMETHOD DeleteDownloadMsg(nsIMsgDBHdr *aMsgHdr, bool *aDoSelect) override; \
  NS_IMETHOD SelectDownloadMsg(void) override; \
  NS_IMETHOD NotifyDelete(void) override; \
  NS_IMETHOD GetFolderScanState(nsLocalFolderScanState * aState) override; \
  NS_IMETHOD GetUidlFromFolder(nsLocalFolderScanState * aState, nsIMsgDBHdr *aMsgHdr) override; \
  NS_IMETHOD WarnIfLocalFileTooBig(nsIMsgWindow *aWindow, int64_t aSpaceRequested, bool *_retval) override; \
  NS_IMETHOD UpdateNewMsgHdr(nsIMsgDBHdr *aOldHdr, nsIMsgDBHdr *aNewHdr) 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_NSIMSGLOCALMAILFOLDER \
  nsresult SetFlagsOnDefaultMailboxes(uint32_t flags); \
  nsresult GetDatabaseWOReparse(nsIMsgDatabase **_retval); \
  nsresult GetDatabaseWithReparse(nsIUrlListener *aReparseUrlListener, nsIMsgWindow *aMsgWindow, nsIMsgDatabase **_retval); \
  nsresult ParseFolder(nsIMsgWindow *aMsgWindow, nsIUrlListener *listener); \
  nsresult CopyFolderLocal(nsIMsgFolder *srcFolder, bool isMove, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener); \
  nsresult CopyAllSubFolders(nsIMsgFolder *srcFolder, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener); \
  nsresult OnCopyCompleted(nsISupports *aSrcSupport, bool aMoveCopySucceeded); \
  nsresult GetCheckForNewMessagesAfterParsing(bool *aCheckForNewMessagesAfterParsing); \
  nsresult SetCheckForNewMessagesAfterParsing(bool aCheckForNewMessagesAfterParsing); \
  nsresult MarkMsgsOnPop3Server(nsIArray *aMessages, int32_t aMark); \
  nsresult RefreshSizeOnDisk(void); \
  nsresult CreateLocalSubfolder(const nsAString& aFolderName, nsIMsgFolder **_retval); \
  nsresult AddMessage(const char * aMessage, nsIMsgDBHdr **_retval); \
  nsresult AddMessageBatch(uint32_t aMessageCount, const char * *aMessages, nsIArray **_retval); \
  nsresult DeleteDownloadMsg(nsIMsgDBHdr *aMsgHdr, bool *aDoSelect); \
  nsresult SelectDownloadMsg(void); \
  nsresult NotifyDelete(void); \
  nsresult GetFolderScanState(nsLocalFolderScanState * aState); \
  nsresult GetUidlFromFolder(nsLocalFolderScanState * aState, nsIMsgDBHdr *aMsgHdr); \
  nsresult WarnIfLocalFileTooBig(nsIMsgWindow *aWindow, int64_t aSpaceRequested, bool *_retval); \
  nsresult UpdateNewMsgHdr(nsIMsgDBHdr *aOldHdr, nsIMsgDBHdr *aNewHdr); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGLOCALMAILFOLDER(_to) \
  NS_IMETHOD SetFlagsOnDefaultMailboxes(uint32_t flags) override { return _to SetFlagsOnDefaultMailboxes(flags); } \
  NS_IMETHOD GetDatabaseWOReparse(nsIMsgDatabase **_retval) override { return _to GetDatabaseWOReparse(_retval); } \
  NS_IMETHOD GetDatabaseWithReparse(nsIUrlListener *aReparseUrlListener, nsIMsgWindow *aMsgWindow, nsIMsgDatabase **_retval) override { return _to GetDatabaseWithReparse(aReparseUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD ParseFolder(nsIMsgWindow *aMsgWindow, nsIUrlListener *listener) override { return _to ParseFolder(aMsgWindow, listener); } \
  NS_IMETHOD CopyFolderLocal(nsIMsgFolder *srcFolder, bool isMove, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener) override { return _to CopyFolderLocal(srcFolder, isMove, msgWindow, listener); } \
  NS_IMETHOD CopyAllSubFolders(nsIMsgFolder *srcFolder, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener) override { return _to CopyAllSubFolders(srcFolder, msgWindow, listener); } \
  NS_IMETHOD OnCopyCompleted(nsISupports *aSrcSupport, bool aMoveCopySucceeded) override { return _to OnCopyCompleted(aSrcSupport, aMoveCopySucceeded); } \
  NS_IMETHOD GetCheckForNewMessagesAfterParsing(bool *aCheckForNewMessagesAfterParsing) override { return _to GetCheckForNewMessagesAfterParsing(aCheckForNewMessagesAfterParsing); } \
  NS_IMETHOD SetCheckForNewMessagesAfterParsing(bool aCheckForNewMessagesAfterParsing) override { return _to SetCheckForNewMessagesAfterParsing(aCheckForNewMessagesAfterParsing); } \
  NS_IMETHOD MarkMsgsOnPop3Server(nsIArray *aMessages, int32_t aMark) override { return _to MarkMsgsOnPop3Server(aMessages, aMark); } \
  NS_IMETHOD RefreshSizeOnDisk(void) override { return _to RefreshSizeOnDisk(); } \
  NS_IMETHOD CreateLocalSubfolder(const nsAString& aFolderName, nsIMsgFolder **_retval) override { return _to CreateLocalSubfolder(aFolderName, _retval); } \
  NS_IMETHOD AddMessage(const char * aMessage, nsIMsgDBHdr **_retval) override { return _to AddMessage(aMessage, _retval); } \
  NS_IMETHOD AddMessageBatch(uint32_t aMessageCount, const char * *aMessages, nsIArray **_retval) override { return _to AddMessageBatch(aMessageCount, aMessages, _retval); } \
  NS_IMETHOD DeleteDownloadMsg(nsIMsgDBHdr *aMsgHdr, bool *aDoSelect) override { return _to DeleteDownloadMsg(aMsgHdr, aDoSelect); } \
  NS_IMETHOD SelectDownloadMsg(void) override { return _to SelectDownloadMsg(); } \
  NS_IMETHOD NotifyDelete(void) override { return _to NotifyDelete(); } \
  NS_IMETHOD GetFolderScanState(nsLocalFolderScanState * aState) override { return _to GetFolderScanState(aState); } \
  NS_IMETHOD GetUidlFromFolder(nsLocalFolderScanState * aState, nsIMsgDBHdr *aMsgHdr) override { return _to GetUidlFromFolder(aState, aMsgHdr); } \
  NS_IMETHOD WarnIfLocalFileTooBig(nsIMsgWindow *aWindow, int64_t aSpaceRequested, bool *_retval) override { return _to WarnIfLocalFileTooBig(aWindow, aSpaceRequested, _retval); } \
  NS_IMETHOD UpdateNewMsgHdr(nsIMsgDBHdr *aOldHdr, nsIMsgDBHdr *aNewHdr) override { return _to UpdateNewMsgHdr(aOldHdr, aNewHdr); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGLOCALMAILFOLDER(_to) \
  NS_IMETHOD SetFlagsOnDefaultMailboxes(uint32_t flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFlagsOnDefaultMailboxes(flags); } \
  NS_IMETHOD GetDatabaseWOReparse(nsIMsgDatabase **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDatabaseWOReparse(_retval); } \
  NS_IMETHOD GetDatabaseWithReparse(nsIUrlListener *aReparseUrlListener, nsIMsgWindow *aMsgWindow, nsIMsgDatabase **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDatabaseWithReparse(aReparseUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD ParseFolder(nsIMsgWindow *aMsgWindow, nsIUrlListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFolder(aMsgWindow, listener); } \
  NS_IMETHOD CopyFolderLocal(nsIMsgFolder *srcFolder, bool isMove, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyFolderLocal(srcFolder, isMove, msgWindow, listener); } \
  NS_IMETHOD CopyAllSubFolders(nsIMsgFolder *srcFolder, nsIMsgWindow *msgWindow, nsIMsgCopyServiceListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyAllSubFolders(srcFolder, msgWindow, listener); } \
  NS_IMETHOD OnCopyCompleted(nsISupports *aSrcSupport, bool aMoveCopySucceeded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCopyCompleted(aSrcSupport, aMoveCopySucceeded); } \
  NS_IMETHOD GetCheckForNewMessagesAfterParsing(bool *aCheckForNewMessagesAfterParsing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCheckForNewMessagesAfterParsing(aCheckForNewMessagesAfterParsing); } \
  NS_IMETHOD SetCheckForNewMessagesAfterParsing(bool aCheckForNewMessagesAfterParsing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCheckForNewMessagesAfterParsing(aCheckForNewMessagesAfterParsing); } \
  NS_IMETHOD MarkMsgsOnPop3Server(nsIArray *aMessages, int32_t aMark) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkMsgsOnPop3Server(aMessages, aMark); } \
  NS_IMETHOD RefreshSizeOnDisk(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshSizeOnDisk(); } \
  NS_IMETHOD CreateLocalSubfolder(const nsAString& aFolderName, nsIMsgFolder **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateLocalSubfolder(aFolderName, _retval); } \
  NS_IMETHOD AddMessage(const char * aMessage, nsIMsgDBHdr **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMessage(aMessage, _retval); } \
  NS_IMETHOD AddMessageBatch(uint32_t aMessageCount, const char * *aMessages, nsIArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMessageBatch(aMessageCount, aMessages, _retval); } \
  NS_IMETHOD DeleteDownloadMsg(nsIMsgDBHdr *aMsgHdr, bool *aDoSelect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteDownloadMsg(aMsgHdr, aDoSelect); } \
  NS_IMETHOD SelectDownloadMsg(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectDownloadMsg(); } \
  NS_IMETHOD NotifyDelete(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDelete(); } \
  NS_IMETHOD GetFolderScanState(nsLocalFolderScanState * aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderScanState(aState); } \
  NS_IMETHOD GetUidlFromFolder(nsLocalFolderScanState * aState, nsIMsgDBHdr *aMsgHdr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUidlFromFolder(aState, aMsgHdr); } \
  NS_IMETHOD WarnIfLocalFileTooBig(nsIMsgWindow *aWindow, int64_t aSpaceRequested, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WarnIfLocalFileTooBig(aWindow, aSpaceRequested, _retval); } \
  NS_IMETHOD UpdateNewMsgHdr(nsIMsgDBHdr *aOldHdr, nsIMsgDBHdr *aNewHdr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateNewMsgHdr(aOldHdr, aNewHdr); } 


#endif /* __gen_nsIMsgLocalMailFolder_h__ */