DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/public/nsIMsgMailSession.idl
 */

#ifndef __gen_nsIMsgMailSession_h__
#define __gen_nsIMsgMailSession_h__


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

#ifndef __gen_nsIFolderListener_h__
#include "nsIFolderListener.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIFile; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIMsgUserFeedbackListener; /* forward declaration */

class nsIMsgMailNewsUrl; /* forward declaration */


/* starting interface:    nsIMsgMailSession */
#define NS_IMSGMAILSESSION_IID_STR "577ead34-553e-4cd6-b484-76ff6662082d"

#define NS_IMSGMAILSESSION_IID \
  {0x577ead34, 0x553e, 0x4cd6, \
    { 0xb4, 0x84, 0x76, 0xff, 0x66, 0x62, 0x08, 0x2d }}

class NS_NO_VTABLE nsIMsgMailSession : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGMAILSESSION_IID)

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

  /* void AddFolderListener (in nsIFolderListener aListener, in folderListenerNotifyFlagValue aNotifyFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) = 0;

  /* void RemoveFolderListener (in nsIFolderListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) = 0;

  /* void addUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) = 0;

  /* void removeUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) = 0;

  /* void alertUser (in AString aMessage, [optional] in nsIMsgMailNewsUrl aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AlertUser(const nsAString& aMessage, nsIMsgMailNewsUrl *aUrl) = 0;

  /* readonly attribute nsIMsgWindow topmostMsgWindow; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow **aTopmostMsgWindow) = 0;

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

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

  /* boolean IsFolderOpenInWindow (in nsIMsgFolder folder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) = 0;

  /* string ConvertMsgURIToMsgURL (in string aURI, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) = 0;

  /* nsIFile getDataFilesDir (in string dirName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDataFilesDir(const char * dirName, nsIFile **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgMailSession, NS_IMSGMAILSESSION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGMAILSESSION \
  NS_IMETHOD Shutdown(void) override; \
  NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) override; \
  NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) override; \
  NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override; \
  NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override; \
  NS_IMETHOD AlertUser(const nsAString& aMessage, nsIMsgMailNewsUrl *aUrl) override; \
  NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow **aTopmostMsgWindow) override; \
  NS_IMETHOD AddMsgWindow(nsIMsgWindow *msgWindow) override; \
  NS_IMETHOD RemoveMsgWindow(nsIMsgWindow *msgWindow) override; \
  NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) override; \
  NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) override; \
  NS_IMETHOD GetDataFilesDir(const char * dirName, nsIFile **_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMSGMAILSESSION \
  nsresult Shutdown(void); \
  nsresult AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags); \
  nsresult RemoveFolderListener(nsIFolderListener *aListener); \
  nsresult AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener); \
  nsresult RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener); \
  nsresult AlertUser(const nsAString& aMessage, nsIMsgMailNewsUrl *aUrl); \
  nsresult GetTopmostMsgWindow(nsIMsgWindow **aTopmostMsgWindow); \
  nsresult AddMsgWindow(nsIMsgWindow *msgWindow); \
  nsresult RemoveMsgWindow(nsIMsgWindow *msgWindow); \
  nsresult IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval); \
  nsresult ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval); \
  nsresult GetDataFilesDir(const char * dirName, nsIFile **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGMAILSESSION(_to) \
  NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \
  NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) override { return _to AddFolderListener(aListener, aNotifyFlags); } \
  NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) override { return _to RemoveFolderListener(aListener); } \
  NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override { return _to AddUserFeedbackListener(aListener); } \
  NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override { return _to RemoveUserFeedbackListener(aListener); } \
  NS_IMETHOD AlertUser(const nsAString& aMessage, nsIMsgMailNewsUrl *aUrl) override { return _to AlertUser(aMessage, aUrl); } \
  NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow **aTopmostMsgWindow) override { return _to GetTopmostMsgWindow(aTopmostMsgWindow); } \
  NS_IMETHOD AddMsgWindow(nsIMsgWindow *msgWindow) override { return _to AddMsgWindow(msgWindow); } \
  NS_IMETHOD RemoveMsgWindow(nsIMsgWindow *msgWindow) override { return _to RemoveMsgWindow(msgWindow); } \
  NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) override { return _to IsFolderOpenInWindow(folder, _retval); } \
  NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) override { return _to ConvertMsgURIToMsgURL(aURI, aMsgWindow, _retval); } \
  NS_IMETHOD GetDataFilesDir(const char * dirName, nsIFile **_retval) override { return _to GetDataFilesDir(dirName, _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_NSIMSGMAILSESSION(_to) \
  NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
  NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFolderListener(aListener, aNotifyFlags); } \
  NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveFolderListener(aListener); } \
  NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddUserFeedbackListener(aListener); } \
  NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveUserFeedbackListener(aListener); } \
  NS_IMETHOD AlertUser(const nsAString& aMessage, nsIMsgMailNewsUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AlertUser(aMessage, aUrl); } \
  NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow **aTopmostMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopmostMsgWindow(aTopmostMsgWindow); } \
  NS_IMETHOD AddMsgWindow(nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMsgWindow(msgWindow); } \
  NS_IMETHOD RemoveMsgWindow(nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveMsgWindow(msgWindow); } \
  NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsFolderOpenInWindow(folder, _retval); } \
  NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertMsgURIToMsgURL(aURI, aMsgWindow, _retval); } \
  NS_IMETHOD GetDataFilesDir(const char * dirName, nsIFile **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataFilesDir(dirName, _retval); } 


#endif /* __gen_nsIMsgMailSession_h__ */