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 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/public/nsIMessenger.idl
 */

#ifndef __gen_nsIMessenger_h__
#define __gen_nsIMessenger_h__


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

#ifndef __gen_nsrootidl_h__
#include "nsrootidl.h"
#endif

#ifndef __gen_nsIMsgWindow_h__
#include "nsIMsgWindow.h"
#endif

#ifndef __gen_nsIMsgIdentity_h__
#include "nsIMsgIdentity.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 nsIMsgDBHdr; /* forward declaration */

class nsIDOMWindow; /* forward declaration */

class mozIDOMWindowProxy; /* forward declaration */

class nsITransactionManager; /* forward declaration */

class nsIMsgMessageService; /* forward declaration */

class nsIFile; /* forward declaration */

class nsIUrlListener; /* forward declaration */


/* starting interface:    nsIMessenger */
#define NS_IMESSENGER_IID_STR "01b967c8-b289-4e32-ad46-6eb7c89d4106"

#define NS_IMESSENGER_IID \
  {0x01b967c8, 0xb289, 0x4e32, \
    { 0xad, 0x46, 0x6e, 0xb7, 0xc8, 0x9d, 0x41, 0x06 }}

class NS_NO_VTABLE nsIMessenger : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMESSENGER_IID)

  enum {
    eUnknown = 0,
    eDeleteMsg = 1,
    eMoveMsg = 2,
    eCopyMsg = 3,
    eMarkAllMsg = 4
  };

  /* void setDisplayCharset (in ACString aCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDisplayCharset(const nsACString& aCharset) = 0;

  /* readonly attribute nsITransactionManager transactionManager; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTransactionManager(nsITransactionManager **aTransactionManager) = 0;

  /* void setWindow (in mozIDOMWindowProxy ptr, in nsIMsgWindow msgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetWindow(mozIDOMWindowProxy *ptr, nsIMsgWindow *msgWindow) = 0;

  /* void addMsgUrlToNavigateHistory (in ACString aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddMsgUrlToNavigateHistory(const nsACString& aURL) = 0;

  /* void openURL (in ACString aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenURL(const nsACString& aURL) = 0;

  /* void loadURL (in mozIDOMWindowProxy ptr, in ACString aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadURL(mozIDOMWindowProxy *ptr, const nsACString& aURL) = 0;

  /* void launchExternalURL (in ACString aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LaunchExternalURL(const nsACString& aURL) = 0;

  /* boolean canUndo (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanUndo(bool *_retval) = 0;

  /* boolean canRedo (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanRedo(bool *_retval) = 0;

  /* unsigned long getUndoTransactionType (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUndoTransactionType(uint32_t *_retval) = 0;

  /* unsigned long getRedoTransactionType (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRedoTransactionType(uint32_t *_retval) = 0;

  /* void undo (in nsIMsgWindow msgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Undo(nsIMsgWindow *msgWindow) = 0;

  /* void redo (in nsIMsgWindow msgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Redo(nsIMsgWindow *msgWindow) = 0;

  /* void setDocumentCharset (in ACString characterSet); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDocumentCharset(const nsACString& characterSet) = 0;

  /* void saveAs (in ACString aURI, in boolean aAsFile, in nsIMsgIdentity aIdentity, in AString aMsgFilename, [optional] in boolean aBypassFilePicker); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveAs(const nsACString& aURI, bool aAsFile, nsIMsgIdentity *aIdentity, const nsAString& aMsgFilename, bool aBypassFilePicker) = 0;

  /* void saveMessages (in unsigned long count, [array, size_is (count)] in wstring filenameArray, [array, size_is (count)] in string messageUriArray); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveMessages(uint32_t count, const char16_t * *filenameArray, const char * *messageUriArray) = 0;

  /* void openAttachment (in ACString contentTpe, in ACString url, in ACString displayName, in ACString messageUri, in boolean isExternalAttachment); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment) = 0;

  /* void saveAttachment (in ACString contentTpe, in ACString url, in ACString displayName, in ACString messageUri, in boolean isExternalAttachment); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment) = 0;

  /* void saveAllAttachments (in unsigned long count, [array, size_is (count)] in string contentTypeArray, [array, size_is (count)] in string urlArray, [array, size_is (count)] in string displayNameArray, [array, size_is (count)] in string messageUriArray); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray) = 0;

  /* void saveAttachmentToFile (in nsIFile aFile, in ACString aUrl, in ACString aMessageUri, in ACString aContentType, in nsIUrlListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveAttachmentToFile(nsIFile *aFile, const nsACString& aUrl, const nsACString& aMessageUri, const nsACString& aContentType, nsIUrlListener *aListener) = 0;

  /* void detachAttachmentsWOPrompts (in nsIFile aDestFolder, in unsigned long aCount, [array, size_is (aCount)] in string aContentTypeArray, [array, size_is (aCount)] in string aUrlArray, [array, size_is (aCount)] in string aDisplayNameArray, [array, size_is (aCount)] in string aMessageUriArray, in nsIUrlListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DetachAttachmentsWOPrompts(nsIFile *aDestFolder, uint32_t aCount, const char * *aContentTypeArray, const char * *aUrlArray, const char * *aDisplayNameArray, const char * *aMessageUriArray, nsIUrlListener *aListener) = 0;

  /* void detachAttachment (in string contentTpe, in string url, in string displayName, in string messageUri, in boolean saveFirst, [optional] in boolean withoutWarning); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DetachAttachment(const char * contentTpe, const char * url, const char * displayName, const char * messageUri, bool saveFirst, bool withoutWarning) = 0;

  /* void detachAllAttachments (in unsigned long count, [array, size_is (count)] in string contentTypeArray, [array, size_is (count)] in string urlArray, [array, size_is (count)] in string displayNameArray, [array, size_is (count)] in string messageUriArray, in boolean saveFirst, [optional] in boolean withoutWarning); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DetachAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray, bool saveFirst, bool withoutWarning) = 0;

  /* nsIFile saveAttachmentToFolder (in ACString contentType, in ACString url, in ACString displayName, in ACString messageUri, in nsIFile aDestFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveAttachmentToFolder(const nsACString& contentType, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, nsIFile *aDestFolder, nsIFile **_retval) = 0;

  /* readonly attribute ACString lastDisplayedMessageUri; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastDisplayedMessageUri(nsACString& aLastDisplayedMessageUri) = 0;

  /* nsIMsgMessageService messageServiceFromURI (in ACString aUri); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MessageServiceFromURI(const nsACString& aUri, nsIMsgMessageService **_retval) = 0;

  /* nsIMsgDBHdr msgHdrFromURI (in ACString aUri); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MsgHdrFromURI(const nsACString& aUri, nsIMsgDBHdr **_retval) = 0;

  /* ACString getMsgUriAtNavigatePos (in long aPos); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgUriAtNavigatePos(int32_t aPos, nsACString& _retval) = 0;

  /* ACString getFolderUriAtNavigatePos (in long aPos); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderUriAtNavigatePos(int32_t aPos, nsACString& _retval) = 0;

  /* attribute long navigatePos; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNavigatePos(int32_t *aNavigatePos) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetNavigatePos(int32_t aNavigatePos) = 0;

  /* void getNavigateHistory (out unsigned long aCurPos, out unsigned long aCount, [array, size_is (aCount)] out string aHistory); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNavigateHistory(uint32_t *aCurPos, uint32_t *aCount, char * **aHistory) = 0;

  /* AString formatFileSize (in unsigned long long aPos, [optional] in boolean aUseKB); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatFileSize(uint64_t aPos, bool aUseKB, nsAString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMessenger, NS_IMESSENGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMESSENGER \
  NS_IMETHOD SetDisplayCharset(const nsACString& aCharset) override; \
  NS_IMETHOD GetTransactionManager(nsITransactionManager **aTransactionManager) override; \
  NS_IMETHOD SetWindow(mozIDOMWindowProxy *ptr, nsIMsgWindow *msgWindow) override; \
  NS_IMETHOD AddMsgUrlToNavigateHistory(const nsACString& aURL) override; \
  NS_IMETHOD OpenURL(const nsACString& aURL) override; \
  NS_IMETHOD LoadURL(mozIDOMWindowProxy *ptr, const nsACString& aURL) override; \
  NS_IMETHOD LaunchExternalURL(const nsACString& aURL) override; \
  NS_IMETHOD CanUndo(bool *_retval) override; \
  NS_IMETHOD CanRedo(bool *_retval) override; \
  NS_IMETHOD GetUndoTransactionType(uint32_t *_retval) override; \
  NS_IMETHOD GetRedoTransactionType(uint32_t *_retval) override; \
  NS_IMETHOD Undo(nsIMsgWindow *msgWindow) override; \
  NS_IMETHOD Redo(nsIMsgWindow *msgWindow) override; \
  NS_IMETHOD SetDocumentCharset(const nsACString& characterSet) override; \
  NS_IMETHOD SaveAs(const nsACString& aURI, bool aAsFile, nsIMsgIdentity *aIdentity, const nsAString& aMsgFilename, bool aBypassFilePicker) override; \
  NS_IMETHOD SaveMessages(uint32_t count, const char16_t * *filenameArray, const char * *messageUriArray) override; \
  NS_IMETHOD OpenAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment) override; \
  NS_IMETHOD SaveAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment) override; \
  NS_IMETHOD SaveAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray) override; \
  NS_IMETHOD SaveAttachmentToFile(nsIFile *aFile, const nsACString& aUrl, const nsACString& aMessageUri, const nsACString& aContentType, nsIUrlListener *aListener) override; \
  NS_IMETHOD DetachAttachmentsWOPrompts(nsIFile *aDestFolder, uint32_t aCount, const char * *aContentTypeArray, const char * *aUrlArray, const char * *aDisplayNameArray, const char * *aMessageUriArray, nsIUrlListener *aListener) override; \
  NS_IMETHOD DetachAttachment(const char * contentTpe, const char * url, const char * displayName, const char * messageUri, bool saveFirst, bool withoutWarning) override; \
  NS_IMETHOD DetachAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray, bool saveFirst, bool withoutWarning) override; \
  NS_IMETHOD SaveAttachmentToFolder(const nsACString& contentType, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, nsIFile *aDestFolder, nsIFile **_retval) override; \
  NS_IMETHOD GetLastDisplayedMessageUri(nsACString& aLastDisplayedMessageUri) override; \
  NS_IMETHOD MessageServiceFromURI(const nsACString& aUri, nsIMsgMessageService **_retval) override; \
  NS_IMETHOD MsgHdrFromURI(const nsACString& aUri, nsIMsgDBHdr **_retval) override; \
  NS_IMETHOD GetMsgUriAtNavigatePos(int32_t aPos, nsACString& _retval) override; \
  NS_IMETHOD GetFolderUriAtNavigatePos(int32_t aPos, nsACString& _retval) override; \
  NS_IMETHOD GetNavigatePos(int32_t *aNavigatePos) override; \
  NS_IMETHOD SetNavigatePos(int32_t aNavigatePos) override; \
  NS_IMETHOD GetNavigateHistory(uint32_t *aCurPos, uint32_t *aCount, char * **aHistory) override; \
  NS_IMETHOD FormatFileSize(uint64_t aPos, bool aUseKB, nsAString& _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_NSIMESSENGER \
  nsresult SetDisplayCharset(const nsACString& aCharset); \
  nsresult GetTransactionManager(nsITransactionManager **aTransactionManager); \
  nsresult SetWindow(mozIDOMWindowProxy *ptr, nsIMsgWindow *msgWindow); \
  nsresult AddMsgUrlToNavigateHistory(const nsACString& aURL); \
  nsresult OpenURL(const nsACString& aURL); \
  nsresult LoadURL(mozIDOMWindowProxy *ptr, const nsACString& aURL); \
  nsresult LaunchExternalURL(const nsACString& aURL); \
  nsresult CanUndo(bool *_retval); \
  nsresult CanRedo(bool *_retval); \
  nsresult GetUndoTransactionType(uint32_t *_retval); \
  nsresult GetRedoTransactionType(uint32_t *_retval); \
  nsresult Undo(nsIMsgWindow *msgWindow); \
  nsresult Redo(nsIMsgWindow *msgWindow); \
  nsresult SetDocumentCharset(const nsACString& characterSet); \
  nsresult SaveAs(const nsACString& aURI, bool aAsFile, nsIMsgIdentity *aIdentity, const nsAString& aMsgFilename, bool aBypassFilePicker); \
  nsresult SaveMessages(uint32_t count, const char16_t * *filenameArray, const char * *messageUriArray); \
  nsresult OpenAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment); \
  nsresult SaveAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment); \
  nsresult SaveAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray); \
  nsresult SaveAttachmentToFile(nsIFile *aFile, const nsACString& aUrl, const nsACString& aMessageUri, const nsACString& aContentType, nsIUrlListener *aListener); \
  nsresult DetachAttachmentsWOPrompts(nsIFile *aDestFolder, uint32_t aCount, const char * *aContentTypeArray, const char * *aUrlArray, const char * *aDisplayNameArray, const char * *aMessageUriArray, nsIUrlListener *aListener); \
  nsresult DetachAttachment(const char * contentTpe, const char * url, const char * displayName, const char * messageUri, bool saveFirst, bool withoutWarning); \
  nsresult DetachAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray, bool saveFirst, bool withoutWarning); \
  nsresult SaveAttachmentToFolder(const nsACString& contentType, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, nsIFile *aDestFolder, nsIFile **_retval); \
  nsresult GetLastDisplayedMessageUri(nsACString& aLastDisplayedMessageUri); \
  nsresult MessageServiceFromURI(const nsACString& aUri, nsIMsgMessageService **_retval); \
  nsresult MsgHdrFromURI(const nsACString& aUri, nsIMsgDBHdr **_retval); \
  nsresult GetMsgUriAtNavigatePos(int32_t aPos, nsACString& _retval); \
  nsresult GetFolderUriAtNavigatePos(int32_t aPos, nsACString& _retval); \
  nsresult GetNavigatePos(int32_t *aNavigatePos); \
  nsresult SetNavigatePos(int32_t aNavigatePos); \
  nsresult GetNavigateHistory(uint32_t *aCurPos, uint32_t *aCount, char * **aHistory); \
  nsresult FormatFileSize(uint64_t aPos, bool aUseKB, nsAString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMESSENGER(_to) \
  NS_IMETHOD SetDisplayCharset(const nsACString& aCharset) override { return _to SetDisplayCharset(aCharset); } \
  NS_IMETHOD GetTransactionManager(nsITransactionManager **aTransactionManager) override { return _to GetTransactionManager(aTransactionManager); } \
  NS_IMETHOD SetWindow(mozIDOMWindowProxy *ptr, nsIMsgWindow *msgWindow) override { return _to SetWindow(ptr, msgWindow); } \
  NS_IMETHOD AddMsgUrlToNavigateHistory(const nsACString& aURL) override { return _to AddMsgUrlToNavigateHistory(aURL); } \
  NS_IMETHOD OpenURL(const nsACString& aURL) override { return _to OpenURL(aURL); } \
  NS_IMETHOD LoadURL(mozIDOMWindowProxy *ptr, const nsACString& aURL) override { return _to LoadURL(ptr, aURL); } \
  NS_IMETHOD LaunchExternalURL(const nsACString& aURL) override { return _to LaunchExternalURL(aURL); } \
  NS_IMETHOD CanUndo(bool *_retval) override { return _to CanUndo(_retval); } \
  NS_IMETHOD CanRedo(bool *_retval) override { return _to CanRedo(_retval); } \
  NS_IMETHOD GetUndoTransactionType(uint32_t *_retval) override { return _to GetUndoTransactionType(_retval); } \
  NS_IMETHOD GetRedoTransactionType(uint32_t *_retval) override { return _to GetRedoTransactionType(_retval); } \
  NS_IMETHOD Undo(nsIMsgWindow *msgWindow) override { return _to Undo(msgWindow); } \
  NS_IMETHOD Redo(nsIMsgWindow *msgWindow) override { return _to Redo(msgWindow); } \
  NS_IMETHOD SetDocumentCharset(const nsACString& characterSet) override { return _to SetDocumentCharset(characterSet); } \
  NS_IMETHOD SaveAs(const nsACString& aURI, bool aAsFile, nsIMsgIdentity *aIdentity, const nsAString& aMsgFilename, bool aBypassFilePicker) override { return _to SaveAs(aURI, aAsFile, aIdentity, aMsgFilename, aBypassFilePicker); } \
  NS_IMETHOD SaveMessages(uint32_t count, const char16_t * *filenameArray, const char * *messageUriArray) override { return _to SaveMessages(count, filenameArray, messageUriArray); } \
  NS_IMETHOD OpenAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment) override { return _to OpenAttachment(contentTpe, url, displayName, messageUri, isExternalAttachment); } \
  NS_IMETHOD SaveAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment) override { return _to SaveAttachment(contentTpe, url, displayName, messageUri, isExternalAttachment); } \
  NS_IMETHOD SaveAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray) override { return _to SaveAllAttachments(count, contentTypeArray, urlArray, displayNameArray, messageUriArray); } \
  NS_IMETHOD SaveAttachmentToFile(nsIFile *aFile, const nsACString& aUrl, const nsACString& aMessageUri, const nsACString& aContentType, nsIUrlListener *aListener) override { return _to SaveAttachmentToFile(aFile, aUrl, aMessageUri, aContentType, aListener); } \
  NS_IMETHOD DetachAttachmentsWOPrompts(nsIFile *aDestFolder, uint32_t aCount, const char * *aContentTypeArray, const char * *aUrlArray, const char * *aDisplayNameArray, const char * *aMessageUriArray, nsIUrlListener *aListener) override { return _to DetachAttachmentsWOPrompts(aDestFolder, aCount, aContentTypeArray, aUrlArray, aDisplayNameArray, aMessageUriArray, aListener); } \
  NS_IMETHOD DetachAttachment(const char * contentTpe, const char * url, const char * displayName, const char * messageUri, bool saveFirst, bool withoutWarning) override { return _to DetachAttachment(contentTpe, url, displayName, messageUri, saveFirst, withoutWarning); } \
  NS_IMETHOD DetachAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray, bool saveFirst, bool withoutWarning) override { return _to DetachAllAttachments(count, contentTypeArray, urlArray, displayNameArray, messageUriArray, saveFirst, withoutWarning); } \
  NS_IMETHOD SaveAttachmentToFolder(const nsACString& contentType, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, nsIFile *aDestFolder, nsIFile **_retval) override { return _to SaveAttachmentToFolder(contentType, url, displayName, messageUri, aDestFolder, _retval); } \
  NS_IMETHOD GetLastDisplayedMessageUri(nsACString& aLastDisplayedMessageUri) override { return _to GetLastDisplayedMessageUri(aLastDisplayedMessageUri); } \
  NS_IMETHOD MessageServiceFromURI(const nsACString& aUri, nsIMsgMessageService **_retval) override { return _to MessageServiceFromURI(aUri, _retval); } \
  NS_IMETHOD MsgHdrFromURI(const nsACString& aUri, nsIMsgDBHdr **_retval) override { return _to MsgHdrFromURI(aUri, _retval); } \
  NS_IMETHOD GetMsgUriAtNavigatePos(int32_t aPos, nsACString& _retval) override { return _to GetMsgUriAtNavigatePos(aPos, _retval); } \
  NS_IMETHOD GetFolderUriAtNavigatePos(int32_t aPos, nsACString& _retval) override { return _to GetFolderUriAtNavigatePos(aPos, _retval); } \
  NS_IMETHOD GetNavigatePos(int32_t *aNavigatePos) override { return _to GetNavigatePos(aNavigatePos); } \
  NS_IMETHOD SetNavigatePos(int32_t aNavigatePos) override { return _to SetNavigatePos(aNavigatePos); } \
  NS_IMETHOD GetNavigateHistory(uint32_t *aCurPos, uint32_t *aCount, char * **aHistory) override { return _to GetNavigateHistory(aCurPos, aCount, aHistory); } \
  NS_IMETHOD FormatFileSize(uint64_t aPos, bool aUseKB, nsAString& _retval) override { return _to FormatFileSize(aPos, aUseKB, _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_NSIMESSENGER(_to) \
  NS_IMETHOD SetDisplayCharset(const nsACString& aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayCharset(aCharset); } \
  NS_IMETHOD GetTransactionManager(nsITransactionManager **aTransactionManager) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransactionManager(aTransactionManager); } \
  NS_IMETHOD SetWindow(mozIDOMWindowProxy *ptr, nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindow(ptr, msgWindow); } \
  NS_IMETHOD AddMsgUrlToNavigateHistory(const nsACString& aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMsgUrlToNavigateHistory(aURL); } \
  NS_IMETHOD OpenURL(const nsACString& aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenURL(aURL); } \
  NS_IMETHOD LoadURL(mozIDOMWindowProxy *ptr, const nsACString& aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURL(ptr, aURL); } \
  NS_IMETHOD LaunchExternalURL(const nsACString& aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchExternalURL(aURL); } \
  NS_IMETHOD CanUndo(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanUndo(_retval); } \
  NS_IMETHOD CanRedo(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanRedo(_retval); } \
  NS_IMETHOD GetUndoTransactionType(uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUndoTransactionType(_retval); } \
  NS_IMETHOD GetRedoTransactionType(uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedoTransactionType(_retval); } \
  NS_IMETHOD Undo(nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Undo(msgWindow); } \
  NS_IMETHOD Redo(nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Redo(msgWindow); } \
  NS_IMETHOD SetDocumentCharset(const nsACString& characterSet) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocumentCharset(characterSet); } \
  NS_IMETHOD SaveAs(const nsACString& aURI, bool aAsFile, nsIMsgIdentity *aIdentity, const nsAString& aMsgFilename, bool aBypassFilePicker) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveAs(aURI, aAsFile, aIdentity, aMsgFilename, aBypassFilePicker); } \
  NS_IMETHOD SaveMessages(uint32_t count, const char16_t * *filenameArray, const char * *messageUriArray) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveMessages(count, filenameArray, messageUriArray); } \
  NS_IMETHOD OpenAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenAttachment(contentTpe, url, displayName, messageUri, isExternalAttachment); } \
  NS_IMETHOD SaveAttachment(const nsACString& contentTpe, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, bool isExternalAttachment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveAttachment(contentTpe, url, displayName, messageUri, isExternalAttachment); } \
  NS_IMETHOD SaveAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveAllAttachments(count, contentTypeArray, urlArray, displayNameArray, messageUriArray); } \
  NS_IMETHOD SaveAttachmentToFile(nsIFile *aFile, const nsACString& aUrl, const nsACString& aMessageUri, const nsACString& aContentType, nsIUrlListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveAttachmentToFile(aFile, aUrl, aMessageUri, aContentType, aListener); } \
  NS_IMETHOD DetachAttachmentsWOPrompts(nsIFile *aDestFolder, uint32_t aCount, const char * *aContentTypeArray, const char * *aUrlArray, const char * *aDisplayNameArray, const char * *aMessageUriArray, nsIUrlListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachAttachmentsWOPrompts(aDestFolder, aCount, aContentTypeArray, aUrlArray, aDisplayNameArray, aMessageUriArray, aListener); } \
  NS_IMETHOD DetachAttachment(const char * contentTpe, const char * url, const char * displayName, const char * messageUri, bool saveFirst, bool withoutWarning) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachAttachment(contentTpe, url, displayName, messageUri, saveFirst, withoutWarning); } \
  NS_IMETHOD DetachAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray, bool saveFirst, bool withoutWarning) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachAllAttachments(count, contentTypeArray, urlArray, displayNameArray, messageUriArray, saveFirst, withoutWarning); } \
  NS_IMETHOD SaveAttachmentToFolder(const nsACString& contentType, const nsACString& url, const nsACString& displayName, const nsACString& messageUri, nsIFile *aDestFolder, nsIFile **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveAttachmentToFolder(contentType, url, displayName, messageUri, aDestFolder, _retval); } \
  NS_IMETHOD GetLastDisplayedMessageUri(nsACString& aLastDisplayedMessageUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastDisplayedMessageUri(aLastDisplayedMessageUri); } \
  NS_IMETHOD MessageServiceFromURI(const nsACString& aUri, nsIMsgMessageService **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MessageServiceFromURI(aUri, _retval); } \
  NS_IMETHOD MsgHdrFromURI(const nsACString& aUri, nsIMsgDBHdr **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MsgHdrFromURI(aUri, _retval); } \
  NS_IMETHOD GetMsgUriAtNavigatePos(int32_t aPos, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgUriAtNavigatePos(aPos, _retval); } \
  NS_IMETHOD GetFolderUriAtNavigatePos(int32_t aPos, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderUriAtNavigatePos(aPos, _retval); } \
  NS_IMETHOD GetNavigatePos(int32_t *aNavigatePos) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNavigatePos(aNavigatePos); } \
  NS_IMETHOD SetNavigatePos(int32_t aNavigatePos) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNavigatePos(aNavigatePos); } \
  NS_IMETHOD GetNavigateHistory(uint32_t *aCurPos, uint32_t *aCount, char * **aHistory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNavigateHistory(aCurPos, aCount, aHistory); } \
  NS_IMETHOD FormatFileSize(uint64_t aPos, bool aUseKB, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatFileSize(aPos, aUseKB, _retval); } 


#endif /* __gen_nsIMessenger_h__ */