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

#ifndef __gen_nsIImapProtocol_h__
#define __gen_nsIImapProtocol_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 nsIURI; /* forward declaration */

class nsIImapUrl; /* forward declaration */

class nsIImapIncomingServer; /* forward declaration */

class nsIMsgFolder; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIImapFlagAndUidState; /* forward declaration */

class nsIImapHostSessionList;

/* starting interface:    nsIImapProtocol */
#define NS_IIMAPPROTOCOL_IID_STR "6ef189e5-8711-4845-9625-d1c74c22c4b5"

#define NS_IIMAPPROTOCOL_IID \
  {0x6ef189e5, 0x8711, 0x4845, \
    { 0x96, 0x25, 0xd1, 0xc7, 0x4c, 0x22, 0xc4, 0xb5 }}

class NS_NO_VTABLE nsIImapProtocol : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAPPROTOCOL_IID)

  /* void LoadImapUrl (in nsIURI aUrl, in nsISupports aConsumer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadImapUrl(nsIURI *aUrl, nsISupports *aConsumer) = 0;

  /* void IsBusy (out boolean aIsConnectionBusy, out boolean isInboxConnection); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsBusy(bool *aIsConnectionBusy, bool *isInboxConnection) = 0;

  /* void CanHandleUrl (in nsIImapUrl aImapUrl, out boolean aCanRunUrl, out boolean hasToWait); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanHandleUrl(nsIImapUrl *aImapUrl, bool *aCanRunUrl, bool *hasToWait) = 0;

  /* void Initialize (in nsIImapHostSessionList aHostSessionList, in nsIImapIncomingServer aServer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Initialize(nsIImapHostSessionList * aHostSessionList, nsIImapIncomingServer *aServer) = 0;

  /* void NotifyBodysToDownload (out unsigned long keys, in unsigned long count); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyBodysToDownload(uint32_t *keys, uint32_t count) = 0;

  /* void GetFlagsForUID (in unsigned long uid, out boolean foundIt, out unsigned short flags, out string customFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFlagsForUID(uint32_t uid, bool *foundIt, uint16_t *flags, char * *customFlags) = 0;

  /* void GetSupportedUserFlags (out unsigned short flags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSupportedUserFlags(uint16_t *flags) = 0;

  /* void GetRunningImapURL (out nsIImapUrl aImapUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRunningImapURL(nsIImapUrl **aImapUrl) = 0;

  /* void GetRunningUrl (out nsIURI aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRunningUrl(nsIURI **aUrl) = 0;

  /* readonly attribute nsIImapFlagAndUidState flagAndUidState; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFlagAndUidState(nsIImapFlagAndUidState **aFlagAndUidState) = 0;

  /* void tellThreadToDie (in boolean aIsSafeToClose); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TellThreadToDie(bool aIsSafeToClose) = 0;

  /* void GetLastActiveTimeStamp (out PRTime aTimeStamp); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastActiveTimeStamp(PRTime *aTimeStamp) = 0;

  /* void pseudoInterruptMsgLoad (in nsIMsgFolder imapFolder, in nsIMsgWindow aMsgWindow, out boolean interrupted); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PseudoInterruptMsgLoad(nsIMsgFolder *imapFolder, nsIMsgWindow *aMsgWindow, bool *interrupted) = 0;

  /* void GetSelectedMailboxName (out string folderName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectedMailboxName(char * *folderName) = 0;

  /* void ResetToAuthenticatedState (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetToAuthenticatedState(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImapProtocol, NS_IIMAPPROTOCOL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPPROTOCOL \
  NS_IMETHOD LoadImapUrl(nsIURI *aUrl, nsISupports *aConsumer) override; \
  NS_IMETHOD IsBusy(bool *aIsConnectionBusy, bool *isInboxConnection) override; \
  NS_IMETHOD CanHandleUrl(nsIImapUrl *aImapUrl, bool *aCanRunUrl, bool *hasToWait) override; \
  NS_IMETHOD Initialize(nsIImapHostSessionList * aHostSessionList, nsIImapIncomingServer *aServer) override; \
  NS_IMETHOD NotifyBodysToDownload(uint32_t *keys, uint32_t count) override; \
  NS_IMETHOD GetFlagsForUID(uint32_t uid, bool *foundIt, uint16_t *flags, char * *customFlags) override; \
  NS_IMETHOD GetSupportedUserFlags(uint16_t *flags) override; \
  NS_IMETHOD GetRunningImapURL(nsIImapUrl **aImapUrl) override; \
  NS_IMETHOD GetRunningUrl(nsIURI **aUrl) override; \
  NS_IMETHOD GetFlagAndUidState(nsIImapFlagAndUidState **aFlagAndUidState) override; \
  NS_IMETHOD TellThreadToDie(bool aIsSafeToClose) override; \
  NS_IMETHOD GetLastActiveTimeStamp(PRTime *aTimeStamp) override; \
  NS_IMETHOD PseudoInterruptMsgLoad(nsIMsgFolder *imapFolder, nsIMsgWindow *aMsgWindow, bool *interrupted) override; \
  NS_IMETHOD GetSelectedMailboxName(char * *folderName) override; \
  NS_IMETHOD ResetToAuthenticatedState(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_NSIIMAPPROTOCOL \
  nsresult LoadImapUrl(nsIURI *aUrl, nsISupports *aConsumer); \
  nsresult IsBusy(bool *aIsConnectionBusy, bool *isInboxConnection); \
  nsresult CanHandleUrl(nsIImapUrl *aImapUrl, bool *aCanRunUrl, bool *hasToWait); \
  nsresult Initialize(nsIImapHostSessionList * aHostSessionList, nsIImapIncomingServer *aServer); \
  nsresult NotifyBodysToDownload(uint32_t *keys, uint32_t count); \
  nsresult GetFlagsForUID(uint32_t uid, bool *foundIt, uint16_t *flags, char * *customFlags); \
  nsresult GetSupportedUserFlags(uint16_t *flags); \
  nsresult GetRunningImapURL(nsIImapUrl **aImapUrl); \
  nsresult GetRunningUrl(nsIURI **aUrl); \
  nsresult GetFlagAndUidState(nsIImapFlagAndUidState **aFlagAndUidState); \
  nsresult TellThreadToDie(bool aIsSafeToClose); \
  nsresult GetLastActiveTimeStamp(PRTime *aTimeStamp); \
  nsresult PseudoInterruptMsgLoad(nsIMsgFolder *imapFolder, nsIMsgWindow *aMsgWindow, bool *interrupted); \
  nsresult GetSelectedMailboxName(char * *folderName); \
  nsresult ResetToAuthenticatedState(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPPROTOCOL(_to) \
  NS_IMETHOD LoadImapUrl(nsIURI *aUrl, nsISupports *aConsumer) override { return _to LoadImapUrl(aUrl, aConsumer); } \
  NS_IMETHOD IsBusy(bool *aIsConnectionBusy, bool *isInboxConnection) override { return _to IsBusy(aIsConnectionBusy, isInboxConnection); } \
  NS_IMETHOD CanHandleUrl(nsIImapUrl *aImapUrl, bool *aCanRunUrl, bool *hasToWait) override { return _to CanHandleUrl(aImapUrl, aCanRunUrl, hasToWait); } \
  NS_IMETHOD Initialize(nsIImapHostSessionList * aHostSessionList, nsIImapIncomingServer *aServer) override { return _to Initialize(aHostSessionList, aServer); } \
  NS_IMETHOD NotifyBodysToDownload(uint32_t *keys, uint32_t count) override { return _to NotifyBodysToDownload(keys, count); } \
  NS_IMETHOD GetFlagsForUID(uint32_t uid, bool *foundIt, uint16_t *flags, char * *customFlags) override { return _to GetFlagsForUID(uid, foundIt, flags, customFlags); } \
  NS_IMETHOD GetSupportedUserFlags(uint16_t *flags) override { return _to GetSupportedUserFlags(flags); } \
  NS_IMETHOD GetRunningImapURL(nsIImapUrl **aImapUrl) override { return _to GetRunningImapURL(aImapUrl); } \
  NS_IMETHOD GetRunningUrl(nsIURI **aUrl) override { return _to GetRunningUrl(aUrl); } \
  NS_IMETHOD GetFlagAndUidState(nsIImapFlagAndUidState **aFlagAndUidState) override { return _to GetFlagAndUidState(aFlagAndUidState); } \
  NS_IMETHOD TellThreadToDie(bool aIsSafeToClose) override { return _to TellThreadToDie(aIsSafeToClose); } \
  NS_IMETHOD GetLastActiveTimeStamp(PRTime *aTimeStamp) override { return _to GetLastActiveTimeStamp(aTimeStamp); } \
  NS_IMETHOD PseudoInterruptMsgLoad(nsIMsgFolder *imapFolder, nsIMsgWindow *aMsgWindow, bool *interrupted) override { return _to PseudoInterruptMsgLoad(imapFolder, aMsgWindow, interrupted); } \
  NS_IMETHOD GetSelectedMailboxName(char * *folderName) override { return _to GetSelectedMailboxName(folderName); } \
  NS_IMETHOD ResetToAuthenticatedState(void) override { return _to ResetToAuthenticatedState(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMAPPROTOCOL(_to) \
  NS_IMETHOD LoadImapUrl(nsIURI *aUrl, nsISupports *aConsumer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadImapUrl(aUrl, aConsumer); } \
  NS_IMETHOD IsBusy(bool *aIsConnectionBusy, bool *isInboxConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsBusy(aIsConnectionBusy, isInboxConnection); } \
  NS_IMETHOD CanHandleUrl(nsIImapUrl *aImapUrl, bool *aCanRunUrl, bool *hasToWait) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanHandleUrl(aImapUrl, aCanRunUrl, hasToWait); } \
  NS_IMETHOD Initialize(nsIImapHostSessionList * aHostSessionList, nsIImapIncomingServer *aServer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(aHostSessionList, aServer); } \
  NS_IMETHOD NotifyBodysToDownload(uint32_t *keys, uint32_t count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyBodysToDownload(keys, count); } \
  NS_IMETHOD GetFlagsForUID(uint32_t uid, bool *foundIt, uint16_t *flags, char * *customFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlagsForUID(uid, foundIt, flags, customFlags); } \
  NS_IMETHOD GetSupportedUserFlags(uint16_t *flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedUserFlags(flags); } \
  NS_IMETHOD GetRunningImapURL(nsIImapUrl **aImapUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRunningImapURL(aImapUrl); } \
  NS_IMETHOD GetRunningUrl(nsIURI **aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRunningUrl(aUrl); } \
  NS_IMETHOD GetFlagAndUidState(nsIImapFlagAndUidState **aFlagAndUidState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlagAndUidState(aFlagAndUidState); } \
  NS_IMETHOD TellThreadToDie(bool aIsSafeToClose) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TellThreadToDie(aIsSafeToClose); } \
  NS_IMETHOD GetLastActiveTimeStamp(PRTime *aTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastActiveTimeStamp(aTimeStamp); } \
  NS_IMETHOD PseudoInterruptMsgLoad(nsIMsgFolder *imapFolder, nsIMsgWindow *aMsgWindow, bool *interrupted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PseudoInterruptMsgLoad(imapFolder, aMsgWindow, interrupted); } \
  NS_IMETHOD GetSelectedMailboxName(char * *folderName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedMailboxName(folderName); } \
  NS_IMETHOD ResetToAuthenticatedState(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetToAuthenticatedState(); } 


#endif /* __gen_nsIImapProtocol_h__ */