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

#ifndef __gen_nsIMsgComposeService_h__
#define __gen_nsIMsgComposeService_h__


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

#ifndef __gen_nsIMsgCompose_h__
#include "nsIMsgCompose.h"
#endif

#ifndef __gen_nsIMsgComposeParams_h__
#include "nsIMsgComposeParams.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 nsIDocShell; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIMsgIdentity; /* forward declaration */

class nsIMsgIncomingServer; /* forward declaration */

class nsIMsgDBHdr; /* forward declaration */


/* starting interface:    nsIMsgComposeService */
#define NS_IMSGCOMPOSESERVICE_IID_STR "041782bf-e523-444b-a268-d90868fd2b50"

#define NS_IMSGCOMPOSESERVICE_IID \
  {0x041782bf, 0xe523, 0x444b, \
    { 0xa2, 0x68, 0xd9, 0x08, 0x68, 0xfd, 0x2b, 0x50 }}

class NS_NO_VTABLE nsIMsgComposeService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPOSESERVICE_IID)

  /* void OpenComposeWindow (in string msgComposeWindowURL, in nsIMsgDBHdr msgHdr, in string originalMsgURI, in MSG_ComposeType type, in MSG_ComposeFormat format, in nsIMsgIdentity identity, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenComposeWindow(const char * msgComposeWindowURL, nsIMsgDBHdr *msgHdr, const char * originalMsgURI, MSG_ComposeType type, MSG_ComposeFormat format, nsIMsgIdentity *identity, nsIMsgWindow *aMsgWindow) = 0;

  /* void OpenComposeWindowWithURI (in string msgComposeWindowURL, in nsIURI aURI, [optional] in nsIMsgIdentity aIdentity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenComposeWindowWithURI(const char * msgComposeWindowURL, nsIURI *aURI, nsIMsgIdentity *aIdentity) = 0;

  /* void OpenComposeWindowWithParams (in string msgComposeWindowURL, in nsIMsgComposeParams params); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenComposeWindowWithParams(const char * msgComposeWindowURL, nsIMsgComposeParams *params) = 0;

  /* nsIMsgCompose initCompose (in nsIMsgComposeParams aParams, [optional] in mozIDOMWindowProxy aWindow, [optional] in nsIDocShell aDocShell); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitCompose(nsIMsgComposeParams *aParams, mozIDOMWindowProxy *aWindow, nsIDocShell *aDocShell, nsIMsgCompose **_retval) = 0;

  /* readonly attribute nsIMsgIdentity defaultIdentity; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultIdentity(nsIMsgIdentity **aDefaultIdentity) = 0;

  /* void TimeStamp (in string label, in boolean resetTime); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TimeStamp(const char * label, bool resetTime) = 0;

  /* readonly attribute boolean logComposePerformance; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLogComposePerformance(bool *aLogComposePerformance) = 0;

  /* [noscript] boolean determineComposeHTML (in nsIMsgIdentity aIdentity, in MSG_ComposeFormat aFormat); */
  NS_IMETHOD DetermineComposeHTML(nsIMsgIdentity *aIdentity, MSG_ComposeFormat aFormat, bool *_retval) = 0;

  /* nsIMsgComposeParams getParamsForMailto (in nsIURI aURI); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetParamsForMailto(nsIURI *aURI, nsIMsgComposeParams **_retval) = 0;

  enum {
    kForwardAsDefault = 0U,
    kForwardAsAttachment = 1U,
    kForwardInline = 2U
  };

  /* void forwardMessage (in AString forwardTo, in nsIMsgDBHdr msgHdr, in nsIMsgWindow msgWindow, in nsIMsgIncomingServer server, in unsigned long aForwardType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ForwardMessage(const nsAString& forwardTo, nsIMsgDBHdr *msgHdr, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server, uint32_t aForwardType) = 0;

  /* void replyWithTemplate (in nsIMsgDBHdr msgHdr, in string templateUri, in nsIMsgWindow msgWindow, in nsIMsgIncomingServer server); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReplyWithTemplate(nsIMsgDBHdr *msgHdr, const char * templateUri, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server) = 0;

  /* void registerComposeDocShell (in nsIDocShell aDocShell, in nsIMsgCompose aMsgCompose); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterComposeDocShell(nsIDocShell *aDocShell, nsIMsgCompose *aMsgCompose) = 0;

  /* void unregisterComposeDocShell (in nsIDocShell aDocShell); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnregisterComposeDocShell(nsIDocShell *aDocShell) = 0;

  /* nsIMsgCompose getMsgComposeForDocShell (in nsIDocShell aDocShell); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgComposeForDocShell(nsIDocShell *aDocShell, nsIMsgCompose **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgComposeService, NS_IMSGCOMPOSESERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGCOMPOSESERVICE \
  NS_IMETHOD OpenComposeWindow(const char * msgComposeWindowURL, nsIMsgDBHdr *msgHdr, const char * originalMsgURI, MSG_ComposeType type, MSG_ComposeFormat format, nsIMsgIdentity *identity, nsIMsgWindow *aMsgWindow) override; \
  NS_IMETHOD OpenComposeWindowWithURI(const char * msgComposeWindowURL, nsIURI *aURI, nsIMsgIdentity *aIdentity) override; \
  NS_IMETHOD OpenComposeWindowWithParams(const char * msgComposeWindowURL, nsIMsgComposeParams *params) override; \
  NS_IMETHOD InitCompose(nsIMsgComposeParams *aParams, mozIDOMWindowProxy *aWindow, nsIDocShell *aDocShell, nsIMsgCompose **_retval) override; \
  NS_IMETHOD GetDefaultIdentity(nsIMsgIdentity **aDefaultIdentity) override; \
  NS_IMETHOD TimeStamp(const char * label, bool resetTime) override; \
  NS_IMETHOD GetLogComposePerformance(bool *aLogComposePerformance) override; \
  NS_IMETHOD DetermineComposeHTML(nsIMsgIdentity *aIdentity, MSG_ComposeFormat aFormat, bool *_retval) override; \
  NS_IMETHOD GetParamsForMailto(nsIURI *aURI, nsIMsgComposeParams **_retval) override; \
  NS_IMETHOD ForwardMessage(const nsAString& forwardTo, nsIMsgDBHdr *msgHdr, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server, uint32_t aForwardType) override; \
  NS_IMETHOD ReplyWithTemplate(nsIMsgDBHdr *msgHdr, const char * templateUri, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server) override; \
  NS_IMETHOD RegisterComposeDocShell(nsIDocShell *aDocShell, nsIMsgCompose *aMsgCompose) override; \
  NS_IMETHOD UnregisterComposeDocShell(nsIDocShell *aDocShell) override; \
  NS_IMETHOD GetMsgComposeForDocShell(nsIDocShell *aDocShell, nsIMsgCompose **_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_NSIMSGCOMPOSESERVICE \
  nsresult OpenComposeWindow(const char * msgComposeWindowURL, nsIMsgDBHdr *msgHdr, const char * originalMsgURI, MSG_ComposeType type, MSG_ComposeFormat format, nsIMsgIdentity *identity, nsIMsgWindow *aMsgWindow); \
  nsresult OpenComposeWindowWithURI(const char * msgComposeWindowURL, nsIURI *aURI, nsIMsgIdentity *aIdentity); \
  nsresult OpenComposeWindowWithParams(const char * msgComposeWindowURL, nsIMsgComposeParams *params); \
  nsresult InitCompose(nsIMsgComposeParams *aParams, mozIDOMWindowProxy *aWindow, nsIDocShell *aDocShell, nsIMsgCompose **_retval); \
  nsresult GetDefaultIdentity(nsIMsgIdentity **aDefaultIdentity); \
  nsresult TimeStamp(const char * label, bool resetTime); \
  nsresult GetLogComposePerformance(bool *aLogComposePerformance); \
  nsresult DetermineComposeHTML(nsIMsgIdentity *aIdentity, MSG_ComposeFormat aFormat, bool *_retval); \
  nsresult GetParamsForMailto(nsIURI *aURI, nsIMsgComposeParams **_retval); \
  nsresult ForwardMessage(const nsAString& forwardTo, nsIMsgDBHdr *msgHdr, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server, uint32_t aForwardType); \
  nsresult ReplyWithTemplate(nsIMsgDBHdr *msgHdr, const char * templateUri, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server); \
  nsresult RegisterComposeDocShell(nsIDocShell *aDocShell, nsIMsgCompose *aMsgCompose); \
  nsresult UnregisterComposeDocShell(nsIDocShell *aDocShell); \
  nsresult GetMsgComposeForDocShell(nsIDocShell *aDocShell, nsIMsgCompose **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPOSESERVICE(_to) \
  NS_IMETHOD OpenComposeWindow(const char * msgComposeWindowURL, nsIMsgDBHdr *msgHdr, const char * originalMsgURI, MSG_ComposeType type, MSG_ComposeFormat format, nsIMsgIdentity *identity, nsIMsgWindow *aMsgWindow) override { return _to OpenComposeWindow(msgComposeWindowURL, msgHdr, originalMsgURI, type, format, identity, aMsgWindow); } \
  NS_IMETHOD OpenComposeWindowWithURI(const char * msgComposeWindowURL, nsIURI *aURI, nsIMsgIdentity *aIdentity) override { return _to OpenComposeWindowWithURI(msgComposeWindowURL, aURI, aIdentity); } \
  NS_IMETHOD OpenComposeWindowWithParams(const char * msgComposeWindowURL, nsIMsgComposeParams *params) override { return _to OpenComposeWindowWithParams(msgComposeWindowURL, params); } \
  NS_IMETHOD InitCompose(nsIMsgComposeParams *aParams, mozIDOMWindowProxy *aWindow, nsIDocShell *aDocShell, nsIMsgCompose **_retval) override { return _to InitCompose(aParams, aWindow, aDocShell, _retval); } \
  NS_IMETHOD GetDefaultIdentity(nsIMsgIdentity **aDefaultIdentity) override { return _to GetDefaultIdentity(aDefaultIdentity); } \
  NS_IMETHOD TimeStamp(const char * label, bool resetTime) override { return _to TimeStamp(label, resetTime); } \
  NS_IMETHOD GetLogComposePerformance(bool *aLogComposePerformance) override { return _to GetLogComposePerformance(aLogComposePerformance); } \
  NS_IMETHOD DetermineComposeHTML(nsIMsgIdentity *aIdentity, MSG_ComposeFormat aFormat, bool *_retval) override { return _to DetermineComposeHTML(aIdentity, aFormat, _retval); } \
  NS_IMETHOD GetParamsForMailto(nsIURI *aURI, nsIMsgComposeParams **_retval) override { return _to GetParamsForMailto(aURI, _retval); } \
  NS_IMETHOD ForwardMessage(const nsAString& forwardTo, nsIMsgDBHdr *msgHdr, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server, uint32_t aForwardType) override { return _to ForwardMessage(forwardTo, msgHdr, msgWindow, server, aForwardType); } \
  NS_IMETHOD ReplyWithTemplate(nsIMsgDBHdr *msgHdr, const char * templateUri, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server) override { return _to ReplyWithTemplate(msgHdr, templateUri, msgWindow, server); } \
  NS_IMETHOD RegisterComposeDocShell(nsIDocShell *aDocShell, nsIMsgCompose *aMsgCompose) override { return _to RegisterComposeDocShell(aDocShell, aMsgCompose); } \
  NS_IMETHOD UnregisterComposeDocShell(nsIDocShell *aDocShell) override { return _to UnregisterComposeDocShell(aDocShell); } \
  NS_IMETHOD GetMsgComposeForDocShell(nsIDocShell *aDocShell, nsIMsgCompose **_retval) override { return _to GetMsgComposeForDocShell(aDocShell, _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_NSIMSGCOMPOSESERVICE(_to) \
  NS_IMETHOD OpenComposeWindow(const char * msgComposeWindowURL, nsIMsgDBHdr *msgHdr, const char * originalMsgURI, MSG_ComposeType type, MSG_ComposeFormat format, nsIMsgIdentity *identity, nsIMsgWindow *aMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenComposeWindow(msgComposeWindowURL, msgHdr, originalMsgURI, type, format, identity, aMsgWindow); } \
  NS_IMETHOD OpenComposeWindowWithURI(const char * msgComposeWindowURL, nsIURI *aURI, nsIMsgIdentity *aIdentity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenComposeWindowWithURI(msgComposeWindowURL, aURI, aIdentity); } \
  NS_IMETHOD OpenComposeWindowWithParams(const char * msgComposeWindowURL, nsIMsgComposeParams *params) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenComposeWindowWithParams(msgComposeWindowURL, params); } \
  NS_IMETHOD InitCompose(nsIMsgComposeParams *aParams, mozIDOMWindowProxy *aWindow, nsIDocShell *aDocShell, nsIMsgCompose **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitCompose(aParams, aWindow, aDocShell, _retval); } \
  NS_IMETHOD GetDefaultIdentity(nsIMsgIdentity **aDefaultIdentity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultIdentity(aDefaultIdentity); } \
  NS_IMETHOD TimeStamp(const char * label, bool resetTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TimeStamp(label, resetTime); } \
  NS_IMETHOD GetLogComposePerformance(bool *aLogComposePerformance) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogComposePerformance(aLogComposePerformance); } \
  NS_IMETHOD DetermineComposeHTML(nsIMsgIdentity *aIdentity, MSG_ComposeFormat aFormat, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DetermineComposeHTML(aIdentity, aFormat, _retval); } \
  NS_IMETHOD GetParamsForMailto(nsIURI *aURI, nsIMsgComposeParams **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParamsForMailto(aURI, _retval); } \
  NS_IMETHOD ForwardMessage(const nsAString& forwardTo, nsIMsgDBHdr *msgHdr, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server, uint32_t aForwardType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForwardMessage(forwardTo, msgHdr, msgWindow, server, aForwardType); } \
  NS_IMETHOD ReplyWithTemplate(nsIMsgDBHdr *msgHdr, const char * templateUri, nsIMsgWindow *msgWindow, nsIMsgIncomingServer *server) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplyWithTemplate(msgHdr, templateUri, msgWindow, server); } \
  NS_IMETHOD RegisterComposeDocShell(nsIDocShell *aDocShell, nsIMsgCompose *aMsgCompose) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterComposeDocShell(aDocShell, aMsgCompose); } \
  NS_IMETHOD UnregisterComposeDocShell(nsIDocShell *aDocShell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterComposeDocShell(aDocShell); } \
  NS_IMETHOD GetMsgComposeForDocShell(nsIDocShell *aDocShell, nsIMsgCompose **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgComposeForDocShell(aDocShell, _retval); } 


#endif /* __gen_nsIMsgComposeService_h__ */