/usr/include/thunderbird-11.0.1/nsIImapService.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
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 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/imap/public/nsIImapService.idl
*/
#ifndef __gen_nsIImapService_h__
#define __gen_nsIImapService_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIImapUrl_h__
#include "nsIImapUrl.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIImapProtocol; /* forward declaration */
class nsIImapMessageSink; /* forward declaration */
class nsIUrlListener; /* forward declaration */
class nsIURI; /* forward declaration */
class nsIEventTarget; /* forward declaration */
class nsIFile; /* forward declaration */
class nsIMsgFolder; /* forward declaration */
class nsIMsgWindow; /* forward declaration */
class nsIImapIncomingServer; /* forward declaration */
class nsICacheSession; /* forward declaration */
/* starting interface: nsIImapService */
#define NS_IIMAPSERVICE_IID_STR "7ff02a19-f402-436a-a6cc-c4c454f0b86f"
#define NS_IIMAPSERVICE_IID \
{0x7ff02a19, 0xf402, 0x436a, \
{ 0xa6, 0xcc, 0xc4, 0xc4, 0x54, 0xf0, 0xb8, 0x6f }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIImapService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAPSERVICE_IID)
/* void selectFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
NS_SCRIPTABLE NS_IMETHOD SelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) = 0;
/* nsIURI liteSelectFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_SCRIPTABLE NS_IMETHOD LiteSelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) = 0;
/* void addImapFetchToUrl (in nsIURI aURL, in nsIMsgFolder aImapMailFolder, in ACString aMessageIdentifierList, in ACString aAdditionalHeader); */
NS_SCRIPTABLE NS_IMETHOD AddImapFetchToUrl(nsIURI *aURL, nsIMsgFolder *aImapMailFolder, const nsACString & aMessageIdentifierList, const nsACString & aAdditionalHeader) = 0;
/* void fetchMessage (in nsIImapUrl aUrl, in nsImapState aImapAction, in nsIMsgFolder aImapMailFolder, in nsIImapMessageSink aImapMessageSink, in nsIMsgWindow aMsgWindow, in nsISupports aConsumer, in ACString aMessageIdentifierList, in boolean convertDataToText, in ACString additionalHeader, out nsIURI aOutURL); */
NS_SCRIPTABLE NS_IMETHOD FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString & aMessageIdentifierList, bool convertDataToText, const nsACString & additionalHeader, nsIURI * *aOutURL NS_OUTPARAM) = 0;
/* void noop (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
NS_SCRIPTABLE NS_IMETHOD Noop(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) = 0;
/* void getHeaders (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in boolean aMessageIdsAreUID); */
NS_SCRIPTABLE NS_IMETHOD GetHeaders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID) = 0;
/* nsIURI getBodyStart (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in ACString aMessageIdentifierList, in long numBytes); */
NS_SCRIPTABLE NS_IMETHOD GetBodyStart(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & aMessageIdentifierList, PRInt32 numBytes, nsIURI * *_retval NS_OUTPARAM) = 0;
/* void expunge (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
NS_SCRIPTABLE NS_IMETHOD Expunge(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) = 0;
/* nsIURI updateFolderStatus (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener); */
NS_SCRIPTABLE NS_IMETHOD UpdateFolderStatus(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI verifyLogon (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_SCRIPTABLE NS_IMETHOD VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) = 0;
/* void biff (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in unsigned long aUidHighWater); */
NS_SCRIPTABLE NS_IMETHOD Biff(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, PRUint32 aUidHighWater) = 0;
/* void deleteMessages (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in boolean aMessageIdsAreUID); */
NS_SCRIPTABLE NS_IMETHOD DeleteMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID) = 0;
/* void deleteAllMessages (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
NS_SCRIPTABLE NS_IMETHOD DeleteAllMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) = 0;
/* void addMessageFlags (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
NS_SCRIPTABLE NS_IMETHOD AddMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) = 0;
/* void subtractMessageFlags (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
NS_SCRIPTABLE NS_IMETHOD SubtractMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) = 0;
/* void setMessageFlags (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
NS_SCRIPTABLE NS_IMETHOD SetMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) = 0;
/* void discoverAllFolders (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
NS_SCRIPTABLE NS_IMETHOD DiscoverAllFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) = 0;
/* void discoverAllAndSubscribedFolders (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
NS_SCRIPTABLE NS_IMETHOD DiscoverAllAndSubscribedFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) = 0;
/* void discoverChildren (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in ACString folderPath, out nsIURI aURL); */
NS_SCRIPTABLE NS_IMETHOD DiscoverChildren(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & folderPath, nsIURI * *aURL NS_OUTPARAM) = 0;
/* void onlineMessageCopy (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aSrcFolder, in ACString aMessageIds, in nsIMsgFolder aDstFolder, in boolean aIdsAreUids, in boolean aIsMove, in nsIUrlListener aUrlListener, out nsIURI aURL, in nsISupports aCopyState, in nsIMsgWindow aWindow); */
NS_SCRIPTABLE NS_IMETHOD OnlineMessageCopy(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsACString & aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aWindow) = 0;
/* void appendMessageFromFile (in nsIEventTarget aClientEventTarget, in nsIFile aFile, in nsIMsgFolder aDstFolder, in ACString aMessageId, in boolean idsAreUids, in boolean aInSelectedState, in nsIUrlListener aUrlListener, out nsIURI aURL, in nsISupports aCopyState, in nsIMsgWindow aMsgWindow); */
NS_SCRIPTABLE NS_IMETHOD AppendMessageFromFile(nsIEventTarget *aClientEventTarget, nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString & aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow) = 0;
/* void downloadMessagesForOffline (in ACString aMessageIds, in nsIMsgFolder aSrcFolder, in nsIUrlListener aListener, in nsIMsgWindow aMsgWindow); */
NS_SCRIPTABLE NS_IMETHOD DownloadMessagesForOffline(const nsACString & aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow) = 0;
/* nsIURI moveFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aSrcFolder, in nsIMsgFolder aDstFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow msgWindow); */
NS_SCRIPTABLE NS_IMETHOD MoveFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI renameLeaf (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aSrcFolder, in AString aLeafName, in nsIUrlListener aUrlListener, in nsIMsgWindow msgWindow); */
NS_SCRIPTABLE NS_IMETHOD RenameLeaf(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI deleteFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_SCRIPTABLE NS_IMETHOD DeleteFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI createFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aParentFolder, in AString aLeafName, in nsIUrlListener aUrlListener); */
NS_SCRIPTABLE NS_IMETHOD CreateFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI listFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIUrlListener aUrlListener); */
NS_SCRIPTABLE NS_IMETHOD ListFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI subscribeFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in AString mailboxName, in nsIUrlListener aUrlListener); */
NS_SCRIPTABLE NS_IMETHOD SubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI unsubscribeFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in AString mailboxName, in nsIUrlListener aUrlListener); */
NS_SCRIPTABLE NS_IMETHOD UnsubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI ensureFolderExists (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aParentFolder, in AString aLeafName, in nsIUrlListener aUrlListener); */
NS_SCRIPTABLE NS_IMETHOD EnsureFolderExists(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI getFolderAdminUrl (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener); */
NS_SCRIPTABLE NS_IMETHOD GetFolderAdminUrl(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI issueCommandOnMsgs (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString aCommand, in ACString aMessageIdentifierList); */
NS_SCRIPTABLE NS_IMETHOD IssueCommandOnMsgs(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aCommand, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI fetchCustomMsgAttribute (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString aAttribute, in ACString aMessageIdentifierList); */
NS_SCRIPTABLE NS_IMETHOD FetchCustomMsgAttribute(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aAttribute, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) = 0;
/* nsIURI storeCustomKeywords (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString flagsToAdd, in ACString flagsToSubtract, in ACString aMessageIdentifierList); */
NS_SCRIPTABLE NS_IMETHOD StoreCustomKeywords(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & flagsToAdd, const nsACString & flagsToSubtract, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) = 0;
/* void getListOfFoldersOnServer (in nsIImapIncomingServer aServer, in nsIMsgWindow aMsgWindow); */
NS_SCRIPTABLE NS_IMETHOD GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow) = 0;
/* void getListOfFoldersWithPath (in nsIImapIncomingServer aServer, in nsIMsgWindow aMsgWindow, in ACString folderPath); */
NS_SCRIPTABLE NS_IMETHOD GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString & folderPath) = 0;
/* nsISupports playbackAllOfflineOperations (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
NS_SCRIPTABLE NS_IMETHOD PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports * *_retval NS_OUTPARAM) = 0;
/* void downloadAllOffineImapFolders (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
NS_SCRIPTABLE NS_IMETHOD DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) = 0;
/* readonly attribute nsICacheSession cacheSession; */
NS_SCRIPTABLE NS_IMETHOD GetCacheSession(nsICacheSession * *aCacheSession) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIImapService, NS_IIMAPSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPSERVICE \
NS_SCRIPTABLE NS_IMETHOD SelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD LiteSelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD AddImapFetchToUrl(nsIURI *aURL, nsIMsgFolder *aImapMailFolder, const nsACString & aMessageIdentifierList, const nsACString & aAdditionalHeader); \
NS_SCRIPTABLE NS_IMETHOD FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString & aMessageIdentifierList, bool convertDataToText, const nsACString & additionalHeader, nsIURI * *aOutURL NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Noop(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetHeaders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID); \
NS_SCRIPTABLE NS_IMETHOD GetBodyStart(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & aMessageIdentifierList, PRInt32 numBytes, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Expunge(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD UpdateFolderStatus(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Biff(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, PRUint32 aUidHighWater); \
NS_SCRIPTABLE NS_IMETHOD DeleteMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID); \
NS_SCRIPTABLE NS_IMETHOD DeleteAllMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD AddMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID); \
NS_SCRIPTABLE NS_IMETHOD SubtractMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID); \
NS_SCRIPTABLE NS_IMETHOD SetMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID); \
NS_SCRIPTABLE NS_IMETHOD DiscoverAllFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD DiscoverAllAndSubscribedFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD DiscoverChildren(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & folderPath, nsIURI * *aURL NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD OnlineMessageCopy(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsACString & aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aWindow); \
NS_SCRIPTABLE NS_IMETHOD AppendMessageFromFile(nsIEventTarget *aClientEventTarget, nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString & aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow); \
NS_SCRIPTABLE NS_IMETHOD DownloadMessagesForOffline(const nsACString & aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow); \
NS_SCRIPTABLE NS_IMETHOD MoveFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RenameLeaf(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD DeleteFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD CreateFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ListFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD UnsubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD EnsureFolderExists(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetFolderAdminUrl(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD IssueCommandOnMsgs(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aCommand, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD FetchCustomMsgAttribute(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aAttribute, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD StoreCustomKeywords(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & flagsToAdd, const nsACString & flagsToSubtract, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow); \
NS_SCRIPTABLE NS_IMETHOD GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString & folderPath); \
NS_SCRIPTABLE NS_IMETHOD PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener); \
NS_SCRIPTABLE NS_IMETHOD GetCacheSession(nsICacheSession * *aCacheSession);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPSERVICE(_to) \
NS_SCRIPTABLE NS_IMETHOD SelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) { return _to SelectFolder(aClientEventTarget, aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
NS_SCRIPTABLE NS_IMETHOD LiteSelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) { return _to LiteSelectFolder(aClientEventTarget, aImapMailFolder, aUrlListener, aMsgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD AddImapFetchToUrl(nsIURI *aURL, nsIMsgFolder *aImapMailFolder, const nsACString & aMessageIdentifierList, const nsACString & aAdditionalHeader) { return _to AddImapFetchToUrl(aURL, aImapMailFolder, aMessageIdentifierList, aAdditionalHeader); } \
NS_SCRIPTABLE NS_IMETHOD FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString & aMessageIdentifierList, bool convertDataToText, const nsACString & additionalHeader, nsIURI * *aOutURL NS_OUTPARAM) { return _to FetchMessage(aUrl, aImapAction, aImapMailFolder, aImapMessageSink, aMsgWindow, aConsumer, aMessageIdentifierList, convertDataToText, additionalHeader, aOutURL); } \
NS_SCRIPTABLE NS_IMETHOD Noop(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) { return _to Noop(aClientEventTarget, aImapMailFolder, aUrlListener, aURL); } \
NS_SCRIPTABLE NS_IMETHOD GetHeaders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID) { return _to GetHeaders(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD GetBodyStart(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & aMessageIdentifierList, PRInt32 numBytes, nsIURI * *_retval NS_OUTPARAM) { return _to GetBodyStart(aClientEventTarget, aImapMailFolder, aUrlListener, aMessageIdentifierList, numBytes, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Expunge(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) { return _to Expunge(aClientEventTarget, aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
NS_SCRIPTABLE NS_IMETHOD UpdateFolderStatus(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return _to UpdateFolderStatus(aClientEventTarget, aImapMailFolder, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) { return _to VerifyLogon(aImapMailFolder, aUrlListener, aMsgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Biff(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, PRUint32 aUidHighWater) { return _to Biff(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aUidHighWater); } \
NS_SCRIPTABLE NS_IMETHOD DeleteMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID) { return _to DeleteMessages(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD DeleteAllMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) { return _to DeleteAllMessages(aClientEventTarget, aImapMailFolder, aUrlListener, aURL); } \
NS_SCRIPTABLE NS_IMETHOD AddMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) { return _to AddMessageFlags(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD SubtractMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) { return _to SubtractMessageFlags(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD SetMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) { return _to SetMessageFlags(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD DiscoverAllFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) { return _to DiscoverAllFolders(aClientEventTarget, aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
NS_SCRIPTABLE NS_IMETHOD DiscoverAllAndSubscribedFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) { return _to DiscoverAllAndSubscribedFolders(aClientEventTarget, aImapMailFolder, aUrlListener, aURL); } \
NS_SCRIPTABLE NS_IMETHOD DiscoverChildren(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & folderPath, nsIURI * *aURL NS_OUTPARAM) { return _to DiscoverChildren(aClientEventTarget, aImapMailFolder, aUrlListener, folderPath, aURL); } \
NS_SCRIPTABLE NS_IMETHOD OnlineMessageCopy(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsACString & aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aWindow) { return _to OnlineMessageCopy(aClientEventTarget, aSrcFolder, aMessageIds, aDstFolder, aIdsAreUids, aIsMove, aUrlListener, aURL, aCopyState, aWindow); } \
NS_SCRIPTABLE NS_IMETHOD AppendMessageFromFile(nsIEventTarget *aClientEventTarget, nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString & aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow) { return _to AppendMessageFromFile(aClientEventTarget, aFile, aDstFolder, aMessageId, idsAreUids, aInSelectedState, aUrlListener, aURL, aCopyState, aMsgWindow); } \
NS_SCRIPTABLE NS_IMETHOD DownloadMessagesForOffline(const nsACString & aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow) { return _to DownloadMessagesForOffline(aMessageIds, aSrcFolder, aListener, aMsgWindow); } \
NS_SCRIPTABLE NS_IMETHOD MoveFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM) { return _to MoveFolder(aClientEventTarget, aSrcFolder, aDstFolder, aUrlListener, msgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RenameLeaf(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM) { return _to RenameLeaf(aClientEventTarget, aSrcFolder, aLeafName, aUrlListener, msgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD DeleteFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) { return _to DeleteFolder(aClientEventTarget, aFolder, aUrlListener, aMsgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return _to CreateFolder(aClientEventTarget, aParentFolder, aLeafName, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ListFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return _to ListFolder(aClientEventTarget, aMailFolder, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return _to SubscribeFolder(aClientEventTarget, aMailFolder, mailboxName, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD UnsubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return _to UnsubscribeFolder(aClientEventTarget, aMailFolder, mailboxName, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD EnsureFolderExists(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return _to EnsureFolderExists(aClientEventTarget, aParentFolder, aLeafName, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFolderAdminUrl(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return _to GetFolderAdminUrl(aClientEventTarget, aMailFolder, aMsgWindow, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IssueCommandOnMsgs(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aCommand, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) { return _to IssueCommandOnMsgs(aClientEventTarget, aMailFolder, aMsgWindow, aCommand, aMessageIdentifierList, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FetchCustomMsgAttribute(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aAttribute, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) { return _to FetchCustomMsgAttribute(aClientEventTarget, aMailFolder, aMsgWindow, aAttribute, aMessageIdentifierList, _retval); } \
NS_SCRIPTABLE NS_IMETHOD StoreCustomKeywords(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & flagsToAdd, const nsACString & flagsToSubtract, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) { return _to StoreCustomKeywords(aClientEventTarget, aMailFolder, aMsgWindow, flagsToAdd, flagsToSubtract, aMessageIdentifierList, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow) { return _to GetListOfFoldersOnServer(aServer, aMsgWindow); } \
NS_SCRIPTABLE NS_IMETHOD GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString & folderPath) { return _to GetListOfFoldersWithPath(aServer, aMsgWindow, folderPath); } \
NS_SCRIPTABLE NS_IMETHOD PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports * *_retval NS_OUTPARAM) { return _to PlaybackAllOfflineOperations(aMsgWindow, aListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) { return _to DownloadAllOffineImapFolders(aMsgWindow, aListener); } \
NS_SCRIPTABLE NS_IMETHOD GetCacheSession(nsICacheSession * *aCacheSession) { return _to GetCacheSession(aCacheSession); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMAPSERVICE(_to) \
NS_SCRIPTABLE NS_IMETHOD SelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectFolder(aClientEventTarget, aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
NS_SCRIPTABLE NS_IMETHOD LiteSelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->LiteSelectFolder(aClientEventTarget, aImapMailFolder, aUrlListener, aMsgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD AddImapFetchToUrl(nsIURI *aURL, nsIMsgFolder *aImapMailFolder, const nsACString & aMessageIdentifierList, const nsACString & aAdditionalHeader) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddImapFetchToUrl(aURL, aImapMailFolder, aMessageIdentifierList, aAdditionalHeader); } \
NS_SCRIPTABLE NS_IMETHOD FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString & aMessageIdentifierList, bool convertDataToText, const nsACString & additionalHeader, nsIURI * *aOutURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FetchMessage(aUrl, aImapAction, aImapMailFolder, aImapMessageSink, aMsgWindow, aConsumer, aMessageIdentifierList, convertDataToText, additionalHeader, aOutURL); } \
NS_SCRIPTABLE NS_IMETHOD Noop(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Noop(aClientEventTarget, aImapMailFolder, aUrlListener, aURL); } \
NS_SCRIPTABLE NS_IMETHOD GetHeaders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaders(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD GetBodyStart(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & aMessageIdentifierList, PRInt32 numBytes, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBodyStart(aClientEventTarget, aImapMailFolder, aUrlListener, aMessageIdentifierList, numBytes, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Expunge(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Expunge(aClientEventTarget, aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
NS_SCRIPTABLE NS_IMETHOD UpdateFolderStatus(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateFolderStatus(aClientEventTarget, aImapMailFolder, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyLogon(aImapMailFolder, aUrlListener, aMsgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Biff(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, PRUint32 aUidHighWater) { return !_to ? NS_ERROR_NULL_POINTER : _to->Biff(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aUidHighWater); } \
NS_SCRIPTABLE NS_IMETHOD DeleteMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMessages(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD DeleteAllMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteAllMessages(aClientEventTarget, aImapMailFolder, aUrlListener, aURL); } \
NS_SCRIPTABLE NS_IMETHOD AddMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMessageFlags(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD SubtractMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractMessageFlags(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD SetMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageFlags(aClientEventTarget, aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
NS_SCRIPTABLE NS_IMETHOD DiscoverAllFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DiscoverAllFolders(aClientEventTarget, aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
NS_SCRIPTABLE NS_IMETHOD DiscoverAllAndSubscribedFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DiscoverAllAndSubscribedFolders(aClientEventTarget, aImapMailFolder, aUrlListener, aURL); } \
NS_SCRIPTABLE NS_IMETHOD DiscoverChildren(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & folderPath, nsIURI * *aURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DiscoverChildren(aClientEventTarget, aImapMailFolder, aUrlListener, folderPath, aURL); } \
NS_SCRIPTABLE NS_IMETHOD OnlineMessageCopy(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsACString & aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnlineMessageCopy(aClientEventTarget, aSrcFolder, aMessageIds, aDstFolder, aIdsAreUids, aIsMove, aUrlListener, aURL, aCopyState, aWindow); } \
NS_SCRIPTABLE NS_IMETHOD AppendMessageFromFile(nsIEventTarget *aClientEventTarget, nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString & aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendMessageFromFile(aClientEventTarget, aFile, aDstFolder, aMessageId, idsAreUids, aInSelectedState, aUrlListener, aURL, aCopyState, aMsgWindow); } \
NS_SCRIPTABLE NS_IMETHOD DownloadMessagesForOffline(const nsACString & aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadMessagesForOffline(aMessageIds, aSrcFolder, aListener, aMsgWindow); } \
NS_SCRIPTABLE NS_IMETHOD MoveFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveFolder(aClientEventTarget, aSrcFolder, aDstFolder, aUrlListener, msgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RenameLeaf(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RenameLeaf(aClientEventTarget, aSrcFolder, aLeafName, aUrlListener, msgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD DeleteFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteFolder(aClientEventTarget, aFolder, aUrlListener, aMsgWindow, _retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFolder(aClientEventTarget, aParentFolder, aLeafName, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ListFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListFolder(aClientEventTarget, aMailFolder, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeFolder(aClientEventTarget, aMailFolder, mailboxName, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD UnsubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnsubscribeFolder(aClientEventTarget, aMailFolder, mailboxName, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD EnsureFolderExists(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureFolderExists(aClientEventTarget, aParentFolder, aLeafName, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFolderAdminUrl(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderAdminUrl(aClientEventTarget, aMailFolder, aMsgWindow, aUrlListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IssueCommandOnMsgs(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aCommand, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IssueCommandOnMsgs(aClientEventTarget, aMailFolder, aMsgWindow, aCommand, aMessageIdentifierList, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FetchCustomMsgAttribute(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aAttribute, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FetchCustomMsgAttribute(aClientEventTarget, aMailFolder, aMsgWindow, aAttribute, aMessageIdentifierList, _retval); } \
NS_SCRIPTABLE NS_IMETHOD StoreCustomKeywords(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & flagsToAdd, const nsACString & flagsToSubtract, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->StoreCustomKeywords(aClientEventTarget, aMailFolder, aMsgWindow, flagsToAdd, flagsToSubtract, aMessageIdentifierList, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListOfFoldersOnServer(aServer, aMsgWindow); } \
NS_SCRIPTABLE NS_IMETHOD GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString & folderPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListOfFoldersWithPath(aServer, aMsgWindow, folderPath); } \
NS_SCRIPTABLE NS_IMETHOD PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->PlaybackAllOfflineOperations(aMsgWindow, aListener, _retval); } \
NS_SCRIPTABLE NS_IMETHOD DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadAllOffineImapFolders(aMsgWindow, aListener); } \
NS_SCRIPTABLE NS_IMETHOD GetCacheSession(nsICacheSession * *aCacheSession) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheSession(aCacheSession); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsImapService : public nsIImapService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIIMAPSERVICE
nsImapService();
private:
~nsImapService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsImapService, nsIImapService)
nsImapService::nsImapService()
{
/* member initializers and constructor code */
}
nsImapService::~nsImapService()
{
/* destructor code */
}
/* void selectFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
NS_IMETHODIMP nsImapService::SelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI liteSelectFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsImapService::LiteSelectFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addImapFetchToUrl (in nsIURI aURL, in nsIMsgFolder aImapMailFolder, in ACString aMessageIdentifierList, in ACString aAdditionalHeader); */
NS_IMETHODIMP nsImapService::AddImapFetchToUrl(nsIURI *aURL, nsIMsgFolder *aImapMailFolder, const nsACString & aMessageIdentifierList, const nsACString & aAdditionalHeader)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void fetchMessage (in nsIImapUrl aUrl, in nsImapState aImapAction, in nsIMsgFolder aImapMailFolder, in nsIImapMessageSink aImapMessageSink, in nsIMsgWindow aMsgWindow, in nsISupports aConsumer, in ACString aMessageIdentifierList, in boolean convertDataToText, in ACString additionalHeader, out nsIURI aOutURL); */
NS_IMETHODIMP nsImapService::FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString & aMessageIdentifierList, bool convertDataToText, const nsACString & additionalHeader, nsIURI * *aOutURL NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void noop (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
NS_IMETHODIMP nsImapService::Noop(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getHeaders (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in boolean aMessageIdsAreUID); */
NS_IMETHODIMP nsImapService::GetHeaders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI getBodyStart (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in ACString aMessageIdentifierList, in long numBytes); */
NS_IMETHODIMP nsImapService::GetBodyStart(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & aMessageIdentifierList, PRInt32 numBytes, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void expunge (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
NS_IMETHODIMP nsImapService::Expunge(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI updateFolderStatus (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener); */
NS_IMETHODIMP nsImapService::UpdateFolderStatus(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI verifyLogon (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsImapService::VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void biff (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in unsigned long aUidHighWater); */
NS_IMETHODIMP nsImapService::Biff(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, PRUint32 aUidHighWater)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteMessages (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in boolean aMessageIdsAreUID); */
NS_IMETHODIMP nsImapService::DeleteMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, bool aMessageIdsAreUID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteAllMessages (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
NS_IMETHODIMP nsImapService::DeleteAllMessages(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addMessageFlags (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
NS_IMETHODIMP nsImapService::AddMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void subtractMessageFlags (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
NS_IMETHODIMP nsImapService::SubtractMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setMessageFlags (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
NS_IMETHODIMP nsImapService::SetMessageFlags(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, const nsACString & aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void discoverAllFolders (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
NS_IMETHODIMP nsImapService::DiscoverAllFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *aURL NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void discoverAllAndSubscribedFolders (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
NS_IMETHODIMP nsImapService::DiscoverAllAndSubscribedFolders(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void discoverChildren (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in ACString folderPath, out nsIURI aURL); */
NS_IMETHODIMP nsImapService::DiscoverChildren(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString & folderPath, nsIURI * *aURL NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onlineMessageCopy (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aSrcFolder, in ACString aMessageIds, in nsIMsgFolder aDstFolder, in boolean aIdsAreUids, in boolean aIsMove, in nsIUrlListener aUrlListener, out nsIURI aURL, in nsISupports aCopyState, in nsIMsgWindow aWindow); */
NS_IMETHODIMP nsImapService::OnlineMessageCopy(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsACString & aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void appendMessageFromFile (in nsIEventTarget aClientEventTarget, in nsIFile aFile, in nsIMsgFolder aDstFolder, in ACString aMessageId, in boolean idsAreUids, in boolean aInSelectedState, in nsIUrlListener aUrlListener, out nsIURI aURL, in nsISupports aCopyState, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsImapService::AppendMessageFromFile(nsIEventTarget *aClientEventTarget, nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString & aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI * *aURL NS_OUTPARAM, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void downloadMessagesForOffline (in ACString aMessageIds, in nsIMsgFolder aSrcFolder, in nsIUrlListener aListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsImapService::DownloadMessagesForOffline(const nsACString & aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI moveFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aSrcFolder, in nsIMsgFolder aDstFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsImapService::MoveFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI renameLeaf (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aSrcFolder, in AString aLeafName, in nsIUrlListener aUrlListener, in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsImapService::RenameLeaf(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aSrcFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI deleteFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsImapService::DeleteFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI createFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aParentFolder, in AString aLeafName, in nsIUrlListener aUrlListener); */
NS_IMETHODIMP nsImapService::CreateFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI listFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIUrlListener aUrlListener); */
NS_IMETHODIMP nsImapService::ListFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI subscribeFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in AString mailboxName, in nsIUrlListener aUrlListener); */
NS_IMETHODIMP nsImapService::SubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI unsubscribeFolder (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in AString mailboxName, in nsIUrlListener aUrlListener); */
NS_IMETHODIMP nsImapService::UnsubscribeFolder(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, const nsAString & mailboxName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI ensureFolderExists (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aParentFolder, in AString aLeafName, in nsIUrlListener aUrlListener); */
NS_IMETHODIMP nsImapService::EnsureFolderExists(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aParentFolder, const nsAString & aLeafName, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI getFolderAdminUrl (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener); */
NS_IMETHODIMP nsImapService::GetFolderAdminUrl(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI issueCommandOnMsgs (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString aCommand, in ACString aMessageIdentifierList); */
NS_IMETHODIMP nsImapService::IssueCommandOnMsgs(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aCommand, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI fetchCustomMsgAttribute (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString aAttribute, in ACString aMessageIdentifierList); */
NS_IMETHODIMP nsImapService::FetchCustomMsgAttribute(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & aAttribute, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI storeCustomKeywords (in nsIEventTarget aClientEventTarget, in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString flagsToAdd, in ACString flagsToSubtract, in ACString aMessageIdentifierList); */
NS_IMETHODIMP nsImapService::StoreCustomKeywords(nsIEventTarget *aClientEventTarget, nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString & flagsToAdd, const nsACString & flagsToSubtract, const nsACString & aMessageIdentifierList, nsIURI * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getListOfFoldersOnServer (in nsIImapIncomingServer aServer, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsImapService::GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getListOfFoldersWithPath (in nsIImapIncomingServer aServer, in nsIMsgWindow aMsgWindow, in ACString folderPath); */
NS_IMETHODIMP nsImapService::GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString & folderPath)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupports playbackAllOfflineOperations (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
NS_IMETHODIMP nsImapService::PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void downloadAllOffineImapFolders (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
NS_IMETHODIMP nsImapService::DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsICacheSession cacheSession; */
NS_IMETHODIMP nsImapService::GetCacheSession(nsICacheSession * *aCacheSession)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIImapService_h__ */
|