/usr/include/thunderbird/nsIMessenger.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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
/* 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 nsITransactionManager; /* forward declaration */
class nsIMsgMessageService; /* forward declaration */
class nsIFile; /* forward declaration */
class nsIUrlListener; /* forward declaration */
/* starting interface: nsIMessenger */
#define NS_IMESSENGER_IID_STR "4e36968b-b476-4f3e-b170-c19fe3d48d0b"
#define NS_IMESSENGER_IID \
{0x4e36968b, 0xb476, 0x4f3e, \
{ 0xb1, 0x70, 0xc1, 0x9f, 0xe3, 0xd4, 0x8d, 0x0b }}
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); */
NS_IMETHOD SetDisplayCharset(const nsACString & aCharset) = 0;
/* readonly attribute nsITransactionManager transactionManager; */
NS_IMETHOD GetTransactionManager(nsITransactionManager * *aTransactionManager) = 0;
/* void setWindow (in nsIDOMWindow ptr, in nsIMsgWindow msgWindow); */
NS_IMETHOD SetWindow(nsIDOMWindow *ptr, nsIMsgWindow *msgWindow) = 0;
/* void addMsgUrlToNavigateHistory (in ACString aURL); */
NS_IMETHOD AddMsgUrlToNavigateHistory(const nsACString & aURL) = 0;
/* void openURL (in ACString aURL); */
NS_IMETHOD OpenURL(const nsACString & aURL) = 0;
/* void loadURL (in nsIDOMWindow ptr, in ACString aURL); */
NS_IMETHOD LoadURL(nsIDOMWindow *ptr, const nsACString & aURL) = 0;
/* void launchExternalURL (in ACString aURL); */
NS_IMETHOD LaunchExternalURL(const nsACString & aURL) = 0;
/* boolean canUndo (); */
NS_IMETHOD CanUndo(bool *_retval) = 0;
/* boolean canRedo (); */
NS_IMETHOD CanRedo(bool *_retval) = 0;
/* unsigned long getUndoTransactionType (); */
NS_IMETHOD GetUndoTransactionType(uint32_t *_retval) = 0;
/* unsigned long getRedoTransactionType (); */
NS_IMETHOD GetRedoTransactionType(uint32_t *_retval) = 0;
/* void undo (in nsIMsgWindow msgWindow); */
NS_IMETHOD Undo(nsIMsgWindow *msgWindow) = 0;
/* void redo (in nsIMsgWindow msgWindow); */
NS_IMETHOD Redo(nsIMsgWindow *msgWindow) = 0;
/* void setDocumentCharset (in ACString characterSet); */
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); */
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); */
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); */
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); */
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); */
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); */
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); */
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); */
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); */
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); */
NS_IMETHOD SaveAttachmentToFolder(const nsACString & contentType, const nsACString & url, const nsACString & displayName, const nsACString & messageUri, nsIFile *aDestFolder, nsIFile * *_retval) = 0;
/* readonly attribute ACString lastDisplayedMessageUri; */
NS_IMETHOD GetLastDisplayedMessageUri(nsACString & aLastDisplayedMessageUri) = 0;
/* nsIMsgMessageService messageServiceFromURI (in ACString aUri); */
NS_IMETHOD MessageServiceFromURI(const nsACString & aUri, nsIMsgMessageService * *_retval) = 0;
/* nsIMsgDBHdr msgHdrFromURI (in ACString aUri); */
NS_IMETHOD MsgHdrFromURI(const nsACString & aUri, nsIMsgDBHdr * *_retval) = 0;
/* ACString getMsgUriAtNavigatePos (in long aPos); */
NS_IMETHOD GetMsgUriAtNavigatePos(int32_t aPos, nsACString & _retval) = 0;
/* ACString getFolderUriAtNavigatePos (in long aPos); */
NS_IMETHOD GetFolderUriAtNavigatePos(int32_t aPos, nsACString & _retval) = 0;
/* attribute long navigatePos; */
NS_IMETHOD GetNavigatePos(int32_t *aNavigatePos) = 0;
NS_IMETHOD SetNavigatePos(int32_t aNavigatePos) = 0;
/* void getNavigateHistory (out unsigned long aCurPos, out unsigned long aCount, [array, size_is (aCount)] out string aHistory); */
NS_IMETHOD GetNavigateHistory(uint32_t *aCurPos, uint32_t *aCount, char * **aHistory) = 0;
/* AString formatFileSize (in unsigned long long aPos, [optional] in boolean aUseKB); */
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(nsIDOMWindow *ptr, nsIMsgWindow *msgWindow) override; \
NS_IMETHOD AddMsgUrlToNavigateHistory(const nsACString & aURL) override; \
NS_IMETHOD OpenURL(const nsACString & aURL) override; \
NS_IMETHOD LoadURL(nsIDOMWindow *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 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(nsIDOMWindow *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(nsIDOMWindow *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(nsIDOMWindow *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(nsIDOMWindow *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); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMessenger : public nsIMessenger
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMESSENGER
nsMessenger();
private:
~nsMessenger();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMessenger, nsIMessenger)
nsMessenger::nsMessenger()
{
/* member initializers and constructor code */
}
nsMessenger::~nsMessenger()
{
/* destructor code */
}
/* void setDisplayCharset (in ACString aCharset); */
NS_IMETHODIMP nsMessenger::SetDisplayCharset(const nsACString & aCharset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsITransactionManager transactionManager; */
NS_IMETHODIMP nsMessenger::GetTransactionManager(nsITransactionManager * *aTransactionManager)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setWindow (in nsIDOMWindow ptr, in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMessenger::SetWindow(nsIDOMWindow *ptr, nsIMsgWindow *msgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addMsgUrlToNavigateHistory (in ACString aURL); */
NS_IMETHODIMP nsMessenger::AddMsgUrlToNavigateHistory(const nsACString & aURL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void openURL (in ACString aURL); */
NS_IMETHODIMP nsMessenger::OpenURL(const nsACString & aURL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void loadURL (in nsIDOMWindow ptr, in ACString aURL); */
NS_IMETHODIMP nsMessenger::LoadURL(nsIDOMWindow *ptr, const nsACString & aURL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void launchExternalURL (in ACString aURL); */
NS_IMETHODIMP nsMessenger::LaunchExternalURL(const nsACString & aURL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean canUndo (); */
NS_IMETHODIMP nsMessenger::CanUndo(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean canRedo (); */
NS_IMETHODIMP nsMessenger::CanRedo(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getUndoTransactionType (); */
NS_IMETHODIMP nsMessenger::GetUndoTransactionType(uint32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getRedoTransactionType (); */
NS_IMETHODIMP nsMessenger::GetRedoTransactionType(uint32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void undo (in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMessenger::Undo(nsIMsgWindow *msgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void redo (in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMessenger::Redo(nsIMsgWindow *msgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setDocumentCharset (in ACString characterSet); */
NS_IMETHODIMP nsMessenger::SetDocumentCharset(const nsACString & characterSet)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void saveAs (in ACString aURI, in boolean aAsFile, in nsIMsgIdentity aIdentity, in AString aMsgFilename, [optional] in boolean aBypassFilePicker); */
NS_IMETHODIMP nsMessenger::SaveAs(const nsACString & aURI, bool aAsFile, nsIMsgIdentity *aIdentity, const nsAString & aMsgFilename, bool aBypassFilePicker)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void saveMessages (in unsigned long count, [array, size_is (count)] in wstring filenameArray, [array, size_is (count)] in string messageUriArray); */
NS_IMETHODIMP nsMessenger::SaveMessages(uint32_t count, const char16_t * *filenameArray, const char * *messageUriArray)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void openAttachment (in ACString contentTpe, in ACString url, in ACString displayName, in ACString messageUri, in boolean isExternalAttachment); */
NS_IMETHODIMP nsMessenger::OpenAttachment(const nsACString & contentTpe, const nsACString & url, const nsACString & displayName, const nsACString & messageUri, bool isExternalAttachment)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void saveAttachment (in ACString contentTpe, in ACString url, in ACString displayName, in ACString messageUri, in boolean isExternalAttachment); */
NS_IMETHODIMP nsMessenger::SaveAttachment(const nsACString & contentTpe, const nsACString & url, const nsACString & displayName, const nsACString & messageUri, bool isExternalAttachment)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* 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); */
NS_IMETHODIMP nsMessenger::SaveAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void saveAttachmentToFile (in nsIFile aFile, in ACString aUrl, in ACString aMessageUri, in ACString aContentType, in nsIUrlListener aListener); */
NS_IMETHODIMP nsMessenger::SaveAttachmentToFile(nsIFile *aFile, const nsACString & aUrl, const nsACString & aMessageUri, const nsACString & aContentType, nsIUrlListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* 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); */
NS_IMETHODIMP nsMessenger::DetachAttachmentsWOPrompts(nsIFile *aDestFolder, uint32_t aCount, const char * *aContentTypeArray, const char * *aUrlArray, const char * *aDisplayNameArray, const char * *aMessageUriArray, nsIUrlListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void detachAttachment (in string contentTpe, in string url, in string displayName, in string messageUri, in boolean saveFirst, [optional] in boolean withoutWarning); */
NS_IMETHODIMP nsMessenger::DetachAttachment(const char * contentTpe, const char * url, const char * displayName, const char * messageUri, bool saveFirst, bool withoutWarning)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* 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); */
NS_IMETHODIMP nsMessenger::DetachAllAttachments(uint32_t count, const char * *contentTypeArray, const char * *urlArray, const char * *displayNameArray, const char * *messageUriArray, bool saveFirst, bool withoutWarning)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIFile saveAttachmentToFolder (in ACString contentType, in ACString url, in ACString displayName, in ACString messageUri, in nsIFile aDestFolder); */
NS_IMETHODIMP nsMessenger::SaveAttachmentToFolder(const nsACString & contentType, const nsACString & url, const nsACString & displayName, const nsACString & messageUri, nsIFile *aDestFolder, nsIFile * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute ACString lastDisplayedMessageUri; */
NS_IMETHODIMP nsMessenger::GetLastDisplayedMessageUri(nsACString & aLastDisplayedMessageUri)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgMessageService messageServiceFromURI (in ACString aUri); */
NS_IMETHODIMP nsMessenger::MessageServiceFromURI(const nsACString & aUri, nsIMsgMessageService * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr msgHdrFromURI (in ACString aUri); */
NS_IMETHODIMP nsMessenger::MsgHdrFromURI(const nsACString & aUri, nsIMsgDBHdr * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString getMsgUriAtNavigatePos (in long aPos); */
NS_IMETHODIMP nsMessenger::GetMsgUriAtNavigatePos(int32_t aPos, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString getFolderUriAtNavigatePos (in long aPos); */
NS_IMETHODIMP nsMessenger::GetFolderUriAtNavigatePos(int32_t aPos, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long navigatePos; */
NS_IMETHODIMP nsMessenger::GetNavigatePos(int32_t *aNavigatePos)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMessenger::SetNavigatePos(int32_t aNavigatePos)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getNavigateHistory (out unsigned long aCurPos, out unsigned long aCount, [array, size_is (aCount)] out string aHistory); */
NS_IMETHODIMP nsMessenger::GetNavigateHistory(uint32_t *aCurPos, uint32_t *aCount, char * **aHistory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString formatFileSize (in unsigned long long aPos, [optional] in boolean aUseKB); */
NS_IMETHODIMP nsMessenger::FormatFileSize(uint64_t aPos, bool aUseKB, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMessenger_h__ */
|