/usr/include/thunderbird/prplIProtocol.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/prplIProtocol.idl
*/
#ifndef __gen_prplIProtocol_h__
#define __gen_prplIProtocol_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif
#ifndef __gen_imIAccount_h__
#include "imIAccount.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: prplIProtocol */
#define PRPLIPROTOCOL_IID_STR "7d302db0-3813-4c51-8372-c7eb5fc9f3d3"
#define PRPLIPROTOCOL_IID \
{0x7d302db0, 0x3813, 0x4c51, \
{ 0x83, 0x72, 0xc7, 0xeb, 0x5f, 0xc9, 0xf3, 0xd3 }}
class NS_NO_VTABLE prplIProtocol : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(PRPLIPROTOCOL_IID)
/* void init (in AUTF8String aId); */
NS_IMETHOD Init(const nsACString & aId) = 0;
/* readonly attribute AUTF8String name; */
NS_IMETHOD GetName(nsACString & aName) = 0;
/* readonly attribute AUTF8String id; */
NS_IMETHOD GetId(nsACString & aId) = 0;
/* readonly attribute AUTF8String normalizedName; */
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) = 0;
/* readonly attribute AUTF8String iconBaseURI; */
NS_IMETHOD GetIconBaseURI(nsACString & aIconBaseURI) = 0;
/* nsISimpleEnumerator getOptions (); */
NS_IMETHOD GetOptions(nsISimpleEnumerator * *_retval) = 0;
/* nsISimpleEnumerator getUsernameSplit (); */
NS_IMETHOD GetUsernameSplit(nsISimpleEnumerator * *_retval) = 0;
/* readonly attribute AUTF8String usernameEmptyText; */
NS_IMETHOD GetUsernameEmptyText(nsACString & aUsernameEmptyText) = 0;
/* boolean accountExists (in AUTF8String aName); */
NS_IMETHOD AccountExists(const nsACString & aName, bool *_retval) = 0;
/* readonly attribute boolean uniqueChatName; */
NS_IMETHOD GetUniqueChatName(bool *aUniqueChatName) = 0;
/* readonly attribute boolean chatHasTopic; */
NS_IMETHOD GetChatHasTopic(bool *aChatHasTopic) = 0;
/* readonly attribute boolean noPassword; */
NS_IMETHOD GetNoPassword(bool *aNoPassword) = 0;
/* readonly attribute boolean newMailNotification; */
NS_IMETHOD GetNewMailNotification(bool *aNewMailNotification) = 0;
/* readonly attribute boolean imagesInIM; */
NS_IMETHOD GetImagesInIM(bool *aImagesInIM) = 0;
/* readonly attribute boolean passwordOptional; */
NS_IMETHOD GetPasswordOptional(bool *aPasswordOptional) = 0;
/* readonly attribute boolean usePointSize; */
NS_IMETHOD GetUsePointSize(bool *aUsePointSize) = 0;
/* readonly attribute boolean registerNoScreenName; */
NS_IMETHOD GetRegisterNoScreenName(bool *aRegisterNoScreenName) = 0;
/* readonly attribute boolean slashCommandsNative; */
NS_IMETHOD GetSlashCommandsNative(bool *aSlashCommandsNative) = 0;
/* readonly attribute boolean usePurpleProxy; */
NS_IMETHOD GetUsePurpleProxy(bool *aUsePurpleProxy) = 0;
/* prplIAccount getAccount (in imIAccount aImAccount); */
NS_IMETHOD GetAccount(imIAccount *aImAccount, prplIAccount * *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(prplIProtocol, PRPLIPROTOCOL_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLIPROTOCOL \
NS_IMETHOD Init(const nsACString & aId) override; \
NS_IMETHOD GetName(nsACString & aName) override; \
NS_IMETHOD GetId(nsACString & aId) override; \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override; \
NS_IMETHOD GetIconBaseURI(nsACString & aIconBaseURI) override; \
NS_IMETHOD GetOptions(nsISimpleEnumerator * *_retval) override; \
NS_IMETHOD GetUsernameSplit(nsISimpleEnumerator * *_retval) override; \
NS_IMETHOD GetUsernameEmptyText(nsACString & aUsernameEmptyText) override; \
NS_IMETHOD AccountExists(const nsACString & aName, bool *_retval) override; \
NS_IMETHOD GetUniqueChatName(bool *aUniqueChatName) override; \
NS_IMETHOD GetChatHasTopic(bool *aChatHasTopic) override; \
NS_IMETHOD GetNoPassword(bool *aNoPassword) override; \
NS_IMETHOD GetNewMailNotification(bool *aNewMailNotification) override; \
NS_IMETHOD GetImagesInIM(bool *aImagesInIM) override; \
NS_IMETHOD GetPasswordOptional(bool *aPasswordOptional) override; \
NS_IMETHOD GetUsePointSize(bool *aUsePointSize) override; \
NS_IMETHOD GetRegisterNoScreenName(bool *aRegisterNoScreenName) override; \
NS_IMETHOD GetSlashCommandsNative(bool *aSlashCommandsNative) override; \
NS_IMETHOD GetUsePurpleProxy(bool *aUsePurpleProxy) override; \
NS_IMETHOD GetAccount(imIAccount *aImAccount, prplIAccount * *_retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLIPROTOCOL(_to) \
NS_IMETHOD Init(const nsACString & aId) override { return _to Init(aId); } \
NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
NS_IMETHOD GetId(nsACString & aId) override { return _to GetId(aId); } \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override { return _to GetNormalizedName(aNormalizedName); } \
NS_IMETHOD GetIconBaseURI(nsACString & aIconBaseURI) override { return _to GetIconBaseURI(aIconBaseURI); } \
NS_IMETHOD GetOptions(nsISimpleEnumerator * *_retval) override { return _to GetOptions(_retval); } \
NS_IMETHOD GetUsernameSplit(nsISimpleEnumerator * *_retval) override { return _to GetUsernameSplit(_retval); } \
NS_IMETHOD GetUsernameEmptyText(nsACString & aUsernameEmptyText) override { return _to GetUsernameEmptyText(aUsernameEmptyText); } \
NS_IMETHOD AccountExists(const nsACString & aName, bool *_retval) override { return _to AccountExists(aName, _retval); } \
NS_IMETHOD GetUniqueChatName(bool *aUniqueChatName) override { return _to GetUniqueChatName(aUniqueChatName); } \
NS_IMETHOD GetChatHasTopic(bool *aChatHasTopic) override { return _to GetChatHasTopic(aChatHasTopic); } \
NS_IMETHOD GetNoPassword(bool *aNoPassword) override { return _to GetNoPassword(aNoPassword); } \
NS_IMETHOD GetNewMailNotification(bool *aNewMailNotification) override { return _to GetNewMailNotification(aNewMailNotification); } \
NS_IMETHOD GetImagesInIM(bool *aImagesInIM) override { return _to GetImagesInIM(aImagesInIM); } \
NS_IMETHOD GetPasswordOptional(bool *aPasswordOptional) override { return _to GetPasswordOptional(aPasswordOptional); } \
NS_IMETHOD GetUsePointSize(bool *aUsePointSize) override { return _to GetUsePointSize(aUsePointSize); } \
NS_IMETHOD GetRegisterNoScreenName(bool *aRegisterNoScreenName) override { return _to GetRegisterNoScreenName(aRegisterNoScreenName); } \
NS_IMETHOD GetSlashCommandsNative(bool *aSlashCommandsNative) override { return _to GetSlashCommandsNative(aSlashCommandsNative); } \
NS_IMETHOD GetUsePurpleProxy(bool *aUsePurpleProxy) override { return _to GetUsePurpleProxy(aUsePurpleProxy); } \
NS_IMETHOD GetAccount(imIAccount *aImAccount, prplIAccount * *_retval) override { return _to GetAccount(aImAccount, _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_PRPLIPROTOCOL(_to) \
NS_IMETHOD Init(const nsACString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aId); } \
NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD GetId(nsACString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNormalizedName(aNormalizedName); } \
NS_IMETHOD GetIconBaseURI(nsACString & aIconBaseURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIconBaseURI(aIconBaseURI); } \
NS_IMETHOD GetOptions(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptions(_retval); } \
NS_IMETHOD GetUsernameSplit(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsernameSplit(_retval); } \
NS_IMETHOD GetUsernameEmptyText(nsACString & aUsernameEmptyText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsernameEmptyText(aUsernameEmptyText); } \
NS_IMETHOD AccountExists(const nsACString & aName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AccountExists(aName, _retval); } \
NS_IMETHOD GetUniqueChatName(bool *aUniqueChatName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUniqueChatName(aUniqueChatName); } \
NS_IMETHOD GetChatHasTopic(bool *aChatHasTopic) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChatHasTopic(aChatHasTopic); } \
NS_IMETHOD GetNoPassword(bool *aNoPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoPassword(aNoPassword); } \
NS_IMETHOD GetNewMailNotification(bool *aNewMailNotification) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewMailNotification(aNewMailNotification); } \
NS_IMETHOD GetImagesInIM(bool *aImagesInIM) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImagesInIM(aImagesInIM); } \
NS_IMETHOD GetPasswordOptional(bool *aPasswordOptional) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPasswordOptional(aPasswordOptional); } \
NS_IMETHOD GetUsePointSize(bool *aUsePointSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsePointSize(aUsePointSize); } \
NS_IMETHOD GetRegisterNoScreenName(bool *aRegisterNoScreenName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegisterNoScreenName(aRegisterNoScreenName); } \
NS_IMETHOD GetSlashCommandsNative(bool *aSlashCommandsNative) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSlashCommandsNative(aSlashCommandsNative); } \
NS_IMETHOD GetUsePurpleProxy(bool *aUsePurpleProxy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsePurpleProxy(aUsePurpleProxy); } \
NS_IMETHOD GetAccount(imIAccount *aImAccount, prplIAccount * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccount(aImAccount, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public prplIProtocol
{
public:
NS_DECL_ISUPPORTS
NS_DECL_PRPLIPROTOCOL
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, prplIProtocol)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* void init (in AUTF8String aId); */
NS_IMETHODIMP _MYCLASS_::Init(const nsACString & aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String name; */
NS_IMETHODIMP _MYCLASS_::GetName(nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String id; */
NS_IMETHODIMP _MYCLASS_::GetId(nsACString & aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String normalizedName; */
NS_IMETHODIMP _MYCLASS_::GetNormalizedName(nsACString & aNormalizedName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String iconBaseURI; */
NS_IMETHODIMP _MYCLASS_::GetIconBaseURI(nsACString & aIconBaseURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getOptions (); */
NS_IMETHODIMP _MYCLASS_::GetOptions(nsISimpleEnumerator * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getUsernameSplit (); */
NS_IMETHODIMP _MYCLASS_::GetUsernameSplit(nsISimpleEnumerator * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String usernameEmptyText; */
NS_IMETHODIMP _MYCLASS_::GetUsernameEmptyText(nsACString & aUsernameEmptyText)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean accountExists (in AUTF8String aName); */
NS_IMETHODIMP _MYCLASS_::AccountExists(const nsACString & aName, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean uniqueChatName; */
NS_IMETHODIMP _MYCLASS_::GetUniqueChatName(bool *aUniqueChatName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean chatHasTopic; */
NS_IMETHODIMP _MYCLASS_::GetChatHasTopic(bool *aChatHasTopic)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean noPassword; */
NS_IMETHODIMP _MYCLASS_::GetNoPassword(bool *aNoPassword)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean newMailNotification; */
NS_IMETHODIMP _MYCLASS_::GetNewMailNotification(bool *aNewMailNotification)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean imagesInIM; */
NS_IMETHODIMP _MYCLASS_::GetImagesInIM(bool *aImagesInIM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean passwordOptional; */
NS_IMETHODIMP _MYCLASS_::GetPasswordOptional(bool *aPasswordOptional)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean usePointSize; */
NS_IMETHODIMP _MYCLASS_::GetUsePointSize(bool *aUsePointSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean registerNoScreenName; */
NS_IMETHODIMP _MYCLASS_::GetRegisterNoScreenName(bool *aRegisterNoScreenName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean slashCommandsNative; */
NS_IMETHODIMP _MYCLASS_::GetSlashCommandsNative(bool *aSlashCommandsNative)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean usePurpleProxy; */
NS_IMETHODIMP _MYCLASS_::GetUsePurpleProxy(bool *aUsePurpleProxy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* prplIAccount getAccount (in imIAccount aImAccount); */
NS_IMETHODIMP _MYCLASS_::GetAccount(imIAccount *aImAccount, prplIAccount * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: prplIUsernameSplit */
#define PRPLIUSERNAMESPLIT_IID_STR "20c4971a-f7c2-4781-8e85-69fee7b83a3d"
#define PRPLIUSERNAMESPLIT_IID \
{0x20c4971a, 0xf7c2, 0x4781, \
{ 0x8e, 0x85, 0x69, 0xfe, 0xe7, 0xb8, 0x3a, 0x3d }}
class NS_NO_VTABLE prplIUsernameSplit : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(PRPLIUSERNAMESPLIT_IID)
/* readonly attribute AUTF8String label; */
NS_IMETHOD GetLabel(nsACString & aLabel) = 0;
/* readonly attribute AUTF8String defaultValue; */
NS_IMETHOD GetDefaultValue(nsACString & aDefaultValue) = 0;
/* readonly attribute char separator; */
NS_IMETHOD GetSeparator(char *aSeparator) = 0;
/* readonly attribute boolean reverse; */
NS_IMETHOD GetReverse(bool *aReverse) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(prplIUsernameSplit, PRPLIUSERNAMESPLIT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLIUSERNAMESPLIT \
NS_IMETHOD GetLabel(nsACString & aLabel) override; \
NS_IMETHOD GetDefaultValue(nsACString & aDefaultValue) override; \
NS_IMETHOD GetSeparator(char *aSeparator) override; \
NS_IMETHOD GetReverse(bool *aReverse) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLIUSERNAMESPLIT(_to) \
NS_IMETHOD GetLabel(nsACString & aLabel) override { return _to GetLabel(aLabel); } \
NS_IMETHOD GetDefaultValue(nsACString & aDefaultValue) override { return _to GetDefaultValue(aDefaultValue); } \
NS_IMETHOD GetSeparator(char *aSeparator) override { return _to GetSeparator(aSeparator); } \
NS_IMETHOD GetReverse(bool *aReverse) override { return _to GetReverse(aReverse); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLIUSERNAMESPLIT(_to) \
NS_IMETHOD GetLabel(nsACString & aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
NS_IMETHOD GetDefaultValue(nsACString & aDefaultValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultValue(aDefaultValue); } \
NS_IMETHOD GetSeparator(char *aSeparator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSeparator(aSeparator); } \
NS_IMETHOD GetReverse(bool *aReverse) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReverse(aReverse); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public prplIUsernameSplit
{
public:
NS_DECL_ISUPPORTS
NS_DECL_PRPLIUSERNAMESPLIT
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, prplIUsernameSplit)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* readonly attribute AUTF8String label; */
NS_IMETHODIMP _MYCLASS_::GetLabel(nsACString & aLabel)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String defaultValue; */
NS_IMETHODIMP _MYCLASS_::GetDefaultValue(nsACString & aDefaultValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute char separator; */
NS_IMETHODIMP _MYCLASS_::GetSeparator(char *aSeparator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean reverse; */
NS_IMETHODIMP _MYCLASS_::GetReverse(bool *aReverse)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_prplIProtocol_h__ */
|