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

#ifndef __gen_nsIImapMessageSink_h__
#define __gen_nsIImapMessageSink_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
class nsIFile; /* forward declaration */


/* starting interface:    nsIImapMessageSink */
#define NS_IIMAPMESSAGESINK_IID_STR "6ffb6a92-e43a-405f-92ea-92cf81a5e17b"

#define NS_IIMAPMESSAGESINK_IID \
  {0x6ffb6a92, 0xe43a, 0x405f, \
    { 0x92, 0xea, 0x92, 0xcf, 0x81, 0xa5, 0xe1, 0x7b }}

class NS_NO_VTABLE nsIImapMessageSink : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAPMESSAGESINK_IID)

  /* void setupMsgWriteStream (in nsIFile aFile, in boolean aAppendDummyEnvelope); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetupMsgWriteStream(nsIFile *aFile, bool aAppendDummyEnvelope) = 0;

  /* void parseAdoptedMsgLine (in string aAdoptedMsgLine, in nsMsgKey aUidOfMsg, in nsIImapUrl aImapUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ParseAdoptedMsgLine(const char * aAdoptedMsgLine, nsMsgKey aUidOfMsg, nsIImapUrl *aImapUrl) = 0;

  /* void normalEndMsgWriteStream (in nsMsgKey aUidOfMessage, in boolean aMarkMsgRead, in nsIImapUrl aImapUrl, in long aUpdatedMessageSize); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NormalEndMsgWriteStream(nsMsgKey aUidOfMessage, bool aMarkMsgRead, nsIImapUrl *aImapUrl, int32_t aUpdatedMessageSize) = 0;

  /* void abortMsgWriteStream (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AbortMsgWriteStream(void) = 0;

  /* void beginMessageUpload (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD BeginMessageUpload(void) = 0;

  /* void notifyMessageFlags (in unsigned long aFlags, in ACString aKeywords, in nsMsgKey aMessageKey, in unsigned long long aHighestModSeq); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyMessageFlags(uint32_t aFlags, const nsACString& aKeywords, nsMsgKey aMessageKey, uint64_t aHighestModSeq) = 0;

  /* void notifyMessageDeleted (in string aOnlineFolderName, in boolean aDeleteAllMsgs, in string aMsgIdString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyMessageDeleted(const char * aOnlineFolderName, bool aDeleteAllMsgs, const char * aMsgIdString) = 0;

  /* void getMessageSizeFromDB (in string aId, out unsigned long aSize); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageSizeFromDB(const char * aId, uint32_t *aSize) = 0;

  /* void setContentModified (in nsIImapUrl aImapUrl, in nsImapContentModifiedType aModified); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContentModified(nsIImapUrl *aImapUrl, nsImapContentModifiedType aModified) = 0;

  /* unsigned long getCurMoveCopyMessageInfo (in nsIImapUrl aRunningUrl, out PRTime aDate, out ACString aKeywords); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurMoveCopyMessageInfo(nsIImapUrl *aRunningUrl, PRTime *aDate, nsACString& aKeywords, uint32_t *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImapMessageSink, NS_IIMAPMESSAGESINK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPMESSAGESINK \
  NS_IMETHOD SetupMsgWriteStream(nsIFile *aFile, bool aAppendDummyEnvelope) override; \
  NS_IMETHOD ParseAdoptedMsgLine(const char * aAdoptedMsgLine, nsMsgKey aUidOfMsg, nsIImapUrl *aImapUrl) override; \
  NS_IMETHOD NormalEndMsgWriteStream(nsMsgKey aUidOfMessage, bool aMarkMsgRead, nsIImapUrl *aImapUrl, int32_t aUpdatedMessageSize) override; \
  NS_IMETHOD AbortMsgWriteStream(void) override; \
  NS_IMETHOD BeginMessageUpload(void) override; \
  NS_IMETHOD NotifyMessageFlags(uint32_t aFlags, const nsACString& aKeywords, nsMsgKey aMessageKey, uint64_t aHighestModSeq) override; \
  NS_IMETHOD NotifyMessageDeleted(const char * aOnlineFolderName, bool aDeleteAllMsgs, const char * aMsgIdString) override; \
  NS_IMETHOD GetMessageSizeFromDB(const char * aId, uint32_t *aSize) override; \
  NS_IMETHOD SetContentModified(nsIImapUrl *aImapUrl, nsImapContentModifiedType aModified) override; \
  NS_IMETHOD GetCurMoveCopyMessageInfo(nsIImapUrl *aRunningUrl, PRTime *aDate, nsACString& aKeywords, uint32_t *_retval) 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_NSIIMAPMESSAGESINK \
  nsresult SetupMsgWriteStream(nsIFile *aFile, bool aAppendDummyEnvelope); \
  nsresult ParseAdoptedMsgLine(const char * aAdoptedMsgLine, nsMsgKey aUidOfMsg, nsIImapUrl *aImapUrl); \
  nsresult NormalEndMsgWriteStream(nsMsgKey aUidOfMessage, bool aMarkMsgRead, nsIImapUrl *aImapUrl, int32_t aUpdatedMessageSize); \
  nsresult AbortMsgWriteStream(void); \
  nsresult BeginMessageUpload(void); \
  nsresult NotifyMessageFlags(uint32_t aFlags, const nsACString& aKeywords, nsMsgKey aMessageKey, uint64_t aHighestModSeq); \
  nsresult NotifyMessageDeleted(const char * aOnlineFolderName, bool aDeleteAllMsgs, const char * aMsgIdString); \
  nsresult GetMessageSizeFromDB(const char * aId, uint32_t *aSize); \
  nsresult SetContentModified(nsIImapUrl *aImapUrl, nsImapContentModifiedType aModified); \
  nsresult GetCurMoveCopyMessageInfo(nsIImapUrl *aRunningUrl, PRTime *aDate, nsACString& aKeywords, uint32_t *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPMESSAGESINK(_to) \
  NS_IMETHOD SetupMsgWriteStream(nsIFile *aFile, bool aAppendDummyEnvelope) override { return _to SetupMsgWriteStream(aFile, aAppendDummyEnvelope); } \
  NS_IMETHOD ParseAdoptedMsgLine(const char * aAdoptedMsgLine, nsMsgKey aUidOfMsg, nsIImapUrl *aImapUrl) override { return _to ParseAdoptedMsgLine(aAdoptedMsgLine, aUidOfMsg, aImapUrl); } \
  NS_IMETHOD NormalEndMsgWriteStream(nsMsgKey aUidOfMessage, bool aMarkMsgRead, nsIImapUrl *aImapUrl, int32_t aUpdatedMessageSize) override { return _to NormalEndMsgWriteStream(aUidOfMessage, aMarkMsgRead, aImapUrl, aUpdatedMessageSize); } \
  NS_IMETHOD AbortMsgWriteStream(void) override { return _to AbortMsgWriteStream(); } \
  NS_IMETHOD BeginMessageUpload(void) override { return _to BeginMessageUpload(); } \
  NS_IMETHOD NotifyMessageFlags(uint32_t aFlags, const nsACString& aKeywords, nsMsgKey aMessageKey, uint64_t aHighestModSeq) override { return _to NotifyMessageFlags(aFlags, aKeywords, aMessageKey, aHighestModSeq); } \
  NS_IMETHOD NotifyMessageDeleted(const char * aOnlineFolderName, bool aDeleteAllMsgs, const char * aMsgIdString) override { return _to NotifyMessageDeleted(aOnlineFolderName, aDeleteAllMsgs, aMsgIdString); } \
  NS_IMETHOD GetMessageSizeFromDB(const char * aId, uint32_t *aSize) override { return _to GetMessageSizeFromDB(aId, aSize); } \
  NS_IMETHOD SetContentModified(nsIImapUrl *aImapUrl, nsImapContentModifiedType aModified) override { return _to SetContentModified(aImapUrl, aModified); } \
  NS_IMETHOD GetCurMoveCopyMessageInfo(nsIImapUrl *aRunningUrl, PRTime *aDate, nsACString& aKeywords, uint32_t *_retval) override { return _to GetCurMoveCopyMessageInfo(aRunningUrl, aDate, aKeywords, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMAPMESSAGESINK(_to) \
  NS_IMETHOD SetupMsgWriteStream(nsIFile *aFile, bool aAppendDummyEnvelope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupMsgWriteStream(aFile, aAppendDummyEnvelope); } \
  NS_IMETHOD ParseAdoptedMsgLine(const char * aAdoptedMsgLine, nsMsgKey aUidOfMsg, nsIImapUrl *aImapUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseAdoptedMsgLine(aAdoptedMsgLine, aUidOfMsg, aImapUrl); } \
  NS_IMETHOD NormalEndMsgWriteStream(nsMsgKey aUidOfMessage, bool aMarkMsgRead, nsIImapUrl *aImapUrl, int32_t aUpdatedMessageSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalEndMsgWriteStream(aUidOfMessage, aMarkMsgRead, aImapUrl, aUpdatedMessageSize); } \
  NS_IMETHOD AbortMsgWriteStream(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AbortMsgWriteStream(); } \
  NS_IMETHOD BeginMessageUpload(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginMessageUpload(); } \
  NS_IMETHOD NotifyMessageFlags(uint32_t aFlags, const nsACString& aKeywords, nsMsgKey aMessageKey, uint64_t aHighestModSeq) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessageFlags(aFlags, aKeywords, aMessageKey, aHighestModSeq); } \
  NS_IMETHOD NotifyMessageDeleted(const char * aOnlineFolderName, bool aDeleteAllMsgs, const char * aMsgIdString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessageDeleted(aOnlineFolderName, aDeleteAllMsgs, aMsgIdString); } \
  NS_IMETHOD GetMessageSizeFromDB(const char * aId, uint32_t *aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageSizeFromDB(aId, aSize); } \
  NS_IMETHOD SetContentModified(nsIImapUrl *aImapUrl, nsImapContentModifiedType aModified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentModified(aImapUrl, aModified); } \
  NS_IMETHOD GetCurMoveCopyMessageInfo(nsIImapUrl *aRunningUrl, PRTime *aDate, nsACString& aKeywords, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurMoveCopyMessageInfo(aRunningUrl, aDate, aKeywords, _retval); } 


#endif /* __gen_nsIImapMessageSink_h__ */