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

#ifndef __gen_nsIMsgOfflineImapOperation_h__
#define __gen_nsIMsgOfflineImapOperation_h__


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

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

#ifndef __gen_nsIImapUrl_h__
#include "nsIImapUrl.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
typedef int32_t  nsOfflineImapOperationType;


/* starting interface:    nsIMsgOfflineImapOperation */
#define NS_IMSGOFFLINEIMAPOPERATION_IID_STR "b5229a55-22bb-444b-be92-13d719353828"

#define NS_IMSGOFFLINEIMAPOPERATION_IID \
  {0xb5229a55, 0x22bb, 0x444b, \
    { 0xbe, 0x92, 0x13, 0xd7, 0x19, 0x35, 0x38, 0x28 }}

class NS_NO_VTABLE nsIMsgOfflineImapOperation : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGOFFLINEIMAPOPERATION_IID)

  enum {
    kFlagsChanged = 1,
    kMsgMoved = 2,
    kMsgCopy = 4,
    kMoveResult = 8,
    kAppendDraft = 16,
    kAddedHeader = 32,
    kDeletedMsg = 64,
    kMsgMarkedDeleted = 128,
    kAppendTemplate = 256,
    kDeleteAllMsgs = 512,
    kAddKeywords = 1024,
    kRemoveKeywords = 2048
  };

  /* attribute nsOfflineImapOperationType operation; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOperation(nsOfflineImapOperationType *aOperation) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOperation(nsOfflineImapOperationType aOperation) = 0;

  /* void clearOperation (in nsOfflineImapOperationType operation); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearOperation(nsOfflineImapOperationType operation) = 0;

  /* attribute nsMsgKey messageKey; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) = 0;

  /* attribute nsMsgKey srcMessageKey; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSrcMessageKey(nsMsgKey *aSrcMessageKey) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSrcMessageKey(nsMsgKey aSrcMessageKey) = 0;

  /* attribute imapMessageFlagsType flagOperation; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFlagOperation(imapMessageFlagsType *aFlagOperation) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFlagOperation(imapMessageFlagsType aFlagOperation) = 0;

  /* attribute imapMessageFlagsType newFlags; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNewFlags(imapMessageFlagsType *aNewFlags) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetNewFlags(imapMessageFlagsType aNewFlags) = 0;

  /* attribute string destinationFolderURI; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDestinationFolderURI(char * *aDestinationFolderURI) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDestinationFolderURI(const char * aDestinationFolderURI) = 0;

  /* attribute string sourceFolderURI; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSourceFolderURI(char * *aSourceFolderURI) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSourceFolderURI(const char * aSourceFolderURI) = 0;

  /* void addKeywordToAdd (in string aKeyword); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddKeywordToAdd(const char * aKeyword) = 0;

  /* void addKeywordToRemove (in string aKeyword); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddKeywordToRemove(const char * aKeyword) = 0;

  /* readonly attribute string keywordsToAdd; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetKeywordsToAdd(char * *aKeywordsToAdd) = 0;

  /* readonly attribute string keywordsToRemove; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetKeywordsToRemove(char * *aKeywordsToRemove) = 0;

  /* readonly attribute long numberOfCopies; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumberOfCopies(int32_t *aNumberOfCopies) = 0;

  /* void addMessageCopyOperation (in string destinationBox); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddMessageCopyOperation(const char * destinationBox) = 0;

  /* string getCopyDestination (in long copyIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCopyDestination(int32_t copyIndex, char * *_retval) = 0;

  /* attribute unsigned long msgSize; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgSize(uint32_t *aMsgSize) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMsgSize(uint32_t aMsgSize) = 0;

  /* attribute boolean playingBack; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPlayingBack(bool *aPlayingBack) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPlayingBack(bool aPlayingBack) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgOfflineImapOperation, NS_IMSGOFFLINEIMAPOPERATION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGOFFLINEIMAPOPERATION \
  NS_IMETHOD GetOperation(nsOfflineImapOperationType *aOperation) override; \
  NS_IMETHOD SetOperation(nsOfflineImapOperationType aOperation) override; \
  NS_IMETHOD ClearOperation(nsOfflineImapOperationType operation) override; \
  NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) override; \
  NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) override; \
  NS_IMETHOD GetSrcMessageKey(nsMsgKey *aSrcMessageKey) override; \
  NS_IMETHOD SetSrcMessageKey(nsMsgKey aSrcMessageKey) override; \
  NS_IMETHOD GetFlagOperation(imapMessageFlagsType *aFlagOperation) override; \
  NS_IMETHOD SetFlagOperation(imapMessageFlagsType aFlagOperation) override; \
  NS_IMETHOD GetNewFlags(imapMessageFlagsType *aNewFlags) override; \
  NS_IMETHOD SetNewFlags(imapMessageFlagsType aNewFlags) override; \
  NS_IMETHOD GetDestinationFolderURI(char * *aDestinationFolderURI) override; \
  NS_IMETHOD SetDestinationFolderURI(const char * aDestinationFolderURI) override; \
  NS_IMETHOD GetSourceFolderURI(char * *aSourceFolderURI) override; \
  NS_IMETHOD SetSourceFolderURI(const char * aSourceFolderURI) override; \
  NS_IMETHOD AddKeywordToAdd(const char * aKeyword) override; \
  NS_IMETHOD AddKeywordToRemove(const char * aKeyword) override; \
  NS_IMETHOD GetKeywordsToAdd(char * *aKeywordsToAdd) override; \
  NS_IMETHOD GetKeywordsToRemove(char * *aKeywordsToRemove) override; \
  NS_IMETHOD GetNumberOfCopies(int32_t *aNumberOfCopies) override; \
  NS_IMETHOD AddMessageCopyOperation(const char * destinationBox) override; \
  NS_IMETHOD GetCopyDestination(int32_t copyIndex, char * *_retval) override; \
  NS_IMETHOD GetMsgSize(uint32_t *aMsgSize) override; \
  NS_IMETHOD SetMsgSize(uint32_t aMsgSize) override; \
  NS_IMETHOD GetPlayingBack(bool *aPlayingBack) override; \
  NS_IMETHOD SetPlayingBack(bool aPlayingBack) 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_NSIMSGOFFLINEIMAPOPERATION \
  nsresult GetOperation(nsOfflineImapOperationType *aOperation); \
  nsresult SetOperation(nsOfflineImapOperationType aOperation); \
  nsresult ClearOperation(nsOfflineImapOperationType operation); \
  nsresult GetMessageKey(nsMsgKey *aMessageKey); \
  nsresult SetMessageKey(nsMsgKey aMessageKey); \
  nsresult GetSrcMessageKey(nsMsgKey *aSrcMessageKey); \
  nsresult SetSrcMessageKey(nsMsgKey aSrcMessageKey); \
  nsresult GetFlagOperation(imapMessageFlagsType *aFlagOperation); \
  nsresult SetFlagOperation(imapMessageFlagsType aFlagOperation); \
  nsresult GetNewFlags(imapMessageFlagsType *aNewFlags); \
  nsresult SetNewFlags(imapMessageFlagsType aNewFlags); \
  nsresult GetDestinationFolderURI(char * *aDestinationFolderURI); \
  nsresult SetDestinationFolderURI(const char * aDestinationFolderURI); \
  nsresult GetSourceFolderURI(char * *aSourceFolderURI); \
  nsresult SetSourceFolderURI(const char * aSourceFolderURI); \
  nsresult AddKeywordToAdd(const char * aKeyword); \
  nsresult AddKeywordToRemove(const char * aKeyword); \
  nsresult GetKeywordsToAdd(char * *aKeywordsToAdd); \
  nsresult GetKeywordsToRemove(char * *aKeywordsToRemove); \
  nsresult GetNumberOfCopies(int32_t *aNumberOfCopies); \
  nsresult AddMessageCopyOperation(const char * destinationBox); \
  nsresult GetCopyDestination(int32_t copyIndex, char * *_retval); \
  nsresult GetMsgSize(uint32_t *aMsgSize); \
  nsresult SetMsgSize(uint32_t aMsgSize); \
  nsresult GetPlayingBack(bool *aPlayingBack); \
  nsresult SetPlayingBack(bool aPlayingBack); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGOFFLINEIMAPOPERATION(_to) \
  NS_IMETHOD GetOperation(nsOfflineImapOperationType *aOperation) override { return _to GetOperation(aOperation); } \
  NS_IMETHOD SetOperation(nsOfflineImapOperationType aOperation) override { return _to SetOperation(aOperation); } \
  NS_IMETHOD ClearOperation(nsOfflineImapOperationType operation) override { return _to ClearOperation(operation); } \
  NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) override { return _to GetMessageKey(aMessageKey); } \
  NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) override { return _to SetMessageKey(aMessageKey); } \
  NS_IMETHOD GetSrcMessageKey(nsMsgKey *aSrcMessageKey) override { return _to GetSrcMessageKey(aSrcMessageKey); } \
  NS_IMETHOD SetSrcMessageKey(nsMsgKey aSrcMessageKey) override { return _to SetSrcMessageKey(aSrcMessageKey); } \
  NS_IMETHOD GetFlagOperation(imapMessageFlagsType *aFlagOperation) override { return _to GetFlagOperation(aFlagOperation); } \
  NS_IMETHOD SetFlagOperation(imapMessageFlagsType aFlagOperation) override { return _to SetFlagOperation(aFlagOperation); } \
  NS_IMETHOD GetNewFlags(imapMessageFlagsType *aNewFlags) override { return _to GetNewFlags(aNewFlags); } \
  NS_IMETHOD SetNewFlags(imapMessageFlagsType aNewFlags) override { return _to SetNewFlags(aNewFlags); } \
  NS_IMETHOD GetDestinationFolderURI(char * *aDestinationFolderURI) override { return _to GetDestinationFolderURI(aDestinationFolderURI); } \
  NS_IMETHOD SetDestinationFolderURI(const char * aDestinationFolderURI) override { return _to SetDestinationFolderURI(aDestinationFolderURI); } \
  NS_IMETHOD GetSourceFolderURI(char * *aSourceFolderURI) override { return _to GetSourceFolderURI(aSourceFolderURI); } \
  NS_IMETHOD SetSourceFolderURI(const char * aSourceFolderURI) override { return _to SetSourceFolderURI(aSourceFolderURI); } \
  NS_IMETHOD AddKeywordToAdd(const char * aKeyword) override { return _to AddKeywordToAdd(aKeyword); } \
  NS_IMETHOD AddKeywordToRemove(const char * aKeyword) override { return _to AddKeywordToRemove(aKeyword); } \
  NS_IMETHOD GetKeywordsToAdd(char * *aKeywordsToAdd) override { return _to GetKeywordsToAdd(aKeywordsToAdd); } \
  NS_IMETHOD GetKeywordsToRemove(char * *aKeywordsToRemove) override { return _to GetKeywordsToRemove(aKeywordsToRemove); } \
  NS_IMETHOD GetNumberOfCopies(int32_t *aNumberOfCopies) override { return _to GetNumberOfCopies(aNumberOfCopies); } \
  NS_IMETHOD AddMessageCopyOperation(const char * destinationBox) override { return _to AddMessageCopyOperation(destinationBox); } \
  NS_IMETHOD GetCopyDestination(int32_t copyIndex, char * *_retval) override { return _to GetCopyDestination(copyIndex, _retval); } \
  NS_IMETHOD GetMsgSize(uint32_t *aMsgSize) override { return _to GetMsgSize(aMsgSize); } \
  NS_IMETHOD SetMsgSize(uint32_t aMsgSize) override { return _to SetMsgSize(aMsgSize); } \
  NS_IMETHOD GetPlayingBack(bool *aPlayingBack) override { return _to GetPlayingBack(aPlayingBack); } \
  NS_IMETHOD SetPlayingBack(bool aPlayingBack) override { return _to SetPlayingBack(aPlayingBack); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGOFFLINEIMAPOPERATION(_to) \
  NS_IMETHOD GetOperation(nsOfflineImapOperationType *aOperation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOperation(aOperation); } \
  NS_IMETHOD SetOperation(nsOfflineImapOperationType aOperation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOperation(aOperation); } \
  NS_IMETHOD ClearOperation(nsOfflineImapOperationType operation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearOperation(operation); } \
  NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageKey(aMessageKey); } \
  NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageKey(aMessageKey); } \
  NS_IMETHOD GetSrcMessageKey(nsMsgKey *aSrcMessageKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrcMessageKey(aSrcMessageKey); } \
  NS_IMETHOD SetSrcMessageKey(nsMsgKey aSrcMessageKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSrcMessageKey(aSrcMessageKey); } \
  NS_IMETHOD GetFlagOperation(imapMessageFlagsType *aFlagOperation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlagOperation(aFlagOperation); } \
  NS_IMETHOD SetFlagOperation(imapMessageFlagsType aFlagOperation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFlagOperation(aFlagOperation); } \
  NS_IMETHOD GetNewFlags(imapMessageFlagsType *aNewFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewFlags(aNewFlags); } \
  NS_IMETHOD SetNewFlags(imapMessageFlagsType aNewFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNewFlags(aNewFlags); } \
  NS_IMETHOD GetDestinationFolderURI(char * *aDestinationFolderURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDestinationFolderURI(aDestinationFolderURI); } \
  NS_IMETHOD SetDestinationFolderURI(const char * aDestinationFolderURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDestinationFolderURI(aDestinationFolderURI); } \
  NS_IMETHOD GetSourceFolderURI(char * *aSourceFolderURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceFolderURI(aSourceFolderURI); } \
  NS_IMETHOD SetSourceFolderURI(const char * aSourceFolderURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSourceFolderURI(aSourceFolderURI); } \
  NS_IMETHOD AddKeywordToAdd(const char * aKeyword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddKeywordToAdd(aKeyword); } \
  NS_IMETHOD AddKeywordToRemove(const char * aKeyword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddKeywordToRemove(aKeyword); } \
  NS_IMETHOD GetKeywordsToAdd(char * *aKeywordsToAdd) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeywordsToAdd(aKeywordsToAdd); } \
  NS_IMETHOD GetKeywordsToRemove(char * *aKeywordsToRemove) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeywordsToRemove(aKeywordsToRemove); } \
  NS_IMETHOD GetNumberOfCopies(int32_t *aNumberOfCopies) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfCopies(aNumberOfCopies); } \
  NS_IMETHOD AddMessageCopyOperation(const char * destinationBox) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMessageCopyOperation(destinationBox); } \
  NS_IMETHOD GetCopyDestination(int32_t copyIndex, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCopyDestination(copyIndex, _retval); } \
  NS_IMETHOD GetMsgSize(uint32_t *aMsgSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgSize(aMsgSize); } \
  NS_IMETHOD SetMsgSize(uint32_t aMsgSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgSize(aMsgSize); } \
  NS_IMETHOD GetPlayingBack(bool *aPlayingBack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlayingBack(aPlayingBack); } \
  NS_IMETHOD SetPlayingBack(bool aPlayingBack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPlayingBack(aPlayingBack); } 


#endif /* __gen_nsIMsgOfflineImapOperation_h__ */