/usr/include/thunderbird/nsIMsgMailSession.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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
/* 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 (); */
NS_IMETHOD Shutdown(void) = 0;
/* void AddFolderListener (in nsIFolderListener aListener, in folderListenerNotifyFlagValue aNotifyFlags); */
NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) = 0;
/* void RemoveFolderListener (in nsIFolderListener aListener); */
NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) = 0;
/* void addUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) = 0;
/* void removeUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) = 0;
/* void alertUser (in AString aMessage, [optional] in nsIMsgMailNewsUrl aUrl); */
NS_IMETHOD AlertUser(const nsAString & aMessage, nsIMsgMailNewsUrl *aUrl) = 0;
/* readonly attribute nsIMsgWindow topmostMsgWindow; */
NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow * *aTopmostMsgWindow) = 0;
/* void AddMsgWindow (in nsIMsgWindow msgWindow); */
NS_IMETHOD AddMsgWindow(nsIMsgWindow *msgWindow) = 0;
/* void RemoveMsgWindow (in nsIMsgWindow msgWindow); */
NS_IMETHOD RemoveMsgWindow(nsIMsgWindow *msgWindow) = 0;
/* boolean IsFolderOpenInWindow (in nsIMsgFolder folder); */
NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) = 0;
/* string ConvertMsgURIToMsgURL (in string aURI, in nsIMsgWindow aMsgWindow); */
NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) = 0;
/* nsIFile getDataFilesDir (in string dirName); */
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 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); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgMailSession : public nsIMsgMailSession
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGMAILSESSION
nsMsgMailSession();
private:
~nsMsgMailSession();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMsgMailSession, nsIMsgMailSession)
nsMsgMailSession::nsMsgMailSession()
{
/* member initializers and constructor code */
}
nsMsgMailSession::~nsMsgMailSession()
{
/* destructor code */
}
/* void Shutdown (); */
NS_IMETHODIMP nsMsgMailSession::Shutdown()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void AddFolderListener (in nsIFolderListener aListener, in folderListenerNotifyFlagValue aNotifyFlags); */
NS_IMETHODIMP nsMsgMailSession::AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void RemoveFolderListener (in nsIFolderListener aListener); */
NS_IMETHODIMP nsMsgMailSession::RemoveFolderListener(nsIFolderListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
NS_IMETHODIMP nsMsgMailSession::AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
NS_IMETHODIMP nsMsgMailSession::RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void alertUser (in AString aMessage, [optional] in nsIMsgMailNewsUrl aUrl); */
NS_IMETHODIMP nsMsgMailSession::AlertUser(const nsAString & aMessage, nsIMsgMailNewsUrl *aUrl)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIMsgWindow topmostMsgWindow; */
NS_IMETHODIMP nsMsgMailSession::GetTopmostMsgWindow(nsIMsgWindow * *aTopmostMsgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void AddMsgWindow (in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMsgMailSession::AddMsgWindow(nsIMsgWindow *msgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void RemoveMsgWindow (in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMsgMailSession::RemoveMsgWindow(nsIMsgWindow *msgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean IsFolderOpenInWindow (in nsIMsgFolder folder); */
NS_IMETHODIMP nsMsgMailSession::IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* string ConvertMsgURIToMsgURL (in string aURI, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsMsgMailSession::ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIFile getDataFilesDir (in string dirName); */
NS_IMETHODIMP nsMsgMailSession::GetDataFilesDir(const char * dirName, nsIFile * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMsgMailSession_h__ */
|