/usr/include/thunderbird/nsISmtpServer.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISmtpServer.idl
*/
#ifndef __gen_nsISmtpServer_h__
#define __gen_nsISmtpServer_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_MailNewsTypes2_h__
#include "MailNewsTypes2.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIAuthPrompt; /* forward declaration */
class nsIUrlListener; /* forward declaration */
class nsIURI; /* forward declaration */
class nsIMsgWindow; /* forward declaration */
/* starting interface: nsISmtpServer */
#define NS_ISMTPSERVER_IID_STR "a53dce6c-cd81-495c-83bc-45a65df1f08e"
#define NS_ISMTPSERVER_IID \
{0xa53dce6c, 0xcd81, 0x495c, \
{ 0x83, 0xbc, 0x45, 0xa6, 0x5d, 0xf1, 0xf0, 0x8e }}
class NS_NO_VTABLE nsISmtpServer : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISMTPSERVER_IID)
/* attribute string key; */
NS_IMETHOD GetKey(char * *aKey) = 0;
NS_IMETHOD SetKey(const char * aKey) = 0;
/* attribute AUTF8String description; */
NS_IMETHOD GetDescription(nsACString & aDescription) = 0;
NS_IMETHOD SetDescription(const nsACString & aDescription) = 0;
/* attribute ACString hostname; */
NS_IMETHOD GetHostname(nsACString & aHostname) = 0;
NS_IMETHOD SetHostname(const nsACString & aHostname) = 0;
/* attribute int32_t port; */
NS_IMETHOD GetPort(int32_t *aPort) = 0;
NS_IMETHOD SetPort(int32_t aPort) = 0;
/* attribute ACString username; */
NS_IMETHOD GetUsername(nsACString & aUsername) = 0;
NS_IMETHOD SetUsername(const nsACString & aUsername) = 0;
/* attribute ACString password; */
NS_IMETHOD GetPassword(nsACString & aPassword) = 0;
NS_IMETHOD SetPassword(const nsACString & aPassword) = 0;
/* readonly attribute string displayname; */
NS_IMETHOD GetDisplayname(char * *aDisplayname) = 0;
/* attribute nsMsgAuthMethodValue authMethod; */
NS_IMETHOD GetAuthMethod(nsMsgAuthMethodValue *aAuthMethod) = 0;
NS_IMETHOD SetAuthMethod(nsMsgAuthMethodValue aAuthMethod) = 0;
/* attribute nsMsgSocketTypeValue socketType; */
NS_IMETHOD GetSocketType(nsMsgSocketTypeValue *aSocketType) = 0;
NS_IMETHOD SetSocketType(nsMsgSocketTypeValue aSocketType) = 0;
/* readonly attribute string helloArgument; */
NS_IMETHOD GetHelloArgument(char * *aHelloArgument) = 0;
/* readonly attribute ACString serverURI; */
NS_IMETHOD GetServerURI(nsACString & aServerURI) = 0;
/* ACString getPasswordWithUI (in wstring promptString, in wstring promptTitle, in nsIAuthPrompt netPrompt); */
NS_IMETHOD GetPasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & _retval) = 0;
/* void getUsernamePasswordWithUI (in wstring promptString, in wstring promptTitle, in nsIAuthPrompt netPrompt, out ACString userid, out ACString password); */
NS_IMETHOD GetUsernamePasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & userid, nsACString & password) = 0;
/* void forgetPassword (); */
NS_IMETHOD ForgetPassword(void) = 0;
/* nsIURI verifyLogon (in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHOD VerifyLogon(nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval) = 0;
/* void clearAllValues (); */
NS_IMETHOD ClearAllValues(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISmtpServer, NS_ISMTPSERVER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISMTPSERVER \
NS_IMETHOD GetKey(char * *aKey) override; \
NS_IMETHOD SetKey(const char * aKey) override; \
NS_IMETHOD GetDescription(nsACString & aDescription) override; \
NS_IMETHOD SetDescription(const nsACString & aDescription) override; \
NS_IMETHOD GetHostname(nsACString & aHostname) override; \
NS_IMETHOD SetHostname(const nsACString & aHostname) override; \
NS_IMETHOD GetPort(int32_t *aPort) override; \
NS_IMETHOD SetPort(int32_t aPort) override; \
NS_IMETHOD GetUsername(nsACString & aUsername) override; \
NS_IMETHOD SetUsername(const nsACString & aUsername) override; \
NS_IMETHOD GetPassword(nsACString & aPassword) override; \
NS_IMETHOD SetPassword(const nsACString & aPassword) override; \
NS_IMETHOD GetDisplayname(char * *aDisplayname) override; \
NS_IMETHOD GetAuthMethod(nsMsgAuthMethodValue *aAuthMethod) override; \
NS_IMETHOD SetAuthMethod(nsMsgAuthMethodValue aAuthMethod) override; \
NS_IMETHOD GetSocketType(nsMsgSocketTypeValue *aSocketType) override; \
NS_IMETHOD SetSocketType(nsMsgSocketTypeValue aSocketType) override; \
NS_IMETHOD GetHelloArgument(char * *aHelloArgument) override; \
NS_IMETHOD GetServerURI(nsACString & aServerURI) override; \
NS_IMETHOD GetPasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & _retval) override; \
NS_IMETHOD GetUsernamePasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & userid, nsACString & password) override; \
NS_IMETHOD ForgetPassword(void) override; \
NS_IMETHOD VerifyLogon(nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval) override; \
NS_IMETHOD ClearAllValues(void) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISMTPSERVER(_to) \
NS_IMETHOD GetKey(char * *aKey) override { return _to GetKey(aKey); } \
NS_IMETHOD SetKey(const char * aKey) override { return _to SetKey(aKey); } \
NS_IMETHOD GetDescription(nsACString & aDescription) override { return _to GetDescription(aDescription); } \
NS_IMETHOD SetDescription(const nsACString & aDescription) override { return _to SetDescription(aDescription); } \
NS_IMETHOD GetHostname(nsACString & aHostname) override { return _to GetHostname(aHostname); } \
NS_IMETHOD SetHostname(const nsACString & aHostname) override { return _to SetHostname(aHostname); } \
NS_IMETHOD GetPort(int32_t *aPort) override { return _to GetPort(aPort); } \
NS_IMETHOD SetPort(int32_t aPort) override { return _to SetPort(aPort); } \
NS_IMETHOD GetUsername(nsACString & aUsername) override { return _to GetUsername(aUsername); } \
NS_IMETHOD SetUsername(const nsACString & aUsername) override { return _to SetUsername(aUsername); } \
NS_IMETHOD GetPassword(nsACString & aPassword) override { return _to GetPassword(aPassword); } \
NS_IMETHOD SetPassword(const nsACString & aPassword) override { return _to SetPassword(aPassword); } \
NS_IMETHOD GetDisplayname(char * *aDisplayname) override { return _to GetDisplayname(aDisplayname); } \
NS_IMETHOD GetAuthMethod(nsMsgAuthMethodValue *aAuthMethod) override { return _to GetAuthMethod(aAuthMethod); } \
NS_IMETHOD SetAuthMethod(nsMsgAuthMethodValue aAuthMethod) override { return _to SetAuthMethod(aAuthMethod); } \
NS_IMETHOD GetSocketType(nsMsgSocketTypeValue *aSocketType) override { return _to GetSocketType(aSocketType); } \
NS_IMETHOD SetSocketType(nsMsgSocketTypeValue aSocketType) override { return _to SetSocketType(aSocketType); } \
NS_IMETHOD GetHelloArgument(char * *aHelloArgument) override { return _to GetHelloArgument(aHelloArgument); } \
NS_IMETHOD GetServerURI(nsACString & aServerURI) override { return _to GetServerURI(aServerURI); } \
NS_IMETHOD GetPasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & _retval) override { return _to GetPasswordWithUI(promptString, promptTitle, netPrompt, _retval); } \
NS_IMETHOD GetUsernamePasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & userid, nsACString & password) override { return _to GetUsernamePasswordWithUI(promptString, promptTitle, netPrompt, userid, password); } \
NS_IMETHOD ForgetPassword(void) override { return _to ForgetPassword(); } \
NS_IMETHOD VerifyLogon(nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval) override { return _to VerifyLogon(aUrlListener, aMsgWindow, _retval); } \
NS_IMETHOD ClearAllValues(void) override { return _to ClearAllValues(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISMTPSERVER(_to) \
NS_IMETHOD GetKey(char * *aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
NS_IMETHOD SetKey(const char * aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKey(aKey); } \
NS_IMETHOD GetDescription(nsACString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
NS_IMETHOD SetDescription(const nsACString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
NS_IMETHOD GetHostname(nsACString & aHostname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostname(aHostname); } \
NS_IMETHOD SetHostname(const nsACString & aHostname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHostname(aHostname); } \
NS_IMETHOD GetPort(int32_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
NS_IMETHOD SetPort(int32_t aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPort(aPort); } \
NS_IMETHOD GetUsername(nsACString & aUsername) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsername(aUsername); } \
NS_IMETHOD SetUsername(const nsACString & aUsername) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUsername(aUsername); } \
NS_IMETHOD GetPassword(nsACString & aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } \
NS_IMETHOD SetPassword(const nsACString & aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPassword(aPassword); } \
NS_IMETHOD GetDisplayname(char * *aDisplayname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayname(aDisplayname); } \
NS_IMETHOD GetAuthMethod(nsMsgAuthMethodValue *aAuthMethod) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthMethod(aAuthMethod); } \
NS_IMETHOD SetAuthMethod(nsMsgAuthMethodValue aAuthMethod) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAuthMethod(aAuthMethod); } \
NS_IMETHOD GetSocketType(nsMsgSocketTypeValue *aSocketType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSocketType(aSocketType); } \
NS_IMETHOD SetSocketType(nsMsgSocketTypeValue aSocketType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSocketType(aSocketType); } \
NS_IMETHOD GetHelloArgument(char * *aHelloArgument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHelloArgument(aHelloArgument); } \
NS_IMETHOD GetServerURI(nsACString & aServerURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerURI(aServerURI); } \
NS_IMETHOD GetPasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPasswordWithUI(promptString, promptTitle, netPrompt, _retval); } \
NS_IMETHOD GetUsernamePasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & userid, nsACString & password) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsernamePasswordWithUI(promptString, promptTitle, netPrompt, userid, password); } \
NS_IMETHOD ForgetPassword(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForgetPassword(); } \
NS_IMETHOD VerifyLogon(nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyLogon(aUrlListener, aMsgWindow, _retval); } \
NS_IMETHOD ClearAllValues(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearAllValues(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSmtpServer : public nsISmtpServer
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISMTPSERVER
nsSmtpServer();
private:
~nsSmtpServer();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsSmtpServer, nsISmtpServer)
nsSmtpServer::nsSmtpServer()
{
/* member initializers and constructor code */
}
nsSmtpServer::~nsSmtpServer()
{
/* destructor code */
}
/* attribute string key; */
NS_IMETHODIMP nsSmtpServer::GetKey(char * *aKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSmtpServer::SetKey(const char * aKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AUTF8String description; */
NS_IMETHODIMP nsSmtpServer::GetDescription(nsACString & aDescription)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSmtpServer::SetDescription(const nsACString & aDescription)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute ACString hostname; */
NS_IMETHODIMP nsSmtpServer::GetHostname(nsACString & aHostname)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSmtpServer::SetHostname(const nsACString & aHostname)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute int32_t port; */
NS_IMETHODIMP nsSmtpServer::GetPort(int32_t *aPort)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSmtpServer::SetPort(int32_t aPort)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute ACString username; */
NS_IMETHODIMP nsSmtpServer::GetUsername(nsACString & aUsername)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSmtpServer::SetUsername(const nsACString & aUsername)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute ACString password; */
NS_IMETHODIMP nsSmtpServer::GetPassword(nsACString & aPassword)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSmtpServer::SetPassword(const nsACString & aPassword)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute string displayname; */
NS_IMETHODIMP nsSmtpServer::GetDisplayname(char * *aDisplayname)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsMsgAuthMethodValue authMethod; */
NS_IMETHODIMP nsSmtpServer::GetAuthMethod(nsMsgAuthMethodValue *aAuthMethod)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSmtpServer::SetAuthMethod(nsMsgAuthMethodValue aAuthMethod)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsMsgSocketTypeValue socketType; */
NS_IMETHODIMP nsSmtpServer::GetSocketType(nsMsgSocketTypeValue *aSocketType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSmtpServer::SetSocketType(nsMsgSocketTypeValue aSocketType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute string helloArgument; */
NS_IMETHODIMP nsSmtpServer::GetHelloArgument(char * *aHelloArgument)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute ACString serverURI; */
NS_IMETHODIMP nsSmtpServer::GetServerURI(nsACString & aServerURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString getPasswordWithUI (in wstring promptString, in wstring promptTitle, in nsIAuthPrompt netPrompt); */
NS_IMETHODIMP nsSmtpServer::GetPasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getUsernamePasswordWithUI (in wstring promptString, in wstring promptTitle, in nsIAuthPrompt netPrompt, out ACString userid, out ACString password); */
NS_IMETHODIMP nsSmtpServer::GetUsernamePasswordWithUI(const char16_t * promptString, const char16_t * promptTitle, nsIAuthPrompt *netPrompt, nsACString & userid, nsACString & password)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void forgetPassword (); */
NS_IMETHODIMP nsSmtpServer::ForgetPassword()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI verifyLogon (in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsSmtpServer::VerifyLogon(nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clearAllValues (); */
NS_IMETHODIMP nsSmtpServer::ClearAllValues()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsISmtpServer_h__ */
|