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 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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/public/nsIMsgMailNewsUrl.idl
 */

#ifndef __gen_nsIMsgMailNewsUrl_h__
#define __gen_nsIMsgMailNewsUrl_h__


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

#ifndef __gen_nsIURL_h__
#include "nsIURL.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 nsIUrlListener; /* forward declaration */

class nsIMsgStatusFeedback; /* forward declaration */

class nsIMsgIncomingServer; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsILoadGroup; /* forward declaration */

class nsIMsgSearchSession; /* forward declaration */

class nsICacheEntry; /* forward declaration */

class nsIMimeHeaders; /* forward declaration */

class nsIStreamListener; /* forward declaration */

class nsIMsgFolder; /* forward declaration */

class nsIMsgHeaderSink; /* forward declaration */

class nsIMsgDBHdr; /* forward declaration */

class nsIDocShellLoadInfo; /* forward declaration */

class nsIDocShell; /* forward declaration */


/* starting interface:    nsIMsgMailNewsUrl */
#define NS_IMSGMAILNEWSURL_IID_STR "995455ba-5bb4-4643-8d70-2b877a2e1320"

#define NS_IMSGMAILNEWSURL_IID \
  {0x995455ba, 0x5bb4, 0x4643, \
    { 0x8d, 0x70, 0x2b, 0x87, 0x7a, 0x2e, 0x13, 0x20 }}

class NS_NO_VTABLE nsIMsgMailNewsUrl : public nsIURL {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGMAILNEWSURL_IID)

  /* [noscript,nostdcall,notxpcom] nsresult setFileNameInternal (in ACString aFileName); */
  virtual nsresult SetFileNameInternal(const nsACString& aFileName) = 0;

  /* [noscript,nostdcall,notxpcom] nsresult setSpecInternal (in ACString aSpec); */
  virtual nsresult SetSpecInternal(const nsACString& aSpec) = 0;

  /* [noscript,nostdcall,notxpcom] nsresult setPortInternal (in long aPort); */
  virtual nsresult SetPortInternal(int32_t aPort) = 0;

  /* [noscript,nostdcall,notxpcom] nsresult setQueryInternal (in ACString aQuery); */
  virtual nsresult SetQueryInternal(const nsACString& aQuery) = 0;

  /* [noscript,nostdcall,notxpcom] nsresult setUsernameInternal (in ACString aUsername); */
  virtual nsresult SetUsernameInternal(const nsACString& aUsername) = 0;

  /* void RegisterListener (in nsIUrlListener aUrlListener); */
  NS_IMETHOD RegisterListener(nsIUrlListener *aUrlListener) = 0;

  /* void UnRegisterListener (in nsIUrlListener aUrlListener); */
  NS_IMETHOD UnRegisterListener(nsIUrlListener *aUrlListener) = 0;

  /* readonly attribute nsIURI baseURI; */
  NS_IMETHOD GetBaseURI(nsIURI **aBaseURI) = 0;

  /* void SetUrlState (in boolean runningUrl, in nsresult aStatusCode); */
  NS_IMETHOD SetUrlState(bool runningUrl, nsresult aStatusCode) = 0;

  /* void GetUrlState (out boolean runningUrl); */
  NS_IMETHOD GetUrlState(bool *runningUrl) = 0;

  enum {
    IGNORE_REF = 0U,
    HONOR_REF = 1U,
    REPLACE_REF = 2U
  };

  /* nsIURI cloneInternal (in unsigned long aRefHandlingMode, in AUTF8String aNewRef); */
  NS_IMETHOD CloneInternal(uint32_t aRefHandlingMode, const nsACString& aNewRef, nsIURI **_retval) = 0;

  /* readonly attribute nsIMsgIncomingServer server; */
  NS_IMETHOD GetServer(nsIMsgIncomingServer **aServer) = 0;

  /* attribute nsIMsgFolder folder; */
  NS_IMETHOD GetFolder(nsIMsgFolder **aFolder) = 0;
  NS_IMETHOD SetFolder(nsIMsgFolder *aFolder) = 0;

  /* attribute nsIMsgStatusFeedback statusFeedback; */
  NS_IMETHOD GetStatusFeedback(nsIMsgStatusFeedback **aStatusFeedback) = 0;
  NS_IMETHOD SetStatusFeedback(nsIMsgStatusFeedback *aStatusFeedback) = 0;

  /* attribute long long maxProgress; */
  NS_IMETHOD GetMaxProgress(int64_t *aMaxProgress) = 0;
  NS_IMETHOD SetMaxProgress(int64_t aMaxProgress) = 0;

  /* attribute nsIMsgWindow msgWindow; */
  NS_IMETHOD GetMsgWindow(nsIMsgWindow **aMsgWindow) = 0;
  NS_IMETHOD SetMsgWindow(nsIMsgWindow *aMsgWindow) = 0;

  /* attribute nsIMimeHeaders mimeHeaders; */
  NS_IMETHOD GetMimeHeaders(nsIMimeHeaders **aMimeHeaders) = 0;
  NS_IMETHOD SetMimeHeaders(nsIMimeHeaders *aMimeHeaders) = 0;

  /* readonly attribute nsILoadGroup loadGroup; */
  NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) = 0;

  /* attribute nsIMsgSearchSession searchSession; */
  NS_IMETHOD GetSearchSession(nsIMsgSearchSession **aSearchSession) = 0;
  NS_IMETHOD SetSearchSession(nsIMsgSearchSession *aSearchSession) = 0;

  /* attribute boolean updatingFolder; */
  NS_IMETHOD GetUpdatingFolder(bool *aUpdatingFolder) = 0;
  NS_IMETHOD SetUpdatingFolder(bool aUpdatingFolder) = 0;

  /* attribute boolean msgIsInLocalCache; */
  NS_IMETHOD GetMsgIsInLocalCache(bool *aMsgIsInLocalCache) = 0;
  NS_IMETHOD SetMsgIsInLocalCache(bool aMsgIsInLocalCache) = 0;

  /* attribute boolean suppressErrorMsgs; */
  NS_IMETHOD GetSuppressErrorMsgs(bool *aSuppressErrorMsgs) = 0;
  NS_IMETHOD SetSuppressErrorMsgs(bool aSuppressErrorMsgs) = 0;

  /* attribute nsICacheEntry memCacheEntry; */
  NS_IMETHOD GetMemCacheEntry(nsICacheEntry **aMemCacheEntry) = 0;
  NS_IMETHOD SetMemCacheEntry(nsICacheEntry *aMemCacheEntry) = 0;

  enum {
    eCopy = 0U,
    eMove = 1U,
    eDisplay = 2U
  };

  /* boolean IsUrlType (in unsigned long type); */
  NS_IMETHOD IsUrlType(uint32_t type, bool *_retval) = 0;

  /* nsIStreamListener getSaveAsListener (in boolean addDummyEnvelope, in nsIFile aFile); */
  NS_IMETHOD GetSaveAsListener(bool addDummyEnvelope, nsIFile *aFile, nsIStreamListener **_retval) = 0;

  /* attribute nsIMsgHeaderSink msgHeaderSink; */
  NS_IMETHOD GetMsgHeaderSink(nsIMsgHeaderSink **aMsgHeaderSink) = 0;
  NS_IMETHOD SetMsgHeaderSink(nsIMsgHeaderSink *aMsgHeaderSink) = 0;

  /* readonly attribute boolean isMessageUri; */
  NS_IMETHOD GetIsMessageUri(bool *aIsMessageUri) = 0;

  /* void loadURI (in nsIDocShell docshell, in nsIDocShellLoadInfo loadInfo, in unsigned long aLoadFlags); */
  NS_IMETHOD LoadURI(nsIDocShell *docshell, nsIDocShellLoadInfo *loadInfo, uint32_t aLoadFlags) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgMailNewsUrl, NS_IMSGMAILNEWSURL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGMAILNEWSURL \
  virtual nsresult SetFileNameInternal(const nsACString& aFileName) override; \
  virtual nsresult SetSpecInternal(const nsACString& aSpec) override; \
  virtual nsresult SetPortInternal(int32_t aPort) override; \
  virtual nsresult SetQueryInternal(const nsACString& aQuery) override; \
  virtual nsresult SetUsernameInternal(const nsACString& aUsername) override; \
  NS_IMETHOD RegisterListener(nsIUrlListener *aUrlListener) override; \
  NS_IMETHOD UnRegisterListener(nsIUrlListener *aUrlListener) override; \
  NS_IMETHOD GetBaseURI(nsIURI **aBaseURI) override; \
  NS_IMETHOD SetUrlState(bool runningUrl, nsresult aStatusCode) override; \
  NS_IMETHOD GetUrlState(bool *runningUrl) override; \
  NS_IMETHOD CloneInternal(uint32_t aRefHandlingMode, const nsACString& aNewRef, nsIURI **_retval) override; \
  NS_IMETHOD GetServer(nsIMsgIncomingServer **aServer) override; \
  NS_IMETHOD GetFolder(nsIMsgFolder **aFolder) override; \
  NS_IMETHOD SetFolder(nsIMsgFolder *aFolder) override; \
  NS_IMETHOD GetStatusFeedback(nsIMsgStatusFeedback **aStatusFeedback) override; \
  NS_IMETHOD SetStatusFeedback(nsIMsgStatusFeedback *aStatusFeedback) override; \
  NS_IMETHOD GetMaxProgress(int64_t *aMaxProgress) override; \
  NS_IMETHOD SetMaxProgress(int64_t aMaxProgress) override; \
  NS_IMETHOD GetMsgWindow(nsIMsgWindow **aMsgWindow) override; \
  NS_IMETHOD SetMsgWindow(nsIMsgWindow *aMsgWindow) override; \
  NS_IMETHOD GetMimeHeaders(nsIMimeHeaders **aMimeHeaders) override; \
  NS_IMETHOD SetMimeHeaders(nsIMimeHeaders *aMimeHeaders) override; \
  NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override; \
  NS_IMETHOD GetSearchSession(nsIMsgSearchSession **aSearchSession) override; \
  NS_IMETHOD SetSearchSession(nsIMsgSearchSession *aSearchSession) override; \
  NS_IMETHOD GetUpdatingFolder(bool *aUpdatingFolder) override; \
  NS_IMETHOD SetUpdatingFolder(bool aUpdatingFolder) override; \
  NS_IMETHOD GetMsgIsInLocalCache(bool *aMsgIsInLocalCache) override; \
  NS_IMETHOD SetMsgIsInLocalCache(bool aMsgIsInLocalCache) override; \
  NS_IMETHOD GetSuppressErrorMsgs(bool *aSuppressErrorMsgs) override; \
  NS_IMETHOD SetSuppressErrorMsgs(bool aSuppressErrorMsgs) override; \
  NS_IMETHOD GetMemCacheEntry(nsICacheEntry **aMemCacheEntry) override; \
  NS_IMETHOD SetMemCacheEntry(nsICacheEntry *aMemCacheEntry) override; \
  NS_IMETHOD IsUrlType(uint32_t type, bool *_retval) override; \
  NS_IMETHOD GetSaveAsListener(bool addDummyEnvelope, nsIFile *aFile, nsIStreamListener **_retval) override; \
  NS_IMETHOD GetMsgHeaderSink(nsIMsgHeaderSink **aMsgHeaderSink) override; \
  NS_IMETHOD SetMsgHeaderSink(nsIMsgHeaderSink *aMsgHeaderSink) override; \
  NS_IMETHOD GetIsMessageUri(bool *aIsMessageUri) override; \
  NS_IMETHOD LoadURI(nsIDocShell *docshell, nsIDocShellLoadInfo *loadInfo, uint32_t aLoadFlags) 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_NSIMSGMAILNEWSURL \
  nsresult SetFileNameInternal(const nsACString& aFileName); \
  nsresult SetSpecInternal(const nsACString& aSpec); \
  nsresult SetPortInternal(int32_t aPort); \
  nsresult SetQueryInternal(const nsACString& aQuery); \
  nsresult SetUsernameInternal(const nsACString& aUsername); \
  nsresult RegisterListener(nsIUrlListener *aUrlListener); \
  nsresult UnRegisterListener(nsIUrlListener *aUrlListener); \
  nsresult GetBaseURI(nsIURI **aBaseURI); \
  nsresult SetUrlState(bool runningUrl, nsresult aStatusCode); \
  nsresult GetUrlState(bool *runningUrl); \
  nsresult CloneInternal(uint32_t aRefHandlingMode, const nsACString& aNewRef, nsIURI **_retval); \
  nsresult GetServer(nsIMsgIncomingServer **aServer); \
  nsresult GetFolder(nsIMsgFolder **aFolder); \
  nsresult SetFolder(nsIMsgFolder *aFolder); \
  nsresult GetStatusFeedback(nsIMsgStatusFeedback **aStatusFeedback); \
  nsresult SetStatusFeedback(nsIMsgStatusFeedback *aStatusFeedback); \
  nsresult GetMaxProgress(int64_t *aMaxProgress); \
  nsresult SetMaxProgress(int64_t aMaxProgress); \
  nsresult GetMsgWindow(nsIMsgWindow **aMsgWindow); \
  nsresult SetMsgWindow(nsIMsgWindow *aMsgWindow); \
  nsresult GetMimeHeaders(nsIMimeHeaders **aMimeHeaders); \
  nsresult SetMimeHeaders(nsIMimeHeaders *aMimeHeaders); \
  nsresult GetLoadGroup(nsILoadGroup **aLoadGroup); \
  nsresult GetSearchSession(nsIMsgSearchSession **aSearchSession); \
  nsresult SetSearchSession(nsIMsgSearchSession *aSearchSession); \
  nsresult GetUpdatingFolder(bool *aUpdatingFolder); \
  nsresult SetUpdatingFolder(bool aUpdatingFolder); \
  nsresult GetMsgIsInLocalCache(bool *aMsgIsInLocalCache); \
  nsresult SetMsgIsInLocalCache(bool aMsgIsInLocalCache); \
  nsresult GetSuppressErrorMsgs(bool *aSuppressErrorMsgs); \
  nsresult SetSuppressErrorMsgs(bool aSuppressErrorMsgs); \
  nsresult GetMemCacheEntry(nsICacheEntry **aMemCacheEntry); \
  nsresult SetMemCacheEntry(nsICacheEntry *aMemCacheEntry); \
  nsresult IsUrlType(uint32_t type, bool *_retval); \
  nsresult GetSaveAsListener(bool addDummyEnvelope, nsIFile *aFile, nsIStreamListener **_retval); \
  nsresult GetMsgHeaderSink(nsIMsgHeaderSink **aMsgHeaderSink); \
  nsresult SetMsgHeaderSink(nsIMsgHeaderSink *aMsgHeaderSink); \
  nsresult GetIsMessageUri(bool *aIsMessageUri); \
  nsresult LoadURI(nsIDocShell *docshell, nsIDocShellLoadInfo *loadInfo, uint32_t aLoadFlags); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGMAILNEWSURL(_to) \
  virtual nsresult SetFileNameInternal(const nsACString& aFileName) override { return _to SetFileNameInternal(aFileName); } \
  virtual nsresult SetSpecInternal(const nsACString& aSpec) override { return _to SetSpecInternal(aSpec); } \
  virtual nsresult SetPortInternal(int32_t aPort) override { return _to SetPortInternal(aPort); } \
  virtual nsresult SetQueryInternal(const nsACString& aQuery) override { return _to SetQueryInternal(aQuery); } \
  virtual nsresult SetUsernameInternal(const nsACString& aUsername) override { return _to SetUsernameInternal(aUsername); } \
  NS_IMETHOD RegisterListener(nsIUrlListener *aUrlListener) override { return _to RegisterListener(aUrlListener); } \
  NS_IMETHOD UnRegisterListener(nsIUrlListener *aUrlListener) override { return _to UnRegisterListener(aUrlListener); } \
  NS_IMETHOD GetBaseURI(nsIURI **aBaseURI) override { return _to GetBaseURI(aBaseURI); } \
  NS_IMETHOD SetUrlState(bool runningUrl, nsresult aStatusCode) override { return _to SetUrlState(runningUrl, aStatusCode); } \
  NS_IMETHOD GetUrlState(bool *runningUrl) override { return _to GetUrlState(runningUrl); } \
  NS_IMETHOD CloneInternal(uint32_t aRefHandlingMode, const nsACString& aNewRef, nsIURI **_retval) override { return _to CloneInternal(aRefHandlingMode, aNewRef, _retval); } \
  NS_IMETHOD GetServer(nsIMsgIncomingServer **aServer) override { return _to GetServer(aServer); } \
  NS_IMETHOD GetFolder(nsIMsgFolder **aFolder) override { return _to GetFolder(aFolder); } \
  NS_IMETHOD SetFolder(nsIMsgFolder *aFolder) override { return _to SetFolder(aFolder); } \
  NS_IMETHOD GetStatusFeedback(nsIMsgStatusFeedback **aStatusFeedback) override { return _to GetStatusFeedback(aStatusFeedback); } \
  NS_IMETHOD SetStatusFeedback(nsIMsgStatusFeedback *aStatusFeedback) override { return _to SetStatusFeedback(aStatusFeedback); } \
  NS_IMETHOD GetMaxProgress(int64_t *aMaxProgress) override { return _to GetMaxProgress(aMaxProgress); } \
  NS_IMETHOD SetMaxProgress(int64_t aMaxProgress) override { return _to SetMaxProgress(aMaxProgress); } \
  NS_IMETHOD GetMsgWindow(nsIMsgWindow **aMsgWindow) override { return _to GetMsgWindow(aMsgWindow); } \
  NS_IMETHOD SetMsgWindow(nsIMsgWindow *aMsgWindow) override { return _to SetMsgWindow(aMsgWindow); } \
  NS_IMETHOD GetMimeHeaders(nsIMimeHeaders **aMimeHeaders) override { return _to GetMimeHeaders(aMimeHeaders); } \
  NS_IMETHOD SetMimeHeaders(nsIMimeHeaders *aMimeHeaders) override { return _to SetMimeHeaders(aMimeHeaders); } \
  NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override { return _to GetLoadGroup(aLoadGroup); } \
  NS_IMETHOD GetSearchSession(nsIMsgSearchSession **aSearchSession) override { return _to GetSearchSession(aSearchSession); } \
  NS_IMETHOD SetSearchSession(nsIMsgSearchSession *aSearchSession) override { return _to SetSearchSession(aSearchSession); } \
  NS_IMETHOD GetUpdatingFolder(bool *aUpdatingFolder) override { return _to GetUpdatingFolder(aUpdatingFolder); } \
  NS_IMETHOD SetUpdatingFolder(bool aUpdatingFolder) override { return _to SetUpdatingFolder(aUpdatingFolder); } \
  NS_IMETHOD GetMsgIsInLocalCache(bool *aMsgIsInLocalCache) override { return _to GetMsgIsInLocalCache(aMsgIsInLocalCache); } \
  NS_IMETHOD SetMsgIsInLocalCache(bool aMsgIsInLocalCache) override { return _to SetMsgIsInLocalCache(aMsgIsInLocalCache); } \
  NS_IMETHOD GetSuppressErrorMsgs(bool *aSuppressErrorMsgs) override { return _to GetSuppressErrorMsgs(aSuppressErrorMsgs); } \
  NS_IMETHOD SetSuppressErrorMsgs(bool aSuppressErrorMsgs) override { return _to SetSuppressErrorMsgs(aSuppressErrorMsgs); } \
  NS_IMETHOD GetMemCacheEntry(nsICacheEntry **aMemCacheEntry) override { return _to GetMemCacheEntry(aMemCacheEntry); } \
  NS_IMETHOD SetMemCacheEntry(nsICacheEntry *aMemCacheEntry) override { return _to SetMemCacheEntry(aMemCacheEntry); } \
  NS_IMETHOD IsUrlType(uint32_t type, bool *_retval) override { return _to IsUrlType(type, _retval); } \
  NS_IMETHOD GetSaveAsListener(bool addDummyEnvelope, nsIFile *aFile, nsIStreamListener **_retval) override { return _to GetSaveAsListener(addDummyEnvelope, aFile, _retval); } \
  NS_IMETHOD GetMsgHeaderSink(nsIMsgHeaderSink **aMsgHeaderSink) override { return _to GetMsgHeaderSink(aMsgHeaderSink); } \
  NS_IMETHOD SetMsgHeaderSink(nsIMsgHeaderSink *aMsgHeaderSink) override { return _to SetMsgHeaderSink(aMsgHeaderSink); } \
  NS_IMETHOD GetIsMessageUri(bool *aIsMessageUri) override { return _to GetIsMessageUri(aIsMessageUri); } \
  NS_IMETHOD LoadURI(nsIDocShell *docshell, nsIDocShellLoadInfo *loadInfo, uint32_t aLoadFlags) override { return _to LoadURI(docshell, loadInfo, aLoadFlags); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGMAILNEWSURL(_to) \
  virtual nsresult SetFileNameInternal(const nsACString& aFileName) override; \
  virtual nsresult SetSpecInternal(const nsACString& aSpec) override; \
  virtual nsresult SetPortInternal(int32_t aPort) override; \
  virtual nsresult SetQueryInternal(const nsACString& aQuery) override; \
  virtual nsresult SetUsernameInternal(const nsACString& aUsername) override; \
  NS_IMETHOD RegisterListener(nsIUrlListener *aUrlListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterListener(aUrlListener); } \
  NS_IMETHOD UnRegisterListener(nsIUrlListener *aUrlListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnRegisterListener(aUrlListener); } \
  NS_IMETHOD GetBaseURI(nsIURI **aBaseURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseURI(aBaseURI); } \
  NS_IMETHOD SetUrlState(bool runningUrl, nsresult aStatusCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUrlState(runningUrl, aStatusCode); } \
  NS_IMETHOD GetUrlState(bool *runningUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrlState(runningUrl); } \
  NS_IMETHOD CloneInternal(uint32_t aRefHandlingMode, const nsACString& aNewRef, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneInternal(aRefHandlingMode, aNewRef, _retval); } \
  NS_IMETHOD GetServer(nsIMsgIncomingServer **aServer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServer(aServer); } \
  NS_IMETHOD GetFolder(nsIMsgFolder **aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolder(aFolder); } \
  NS_IMETHOD SetFolder(nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolder(aFolder); } \
  NS_IMETHOD GetStatusFeedback(nsIMsgStatusFeedback **aStatusFeedback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusFeedback(aStatusFeedback); } \
  NS_IMETHOD SetStatusFeedback(nsIMsgStatusFeedback *aStatusFeedback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusFeedback(aStatusFeedback); } \
  NS_IMETHOD GetMaxProgress(int64_t *aMaxProgress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxProgress(aMaxProgress); } \
  NS_IMETHOD SetMaxProgress(int64_t aMaxProgress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxProgress(aMaxProgress); } \
  NS_IMETHOD GetMsgWindow(nsIMsgWindow **aMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgWindow(aMsgWindow); } \
  NS_IMETHOD SetMsgWindow(nsIMsgWindow *aMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgWindow(aMsgWindow); } \
  NS_IMETHOD GetMimeHeaders(nsIMimeHeaders **aMimeHeaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeHeaders(aMimeHeaders); } \
  NS_IMETHOD SetMimeHeaders(nsIMimeHeaders *aMimeHeaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMimeHeaders(aMimeHeaders); } \
  NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadGroup(aLoadGroup); } \
  NS_IMETHOD GetSearchSession(nsIMsgSearchSession **aSearchSession) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchSession(aSearchSession); } \
  NS_IMETHOD SetSearchSession(nsIMsgSearchSession *aSearchSession) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchSession(aSearchSession); } \
  NS_IMETHOD GetUpdatingFolder(bool *aUpdatingFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdatingFolder(aUpdatingFolder); } \
  NS_IMETHOD SetUpdatingFolder(bool aUpdatingFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUpdatingFolder(aUpdatingFolder); } \
  NS_IMETHOD GetMsgIsInLocalCache(bool *aMsgIsInLocalCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgIsInLocalCache(aMsgIsInLocalCache); } \
  NS_IMETHOD SetMsgIsInLocalCache(bool aMsgIsInLocalCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgIsInLocalCache(aMsgIsInLocalCache); } \
  NS_IMETHOD GetSuppressErrorMsgs(bool *aSuppressErrorMsgs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuppressErrorMsgs(aSuppressErrorMsgs); } \
  NS_IMETHOD SetSuppressErrorMsgs(bool aSuppressErrorMsgs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSuppressErrorMsgs(aSuppressErrorMsgs); } \
  NS_IMETHOD GetMemCacheEntry(nsICacheEntry **aMemCacheEntry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMemCacheEntry(aMemCacheEntry); } \
  NS_IMETHOD SetMemCacheEntry(nsICacheEntry *aMemCacheEntry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMemCacheEntry(aMemCacheEntry); } \
  NS_IMETHOD IsUrlType(uint32_t type, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsUrlType(type, _retval); } \
  NS_IMETHOD GetSaveAsListener(bool addDummyEnvelope, nsIFile *aFile, nsIStreamListener **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSaveAsListener(addDummyEnvelope, aFile, _retval); } \
  NS_IMETHOD GetMsgHeaderSink(nsIMsgHeaderSink **aMsgHeaderSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgHeaderSink(aMsgHeaderSink); } \
  NS_IMETHOD SetMsgHeaderSink(nsIMsgHeaderSink *aMsgHeaderSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgHeaderSink(aMsgHeaderSink); } \
  NS_IMETHOD GetIsMessageUri(bool *aIsMessageUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMessageUri(aIsMessageUri); } \
  NS_IMETHOD LoadURI(nsIDocShell *docshell, nsIDocShellLoadInfo *loadInfo, uint32_t aLoadFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURI(docshell, loadInfo, aLoadFlags); } 


/* starting interface:    nsIMsgMessageUrl */
#define NS_IMSGMESSAGEURL_IID_STR "388a37ec-2e1a-4a4f-9d8b-189bedf1bda2"

#define NS_IMSGMESSAGEURL_IID \
  {0x388a37ec, 0x2e1a, 0x4a4f, \
    { 0x9d, 0x8b, 0x18, 0x9b, 0xed, 0xf1, 0xbd, 0xa2 }}

class NS_NO_VTABLE nsIMsgMessageUrl : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGMESSAGEURL_IID)

  /* attribute string uri; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUri(char * *aUri) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUri(const char * aUri) = 0;

  /* attribute nsIFile messageFile; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageFile(nsIFile **aMessageFile) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageFile(nsIFile *aMessageFile) = 0;

  /* attribute boolean AddDummyEnvelope; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAddDummyEnvelope(bool *aAddDummyEnvelope) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAddDummyEnvelope(bool aAddDummyEnvelope) = 0;

  /* attribute boolean canonicalLineEnding; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanonicalLineEnding(bool *aCanonicalLineEnding) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCanonicalLineEnding(bool aCanonicalLineEnding) = 0;

  /* attribute string originalSpec; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOriginalSpec(char * *aOriginalSpec) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOriginalSpec(const char * aOriginalSpec) = 0;

  /* readonly attribute AUTF8String principalSpec; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrincipalSpec(nsACString& aPrincipalSpec) = 0;

  /* attribute nsIMsgDBHdr messageHeader; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageHeader(nsIMsgDBHdr **aMessageHeader) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageHeader(nsIMsgDBHdr *aMessageHeader) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgMessageUrl, NS_IMSGMESSAGEURL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGMESSAGEURL \
  NS_IMETHOD GetUri(char * *aUri) override; \
  NS_IMETHOD SetUri(const char * aUri) override; \
  NS_IMETHOD GetMessageFile(nsIFile **aMessageFile) override; \
  NS_IMETHOD SetMessageFile(nsIFile *aMessageFile) override; \
  NS_IMETHOD GetAddDummyEnvelope(bool *aAddDummyEnvelope) override; \
  NS_IMETHOD SetAddDummyEnvelope(bool aAddDummyEnvelope) override; \
  NS_IMETHOD GetCanonicalLineEnding(bool *aCanonicalLineEnding) override; \
  NS_IMETHOD SetCanonicalLineEnding(bool aCanonicalLineEnding) override; \
  NS_IMETHOD GetOriginalSpec(char * *aOriginalSpec) override; \
  NS_IMETHOD SetOriginalSpec(const char * aOriginalSpec) override; \
  NS_IMETHOD GetPrincipalSpec(nsACString& aPrincipalSpec) override; \
  NS_IMETHOD GetMessageHeader(nsIMsgDBHdr **aMessageHeader) override; \
  NS_IMETHOD SetMessageHeader(nsIMsgDBHdr *aMessageHeader) 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_NSIMSGMESSAGEURL \
  nsresult GetUri(char * *aUri); \
  nsresult SetUri(const char * aUri); \
  nsresult GetMessageFile(nsIFile **aMessageFile); \
  nsresult SetMessageFile(nsIFile *aMessageFile); \
  nsresult GetAddDummyEnvelope(bool *aAddDummyEnvelope); \
  nsresult SetAddDummyEnvelope(bool aAddDummyEnvelope); \
  nsresult GetCanonicalLineEnding(bool *aCanonicalLineEnding); \
  nsresult SetCanonicalLineEnding(bool aCanonicalLineEnding); \
  nsresult GetOriginalSpec(char * *aOriginalSpec); \
  nsresult SetOriginalSpec(const char * aOriginalSpec); \
  nsresult GetPrincipalSpec(nsACString& aPrincipalSpec); \
  nsresult GetMessageHeader(nsIMsgDBHdr **aMessageHeader); \
  nsresult SetMessageHeader(nsIMsgDBHdr *aMessageHeader); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGMESSAGEURL(_to) \
  NS_IMETHOD GetUri(char * *aUri) override { return _to GetUri(aUri); } \
  NS_IMETHOD SetUri(const char * aUri) override { return _to SetUri(aUri); } \
  NS_IMETHOD GetMessageFile(nsIFile **aMessageFile) override { return _to GetMessageFile(aMessageFile); } \
  NS_IMETHOD SetMessageFile(nsIFile *aMessageFile) override { return _to SetMessageFile(aMessageFile); } \
  NS_IMETHOD GetAddDummyEnvelope(bool *aAddDummyEnvelope) override { return _to GetAddDummyEnvelope(aAddDummyEnvelope); } \
  NS_IMETHOD SetAddDummyEnvelope(bool aAddDummyEnvelope) override { return _to SetAddDummyEnvelope(aAddDummyEnvelope); } \
  NS_IMETHOD GetCanonicalLineEnding(bool *aCanonicalLineEnding) override { return _to GetCanonicalLineEnding(aCanonicalLineEnding); } \
  NS_IMETHOD SetCanonicalLineEnding(bool aCanonicalLineEnding) override { return _to SetCanonicalLineEnding(aCanonicalLineEnding); } \
  NS_IMETHOD GetOriginalSpec(char * *aOriginalSpec) override { return _to GetOriginalSpec(aOriginalSpec); } \
  NS_IMETHOD SetOriginalSpec(const char * aOriginalSpec) override { return _to SetOriginalSpec(aOriginalSpec); } \
  NS_IMETHOD GetPrincipalSpec(nsACString& aPrincipalSpec) override { return _to GetPrincipalSpec(aPrincipalSpec); } \
  NS_IMETHOD GetMessageHeader(nsIMsgDBHdr **aMessageHeader) override { return _to GetMessageHeader(aMessageHeader); } \
  NS_IMETHOD SetMessageHeader(nsIMsgDBHdr *aMessageHeader) override { return _to SetMessageHeader(aMessageHeader); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGMESSAGEURL(_to) \
  NS_IMETHOD GetUri(char * *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
  NS_IMETHOD SetUri(const char * aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUri(aUri); } \
  NS_IMETHOD GetMessageFile(nsIFile **aMessageFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageFile(aMessageFile); } \
  NS_IMETHOD SetMessageFile(nsIFile *aMessageFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageFile(aMessageFile); } \
  NS_IMETHOD GetAddDummyEnvelope(bool *aAddDummyEnvelope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddDummyEnvelope(aAddDummyEnvelope); } \
  NS_IMETHOD SetAddDummyEnvelope(bool aAddDummyEnvelope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAddDummyEnvelope(aAddDummyEnvelope); } \
  NS_IMETHOD GetCanonicalLineEnding(bool *aCanonicalLineEnding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanonicalLineEnding(aCanonicalLineEnding); } \
  NS_IMETHOD SetCanonicalLineEnding(bool aCanonicalLineEnding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanonicalLineEnding(aCanonicalLineEnding); } \
  NS_IMETHOD GetOriginalSpec(char * *aOriginalSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalSpec(aOriginalSpec); } \
  NS_IMETHOD SetOriginalSpec(const char * aOriginalSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginalSpec(aOriginalSpec); } \
  NS_IMETHOD GetPrincipalSpec(nsACString& aPrincipalSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipalSpec(aPrincipalSpec); } \
  NS_IMETHOD GetMessageHeader(nsIMsgDBHdr **aMessageHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageHeader(aMessageHeader); } \
  NS_IMETHOD SetMessageHeader(nsIMsgDBHdr *aMessageHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageHeader(aMessageHeader); } 


/* starting interface:    nsIMsgI18NUrl */
#define NS_IMSGI18NURL_IID_STR "d71e0785-2862-11d4-98c1-001083010e9b"

#define NS_IMSGI18NURL_IID \
  {0xd71e0785, 0x2862, 0x11d4, \
    { 0x98, 0xc1, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b }}

class NS_NO_VTABLE nsIMsgI18NUrl : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGI18NURL_IID)

  /* readonly attribute string folderCharset; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderCharset(char * *aFolderCharset) = 0;

  /* readonly attribute boolean folderCharsetOverride; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderCharsetOverride(bool *aFolderCharsetOverride) = 0;

  /* attribute string charsetOverRide; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCharsetOverRide(char * *aCharsetOverRide) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCharsetOverRide(const char * aCharsetOverRide) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgI18NUrl, NS_IMSGI18NURL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGI18NURL \
  NS_IMETHOD GetFolderCharset(char * *aFolderCharset) override; \
  NS_IMETHOD GetFolderCharsetOverride(bool *aFolderCharsetOverride) override; \
  NS_IMETHOD GetCharsetOverRide(char * *aCharsetOverRide) override; \
  NS_IMETHOD SetCharsetOverRide(const char * aCharsetOverRide) 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_NSIMSGI18NURL \
  nsresult GetFolderCharset(char * *aFolderCharset); \
  nsresult GetFolderCharsetOverride(bool *aFolderCharsetOverride); \
  nsresult GetCharsetOverRide(char * *aCharsetOverRide); \
  nsresult SetCharsetOverRide(const char * aCharsetOverRide); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGI18NURL(_to) \
  NS_IMETHOD GetFolderCharset(char * *aFolderCharset) override { return _to GetFolderCharset(aFolderCharset); } \
  NS_IMETHOD GetFolderCharsetOverride(bool *aFolderCharsetOverride) override { return _to GetFolderCharsetOverride(aFolderCharsetOverride); } \
  NS_IMETHOD GetCharsetOverRide(char * *aCharsetOverRide) override { return _to GetCharsetOverRide(aCharsetOverRide); } \
  NS_IMETHOD SetCharsetOverRide(const char * aCharsetOverRide) override { return _to SetCharsetOverRide(aCharsetOverRide); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGI18NURL(_to) \
  NS_IMETHOD GetFolderCharset(char * *aFolderCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderCharset(aFolderCharset); } \
  NS_IMETHOD GetFolderCharsetOverride(bool *aFolderCharsetOverride) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderCharsetOverride(aFolderCharsetOverride); } \
  NS_IMETHOD GetCharsetOverRide(char * *aCharsetOverRide) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetOverRide(aCharsetOverRide); } \
  NS_IMETHOD SetCharsetOverRide(const char * aCharsetOverRide) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharsetOverRide(aCharsetOverRide); } 


#endif /* __gen_nsIMsgMailNewsUrl_h__ */