/usr/include/thunderbird-11.0.1/nsISubscribableServer.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/base/public/nsISubscribableServer.idl
*/
#ifndef __gen_nsISubscribableServer_h__
#define __gen_nsISubscribableServer_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIMsgWindow; /* forward declaration */
class nsIMsgIncomingServer; /* forward declaration */
class nsIRDFResource; /* forward declaration */
class nsIRDFNode; /* forward declaration */
class nsISimpleEnumerator; /* forward declaration */
/* starting interface: nsISubscribeDataSource */
#define NS_ISUBSCRIBEDATASOURCE_IID_STR "61a08c3a-1dd2-11b2-b64f-c4b2de1cf129"
#define NS_ISUBSCRIBEDATASOURCE_IID \
{0x61a08c3a, 0x1dd2, 0x11b2, \
{ 0xb6, 0x4f, 0xc4, 0xb2, 0xde, 0x1c, 0xf1, 0x29 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsISubscribeDataSource : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUBSCRIBEDATASOURCE_IID)
/* readonly attribute boolean hasObservers; */
NS_SCRIPTABLE NS_IMETHOD GetHasObservers(bool *aHasObservers) = 0;
/* void NotifyObservers (in nsIRDFResource subject, in nsIRDFResource property, in nsIRDFNode object, in boolean isAssert, in boolean isChange); */
NS_SCRIPTABLE NS_IMETHOD NotifyObservers(nsIRDFResource *subject, nsIRDFResource *property, nsIRDFNode *object, bool isAssert, bool isChange) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISubscribeDataSource, NS_ISUBSCRIBEDATASOURCE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISUBSCRIBEDATASOURCE \
NS_SCRIPTABLE NS_IMETHOD GetHasObservers(bool *aHasObservers); \
NS_SCRIPTABLE NS_IMETHOD NotifyObservers(nsIRDFResource *subject, nsIRDFResource *property, nsIRDFNode *object, bool isAssert, bool isChange);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISUBSCRIBEDATASOURCE(_to) \
NS_SCRIPTABLE NS_IMETHOD GetHasObservers(bool *aHasObservers) { return _to GetHasObservers(aHasObservers); } \
NS_SCRIPTABLE NS_IMETHOD NotifyObservers(nsIRDFResource *subject, nsIRDFResource *property, nsIRDFNode *object, bool isAssert, bool isChange) { return _to NotifyObservers(subject, property, object, isAssert, isChange); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISUBSCRIBEDATASOURCE(_to) \
NS_SCRIPTABLE NS_IMETHOD GetHasObservers(bool *aHasObservers) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasObservers(aHasObservers); } \
NS_SCRIPTABLE NS_IMETHOD NotifyObservers(nsIRDFResource *subject, nsIRDFResource *property, nsIRDFNode *object, bool isAssert, bool isChange) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyObservers(subject, property, object, isAssert, isChange); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSubscribeDataSource : public nsISubscribeDataSource
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISUBSCRIBEDATASOURCE
nsSubscribeDataSource();
private:
~nsSubscribeDataSource();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsSubscribeDataSource, nsISubscribeDataSource)
nsSubscribeDataSource::nsSubscribeDataSource()
{
/* member initializers and constructor code */
}
nsSubscribeDataSource::~nsSubscribeDataSource()
{
/* destructor code */
}
/* readonly attribute boolean hasObservers; */
NS_IMETHODIMP nsSubscribeDataSource::GetHasObservers(bool *aHasObservers)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void NotifyObservers (in nsIRDFResource subject, in nsIRDFResource property, in nsIRDFNode object, in boolean isAssert, in boolean isChange); */
NS_IMETHODIMP nsSubscribeDataSource::NotifyObservers(nsIRDFResource *subject, nsIRDFResource *property, nsIRDFNode *object, bool isAssert, bool isChange)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsISubscribeListener */
#define NS_ISUBSCRIBELISTENER_IID_STR "f337b84a-1dd1-11b2-97c7-fb8b2e3f2280"
#define NS_ISUBSCRIBELISTENER_IID \
{0xf337b84a, 0x1dd1, 0x11b2, \
{ 0x97, 0xc7, 0xfb, 0x8b, 0x2e, 0x3f, 0x22, 0x80 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsISubscribeListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUBSCRIBELISTENER_IID)
/* void OnDonePopulating (); */
NS_SCRIPTABLE NS_IMETHOD OnDonePopulating(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISubscribeListener, NS_ISUBSCRIBELISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISUBSCRIBELISTENER \
NS_SCRIPTABLE NS_IMETHOD OnDonePopulating(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISUBSCRIBELISTENER(_to) \
NS_SCRIPTABLE NS_IMETHOD OnDonePopulating(void) { return _to OnDonePopulating(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISUBSCRIBELISTENER(_to) \
NS_SCRIPTABLE NS_IMETHOD OnDonePopulating(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDonePopulating(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSubscribeListener : public nsISubscribeListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISUBSCRIBELISTENER
nsSubscribeListener();
private:
~nsSubscribeListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsSubscribeListener, nsISubscribeListener)
nsSubscribeListener::nsSubscribeListener()
{
/* member initializers and constructor code */
}
nsSubscribeListener::~nsSubscribeListener()
{
/* destructor code */
}
/* void OnDonePopulating (); */
NS_IMETHODIMP nsSubscribeListener::OnDonePopulating()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsISubscribableServer */
#define NS_ISUBSCRIBABLESERVER_IID_STR "14b8597a-755b-4e93-b364-e0903801e6ea"
#define NS_ISUBSCRIBABLESERVER_IID \
{0x14b8597a, 0x755b, 0x4e93, \
{ 0xb3, 0x64, 0xe0, 0x90, 0x38, 0x01, 0xe6, 0xea }}
class NS_NO_VTABLE NS_SCRIPTABLE nsISubscribableServer : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUBSCRIBABLESERVER_IID)
/* attribute nsISubscribeListener subscribeListener; */
NS_SCRIPTABLE NS_IMETHOD GetSubscribeListener(nsISubscribeListener * *aSubscribeListener) = 0;
NS_SCRIPTABLE NS_IMETHOD SetSubscribeListener(nsISubscribeListener *aSubscribeListener) = 0;
/* attribute char delimiter; */
NS_SCRIPTABLE NS_IMETHOD GetDelimiter(char *aDelimiter) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDelimiter(char aDelimiter) = 0;
/* void startPopulating (in nsIMsgWindow aMsgWindow, in boolean forceToServer, in boolean getOnlyNew); */
NS_SCRIPTABLE NS_IMETHOD StartPopulating(nsIMsgWindow *aMsgWindow, bool forceToServer, bool getOnlyNew) = 0;
/* void startPopulatingWithUri (in nsIMsgWindow aMsgWindow, in boolean forceToServer, in string uri); */
NS_SCRIPTABLE NS_IMETHOD StartPopulatingWithUri(nsIMsgWindow *aMsgWindow, bool forceToServer, const char * uri) = 0;
/* void stopPopulating (in nsIMsgWindow aMsgWindow); */
NS_SCRIPTABLE NS_IMETHOD StopPopulating(nsIMsgWindow *aMsgWindow) = 0;
/* boolean setState (in AUTF8String path, in boolean state); */
NS_SCRIPTABLE NS_IMETHOD SetState(const nsACString & path, bool state, bool *_retval NS_OUTPARAM) = 0;
/* void subscribeCleanup (); */
NS_SCRIPTABLE NS_IMETHOD SubscribeCleanup(void) = 0;
/* void subscribe (in wstring name); */
NS_SCRIPTABLE NS_IMETHOD Subscribe(const PRUnichar * name) = 0;
/* void unsubscribe (in wstring name); */
NS_SCRIPTABLE NS_IMETHOD Unsubscribe(const PRUnichar * name) = 0;
/* void commitSubscribeChanges (); */
NS_SCRIPTABLE NS_IMETHOD CommitSubscribeChanges(void) = 0;
/* void setIncomingServer (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD SetIncomingServer(nsIMsgIncomingServer *server) = 0;
/* void addTo (in AUTF8String aName, in boolean addAsSubscribed, in boolean aSubscribable, in boolean aChangeIfExists); */
NS_SCRIPTABLE NS_IMETHOD AddTo(const nsACString & aName, bool addAsSubscribed, bool aSubscribable, bool aChangeIfExists) = 0;
/* void setAsSubscribed (in AUTF8String path); */
NS_SCRIPTABLE NS_IMETHOD SetAsSubscribed(const nsACString & path) = 0;
/* void updateSubscribed (); */
NS_SCRIPTABLE NS_IMETHOD UpdateSubscribed(void) = 0;
/* void setShowFullName (in boolean showFullName); */
NS_SCRIPTABLE NS_IMETHOD SetShowFullName(bool showFullName) = 0;
/* boolean hasChildren (in AUTF8String path); */
NS_SCRIPTABLE NS_IMETHOD HasChildren(const nsACString & path, bool *_retval NS_OUTPARAM) = 0;
/* boolean isSubscribed (in AUTF8String path); */
NS_SCRIPTABLE NS_IMETHOD IsSubscribed(const nsACString & path, bool *_retval NS_OUTPARAM) = 0;
/* boolean isSubscribable (in AUTF8String path); */
NS_SCRIPTABLE NS_IMETHOD IsSubscribable(const nsACString & path, bool *_retval NS_OUTPARAM) = 0;
/* AString getLeafName (in AUTF8String path); */
NS_SCRIPTABLE NS_IMETHOD GetLeafName(const nsACString & path, nsAString & _retval NS_OUTPARAM) = 0;
/* nsISimpleEnumerator getChildren (in AUTF8String aPath); */
NS_SCRIPTABLE NS_IMETHOD GetChildren(const nsACString & aPath, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
/* AUTF8String getFirstChildURI (in AUTF8String path); */
NS_SCRIPTABLE NS_IMETHOD GetFirstChildURI(const nsACString & path, nsACString & _retval NS_OUTPARAM) = 0;
/* void setSearchValue (in AString searchValue); */
NS_SCRIPTABLE NS_IMETHOD SetSearchValue(const nsAString & searchValue) = 0;
/* readonly attribute boolean supportsSubscribeSearch; */
NS_SCRIPTABLE NS_IMETHOD GetSupportsSubscribeSearch(bool *aSupportsSubscribeSearch) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISubscribableServer, NS_ISUBSCRIBABLESERVER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISUBSCRIBABLESERVER \
NS_SCRIPTABLE NS_IMETHOD GetSubscribeListener(nsISubscribeListener * *aSubscribeListener); \
NS_SCRIPTABLE NS_IMETHOD SetSubscribeListener(nsISubscribeListener *aSubscribeListener); \
NS_SCRIPTABLE NS_IMETHOD GetDelimiter(char *aDelimiter); \
NS_SCRIPTABLE NS_IMETHOD SetDelimiter(char aDelimiter); \
NS_SCRIPTABLE NS_IMETHOD StartPopulating(nsIMsgWindow *aMsgWindow, bool forceToServer, bool getOnlyNew); \
NS_SCRIPTABLE NS_IMETHOD StartPopulatingWithUri(nsIMsgWindow *aMsgWindow, bool forceToServer, const char * uri); \
NS_SCRIPTABLE NS_IMETHOD StopPopulating(nsIMsgWindow *aMsgWindow); \
NS_SCRIPTABLE NS_IMETHOD SetState(const nsACString & path, bool state, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SubscribeCleanup(void); \
NS_SCRIPTABLE NS_IMETHOD Subscribe(const PRUnichar * name); \
NS_SCRIPTABLE NS_IMETHOD Unsubscribe(const PRUnichar * name); \
NS_SCRIPTABLE NS_IMETHOD CommitSubscribeChanges(void); \
NS_SCRIPTABLE NS_IMETHOD SetIncomingServer(nsIMsgIncomingServer *server); \
NS_SCRIPTABLE NS_IMETHOD AddTo(const nsACString & aName, bool addAsSubscribed, bool aSubscribable, bool aChangeIfExists); \
NS_SCRIPTABLE NS_IMETHOD SetAsSubscribed(const nsACString & path); \
NS_SCRIPTABLE NS_IMETHOD UpdateSubscribed(void); \
NS_SCRIPTABLE NS_IMETHOD SetShowFullName(bool showFullName); \
NS_SCRIPTABLE NS_IMETHOD HasChildren(const nsACString & path, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD IsSubscribed(const nsACString & path, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD IsSubscribable(const nsACString & path, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetLeafName(const nsACString & path, nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetChildren(const nsACString & aPath, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetFirstChildURI(const nsACString & path, nsACString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SetSearchValue(const nsAString & searchValue); \
NS_SCRIPTABLE NS_IMETHOD GetSupportsSubscribeSearch(bool *aSupportsSubscribeSearch);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISUBSCRIBABLESERVER(_to) \
NS_SCRIPTABLE NS_IMETHOD GetSubscribeListener(nsISubscribeListener * *aSubscribeListener) { return _to GetSubscribeListener(aSubscribeListener); } \
NS_SCRIPTABLE NS_IMETHOD SetSubscribeListener(nsISubscribeListener *aSubscribeListener) { return _to SetSubscribeListener(aSubscribeListener); } \
NS_SCRIPTABLE NS_IMETHOD GetDelimiter(char *aDelimiter) { return _to GetDelimiter(aDelimiter); } \
NS_SCRIPTABLE NS_IMETHOD SetDelimiter(char aDelimiter) { return _to SetDelimiter(aDelimiter); } \
NS_SCRIPTABLE NS_IMETHOD StartPopulating(nsIMsgWindow *aMsgWindow, bool forceToServer, bool getOnlyNew) { return _to StartPopulating(aMsgWindow, forceToServer, getOnlyNew); } \
NS_SCRIPTABLE NS_IMETHOD StartPopulatingWithUri(nsIMsgWindow *aMsgWindow, bool forceToServer, const char * uri) { return _to StartPopulatingWithUri(aMsgWindow, forceToServer, uri); } \
NS_SCRIPTABLE NS_IMETHOD StopPopulating(nsIMsgWindow *aMsgWindow) { return _to StopPopulating(aMsgWindow); } \
NS_SCRIPTABLE NS_IMETHOD SetState(const nsACString & path, bool state, bool *_retval NS_OUTPARAM) { return _to SetState(path, state, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SubscribeCleanup(void) { return _to SubscribeCleanup(); } \
NS_SCRIPTABLE NS_IMETHOD Subscribe(const PRUnichar * name) { return _to Subscribe(name); } \
NS_SCRIPTABLE NS_IMETHOD Unsubscribe(const PRUnichar * name) { return _to Unsubscribe(name); } \
NS_SCRIPTABLE NS_IMETHOD CommitSubscribeChanges(void) { return _to CommitSubscribeChanges(); } \
NS_SCRIPTABLE NS_IMETHOD SetIncomingServer(nsIMsgIncomingServer *server) { return _to SetIncomingServer(server); } \
NS_SCRIPTABLE NS_IMETHOD AddTo(const nsACString & aName, bool addAsSubscribed, bool aSubscribable, bool aChangeIfExists) { return _to AddTo(aName, addAsSubscribed, aSubscribable, aChangeIfExists); } \
NS_SCRIPTABLE NS_IMETHOD SetAsSubscribed(const nsACString & path) { return _to SetAsSubscribed(path); } \
NS_SCRIPTABLE NS_IMETHOD UpdateSubscribed(void) { return _to UpdateSubscribed(); } \
NS_SCRIPTABLE NS_IMETHOD SetShowFullName(bool showFullName) { return _to SetShowFullName(showFullName); } \
NS_SCRIPTABLE NS_IMETHOD HasChildren(const nsACString & path, bool *_retval NS_OUTPARAM) { return _to HasChildren(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IsSubscribed(const nsACString & path, bool *_retval NS_OUTPARAM) { return _to IsSubscribed(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IsSubscribable(const nsACString & path, bool *_retval NS_OUTPARAM) { return _to IsSubscribable(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetLeafName(const nsACString & path, nsAString & _retval NS_OUTPARAM) { return _to GetLeafName(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetChildren(const nsACString & aPath, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetChildren(aPath, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFirstChildURI(const nsACString & path, nsACString & _retval NS_OUTPARAM) { return _to GetFirstChildURI(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SetSearchValue(const nsAString & searchValue) { return _to SetSearchValue(searchValue); } \
NS_SCRIPTABLE NS_IMETHOD GetSupportsSubscribeSearch(bool *aSupportsSubscribeSearch) { return _to GetSupportsSubscribeSearch(aSupportsSubscribeSearch); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISUBSCRIBABLESERVER(_to) \
NS_SCRIPTABLE NS_IMETHOD GetSubscribeListener(nsISubscribeListener * *aSubscribeListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubscribeListener(aSubscribeListener); } \
NS_SCRIPTABLE NS_IMETHOD SetSubscribeListener(nsISubscribeListener *aSubscribeListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubscribeListener(aSubscribeListener); } \
NS_SCRIPTABLE NS_IMETHOD GetDelimiter(char *aDelimiter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDelimiter(aDelimiter); } \
NS_SCRIPTABLE NS_IMETHOD SetDelimiter(char aDelimiter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDelimiter(aDelimiter); } \
NS_SCRIPTABLE NS_IMETHOD StartPopulating(nsIMsgWindow *aMsgWindow, bool forceToServer, bool getOnlyNew) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartPopulating(aMsgWindow, forceToServer, getOnlyNew); } \
NS_SCRIPTABLE NS_IMETHOD StartPopulatingWithUri(nsIMsgWindow *aMsgWindow, bool forceToServer, const char * uri) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartPopulatingWithUri(aMsgWindow, forceToServer, uri); } \
NS_SCRIPTABLE NS_IMETHOD StopPopulating(nsIMsgWindow *aMsgWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopPopulating(aMsgWindow); } \
NS_SCRIPTABLE NS_IMETHOD SetState(const nsACString & path, bool state, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetState(path, state, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SubscribeCleanup(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeCleanup(); } \
NS_SCRIPTABLE NS_IMETHOD Subscribe(const PRUnichar * name) { return !_to ? NS_ERROR_NULL_POINTER : _to->Subscribe(name); } \
NS_SCRIPTABLE NS_IMETHOD Unsubscribe(const PRUnichar * name) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unsubscribe(name); } \
NS_SCRIPTABLE NS_IMETHOD CommitSubscribeChanges(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CommitSubscribeChanges(); } \
NS_SCRIPTABLE NS_IMETHOD SetIncomingServer(nsIMsgIncomingServer *server) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIncomingServer(server); } \
NS_SCRIPTABLE NS_IMETHOD AddTo(const nsACString & aName, bool addAsSubscribed, bool aSubscribable, bool aChangeIfExists) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddTo(aName, addAsSubscribed, aSubscribable, aChangeIfExists); } \
NS_SCRIPTABLE NS_IMETHOD SetAsSubscribed(const nsACString & path) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsSubscribed(path); } \
NS_SCRIPTABLE NS_IMETHOD UpdateSubscribed(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateSubscribed(); } \
NS_SCRIPTABLE NS_IMETHOD SetShowFullName(bool showFullName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowFullName(showFullName); } \
NS_SCRIPTABLE NS_IMETHOD HasChildren(const nsACString & path, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasChildren(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IsSubscribed(const nsACString & path, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSubscribed(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IsSubscribable(const nsACString & path, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSubscribable(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetLeafName(const nsACString & path, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLeafName(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetChildren(const nsACString & aPath, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildren(aPath, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFirstChildURI(const nsACString & path, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstChildURI(path, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SetSearchValue(const nsAString & searchValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchValue(searchValue); } \
NS_SCRIPTABLE NS_IMETHOD GetSupportsSubscribeSearch(bool *aSupportsSubscribeSearch) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportsSubscribeSearch(aSupportsSubscribeSearch); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSubscribableServer : public nsISubscribableServer
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISUBSCRIBABLESERVER
nsSubscribableServer();
private:
~nsSubscribableServer();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsSubscribableServer, nsISubscribableServer)
nsSubscribableServer::nsSubscribableServer()
{
/* member initializers and constructor code */
}
nsSubscribableServer::~nsSubscribableServer()
{
/* destructor code */
}
/* attribute nsISubscribeListener subscribeListener; */
NS_IMETHODIMP nsSubscribableServer::GetSubscribeListener(nsISubscribeListener * *aSubscribeListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSubscribableServer::SetSubscribeListener(nsISubscribeListener *aSubscribeListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute char delimiter; */
NS_IMETHODIMP nsSubscribableServer::GetDelimiter(char *aDelimiter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSubscribableServer::SetDelimiter(char aDelimiter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void startPopulating (in nsIMsgWindow aMsgWindow, in boolean forceToServer, in boolean getOnlyNew); */
NS_IMETHODIMP nsSubscribableServer::StartPopulating(nsIMsgWindow *aMsgWindow, bool forceToServer, bool getOnlyNew)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void startPopulatingWithUri (in nsIMsgWindow aMsgWindow, in boolean forceToServer, in string uri); */
NS_IMETHODIMP nsSubscribableServer::StartPopulatingWithUri(nsIMsgWindow *aMsgWindow, bool forceToServer, const char * uri)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void stopPopulating (in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsSubscribableServer::StopPopulating(nsIMsgWindow *aMsgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean setState (in AUTF8String path, in boolean state); */
NS_IMETHODIMP nsSubscribableServer::SetState(const nsACString & path, bool state, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void subscribeCleanup (); */
NS_IMETHODIMP nsSubscribableServer::SubscribeCleanup()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void subscribe (in wstring name); */
NS_IMETHODIMP nsSubscribableServer::Subscribe(const PRUnichar * name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unsubscribe (in wstring name); */
NS_IMETHODIMP nsSubscribableServer::Unsubscribe(const PRUnichar * name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void commitSubscribeChanges (); */
NS_IMETHODIMP nsSubscribableServer::CommitSubscribeChanges()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setIncomingServer (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsSubscribableServer::SetIncomingServer(nsIMsgIncomingServer *server)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addTo (in AUTF8String aName, in boolean addAsSubscribed, in boolean aSubscribable, in boolean aChangeIfExists); */
NS_IMETHODIMP nsSubscribableServer::AddTo(const nsACString & aName, bool addAsSubscribed, bool aSubscribable, bool aChangeIfExists)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsSubscribed (in AUTF8String path); */
NS_IMETHODIMP nsSubscribableServer::SetAsSubscribed(const nsACString & path)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void updateSubscribed (); */
NS_IMETHODIMP nsSubscribableServer::UpdateSubscribed()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setShowFullName (in boolean showFullName); */
NS_IMETHODIMP nsSubscribableServer::SetShowFullName(bool showFullName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean hasChildren (in AUTF8String path); */
NS_IMETHODIMP nsSubscribableServer::HasChildren(const nsACString & path, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isSubscribed (in AUTF8String path); */
NS_IMETHODIMP nsSubscribableServer::IsSubscribed(const nsACString & path, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isSubscribable (in AUTF8String path); */
NS_IMETHODIMP nsSubscribableServer::IsSubscribable(const nsACString & path, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getLeafName (in AUTF8String path); */
NS_IMETHODIMP nsSubscribableServer::GetLeafName(const nsACString & path, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getChildren (in AUTF8String aPath); */
NS_IMETHODIMP nsSubscribableServer::GetChildren(const nsACString & aPath, nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String getFirstChildURI (in AUTF8String path); */
NS_IMETHODIMP nsSubscribableServer::GetFirstChildURI(const nsACString & path, nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setSearchValue (in AString searchValue); */
NS_IMETHODIMP nsSubscribableServer::SetSearchValue(const nsAString & searchValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean supportsSubscribeSearch; */
NS_IMETHODIMP nsSubscribableServer::GetSupportsSubscribeSearch(bool *aSupportsSubscribeSearch)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsISubscribableServer_h__ */
|