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 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 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mail/components/activity/nsIActivity.idl
 */

#ifndef __gen_nsIActivity_h__
#define __gen_nsIActivity_h__


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

#ifndef __gen_nsISupportsPrimitives_h__
#include "nsISupportsPrimitives.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 nsIActivityListener; /* forward declaration */

class nsIActivity; /* forward declaration */

class nsIActivityProcess; /* forward declaration */

class nsIActivityEvent; /* forward declaration */

class nsIActivityWarning; /* forward declaration */

class nsIVariant; /* forward declaration */

class nsISupportsPRTime; /* forward declaration */


/* starting interface:    nsIActivityRecoveryHandler */
#define NS_IACTIVITYRECOVERYHANDLER_IID_STR "30e0a76f-880a-4093-8f3c-af2239977a3d"

#define NS_IACTIVITYRECOVERYHANDLER_IID \
  {0x30e0a76f, 0x880a, 0x4093, \
    { 0x8f, 0x3c, 0xaf, 0x22, 0x39, 0x97, 0x7a, 0x3d }}

class NS_NO_VTABLE nsIActivityRecoveryHandler : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYRECOVERYHANDLER_IID)

  /* nsresult recover (in nsIActivityWarning aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Recover(nsIActivityWarning *aActivity, nsresult *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityRecoveryHandler, NS_IACTIVITYRECOVERYHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYRECOVERYHANDLER \
  NS_IMETHOD Recover(nsIActivityWarning *aActivity, nsresult *_retval) 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_NSIACTIVITYRECOVERYHANDLER \
  nsresult Recover(nsIActivityWarning *aActivity, nsresult *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYRECOVERYHANDLER(_to) \
  NS_IMETHOD Recover(nsIActivityWarning *aActivity, nsresult *_retval) override { return _to Recover(aActivity, _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_NSIACTIVITYRECOVERYHANDLER(_to) \
  NS_IMETHOD Recover(nsIActivityWarning *aActivity, nsresult *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Recover(aActivity, _retval); } 


/* starting interface:    nsIActivityCancelHandler */
#define NS_IACTIVITYCANCELHANDLER_IID_STR "35ee2461-70db-4b3a-90d0-7a68c856e911"

#define NS_IACTIVITYCANCELHANDLER_IID \
  {0x35ee2461, 0x70db, 0x4b3a, \
    { 0x90, 0xd0, 0x7a, 0x68, 0xc8, 0x56, 0xe9, 0x11 }}

class NS_NO_VTABLE nsIActivityCancelHandler : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYCANCELHANDLER_IID)

  /* nsresult cancel (in nsIActivityProcess aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Cancel(nsIActivityProcess *aActivity, nsresult *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityCancelHandler, NS_IACTIVITYCANCELHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYCANCELHANDLER \
  NS_IMETHOD Cancel(nsIActivityProcess *aActivity, nsresult *_retval) 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_NSIACTIVITYCANCELHANDLER \
  nsresult Cancel(nsIActivityProcess *aActivity, nsresult *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYCANCELHANDLER(_to) \
  NS_IMETHOD Cancel(nsIActivityProcess *aActivity, nsresult *_retval) override { return _to Cancel(aActivity, _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_NSIACTIVITYCANCELHANDLER(_to) \
  NS_IMETHOD Cancel(nsIActivityProcess *aActivity, nsresult *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(aActivity, _retval); } 


/* starting interface:    nsIActivityPauseHandler */
#define NS_IACTIVITYPAUSEHANDLER_IID_STR "9eee22bf-5378-460e-83a7-781cdcc9050b"

#define NS_IACTIVITYPAUSEHANDLER_IID \
  {0x9eee22bf, 0x5378, 0x460e, \
    { 0x83, 0xa7, 0x78, 0x1c, 0xdc, 0xc9, 0x05, 0x0b }}

class NS_NO_VTABLE nsIActivityPauseHandler : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYPAUSEHANDLER_IID)

  /* nsresult pause (in nsIActivityProcess aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Pause(nsIActivityProcess *aActivity, nsresult *_retval) = 0;

  /* nsresult resume (in nsIActivityProcess aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Resume(nsIActivityProcess *aActivity, nsresult *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityPauseHandler, NS_IACTIVITYPAUSEHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYPAUSEHANDLER \
  NS_IMETHOD Pause(nsIActivityProcess *aActivity, nsresult *_retval) override; \
  NS_IMETHOD Resume(nsIActivityProcess *aActivity, nsresult *_retval) 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_NSIACTIVITYPAUSEHANDLER \
  nsresult Pause(nsIActivityProcess *aActivity, nsresult *_retval); \
  nsresult Resume(nsIActivityProcess *aActivity, nsresult *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYPAUSEHANDLER(_to) \
  NS_IMETHOD Pause(nsIActivityProcess *aActivity, nsresult *_retval) override { return _to Pause(aActivity, _retval); } \
  NS_IMETHOD Resume(nsIActivityProcess *aActivity, nsresult *_retval) override { return _to Resume(aActivity, _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_NSIACTIVITYPAUSEHANDLER(_to) \
  NS_IMETHOD Pause(nsIActivityProcess *aActivity, nsresult *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Pause(aActivity, _retval); } \
  NS_IMETHOD Resume(nsIActivityProcess *aActivity, nsresult *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(aActivity, _retval); } 


/* starting interface:    nsIActivityRetryHandler */
#define NS_IACTIVITYRETRYHANDLER_IID_STR "8ec42517-951f-4bc0-aba5-fde7258b1705"

#define NS_IACTIVITYRETRYHANDLER_IID \
  {0x8ec42517, 0x951f, 0x4bc0, \
    { 0xab, 0xa5, 0xfd, 0xe7, 0x25, 0x8b, 0x17, 0x05 }}

class NS_NO_VTABLE nsIActivityRetryHandler : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYRETRYHANDLER_IID)

  /* nsresult retry (in nsIActivityProcess aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Retry(nsIActivityProcess *aActivity, nsresult *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityRetryHandler, NS_IACTIVITYRETRYHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYRETRYHANDLER \
  NS_IMETHOD Retry(nsIActivityProcess *aActivity, nsresult *_retval) 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_NSIACTIVITYRETRYHANDLER \
  nsresult Retry(nsIActivityProcess *aActivity, nsresult *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYRETRYHANDLER(_to) \
  NS_IMETHOD Retry(nsIActivityProcess *aActivity, nsresult *_retval) override { return _to Retry(aActivity, _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_NSIACTIVITYRETRYHANDLER(_to) \
  NS_IMETHOD Retry(nsIActivityProcess *aActivity, nsresult *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Retry(aActivity, _retval); } 


/* starting interface:    nsIActivityUndoHandler */
#define NS_IACTIVITYUNDOHANDLER_IID_STR "b8632ac7-9d8b-4341-a349-ef000e8c89ac"

#define NS_IACTIVITYUNDOHANDLER_IID \
  {0xb8632ac7, 0x9d8b, 0x4341, \
    { 0xa3, 0x49, 0xef, 0x00, 0x0e, 0x8c, 0x89, 0xac }}

class NS_NO_VTABLE nsIActivityUndoHandler : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYUNDOHANDLER_IID)

  /* nsresult undo (in nsIActivityEvent aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Undo(nsIActivityEvent *aActivity, nsresult *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityUndoHandler, NS_IACTIVITYUNDOHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYUNDOHANDLER \
  NS_IMETHOD Undo(nsIActivityEvent *aActivity, nsresult *_retval) 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_NSIACTIVITYUNDOHANDLER \
  nsresult Undo(nsIActivityEvent *aActivity, nsresult *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYUNDOHANDLER(_to) \
  NS_IMETHOD Undo(nsIActivityEvent *aActivity, nsresult *_retval) override { return _to Undo(aActivity, _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_NSIACTIVITYUNDOHANDLER(_to) \
  NS_IMETHOD Undo(nsIActivityEvent *aActivity, nsresult *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Undo(aActivity, _retval); } 


/* starting interface:    nsIActivity */
#define NS_IACTIVITY_IID_STR "6cd33e65-b2d8-4634-9b6d-b80bf1273e99"

#define NS_IACTIVITY_IID \
  {0x6cd33e65, 0xb2d8, 0x4634, \
    { 0x9b, 0x6d, 0xb8, 0x0b, 0xf1, 0x27, 0x3e, 0x99 }}

class NS_NO_VTABLE nsIActivity : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITY_IID)

  enum {
    GROUPING_STYLE_STANDALONE = 1,
    GROUPING_STYLE_BYCONTEXT = 2
  };

  /* attribute unsigned long id; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(uint32_t *aId) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetId(uint32_t aId) = 0;

  /* readonly attribute AString displayText; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisplayText(nsAString& aDisplayText) = 0;

  /* attribute AString iconClass; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIconClass(nsAString& aIconClass) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIconClass(const nsAString& aIconClass) = 0;

  /* attribute AString bindingName; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBindingName(nsAString& aBindingName) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetBindingName(const nsAString& aBindingName) = 0;

  /* attribute short groupingStyle; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGroupingStyle(int16_t *aGroupingStyle) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetGroupingStyle(int16_t aGroupingStyle) = 0;

  /* attribute AString facet; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFacet(nsAString& aFacet) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFacet(const nsAString& aFacet) = 0;

  /* readonly attribute nsIVariant initiator; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInitiator(nsIVariant **aInitiator) = 0;

  /* void addSubject (in nsIVariant aSubject); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddSubject(nsIVariant *aSubject) = 0;

  /* void getSubjects (out unsigned long length, [array, size_is (length), retval] out nsIVariant aSubjects); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSubjects(uint32_t *length, nsIVariant ***aSubjects) = 0;

  /* attribute nsIVariant contextObj; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContextObj(nsIVariant **aContextObj) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContextObj(nsIVariant *aContextObj) = 0;

  /* attribute AString contextType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContextType(nsAString& aContextType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContextType(const nsAString& aContextType) = 0;

  /* attribute AString contextDisplayText; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContextDisplayText(nsAString& aContextDisplayText) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContextDisplayText(const nsAString& aContextDisplayText) = 0;

  /* void addListener (in nsIActivityListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddListener(nsIActivityListener *aListener) = 0;

  /* void removeListener (in nsIActivityListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveListener(nsIActivityListener *aListener) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivity, NS_IACTIVITY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITY \
  NS_IMETHOD GetId(uint32_t *aId) override; \
  NS_IMETHOD SetId(uint32_t aId) override; \
  NS_IMETHOD GetDisplayText(nsAString& aDisplayText) override; \
  NS_IMETHOD GetIconClass(nsAString& aIconClass) override; \
  NS_IMETHOD SetIconClass(const nsAString& aIconClass) override; \
  NS_IMETHOD GetBindingName(nsAString& aBindingName) override; \
  NS_IMETHOD SetBindingName(const nsAString& aBindingName) override; \
  NS_IMETHOD GetGroupingStyle(int16_t *aGroupingStyle) override; \
  NS_IMETHOD SetGroupingStyle(int16_t aGroupingStyle) override; \
  NS_IMETHOD GetFacet(nsAString& aFacet) override; \
  NS_IMETHOD SetFacet(const nsAString& aFacet) override; \
  NS_IMETHOD GetInitiator(nsIVariant **aInitiator) override; \
  NS_IMETHOD AddSubject(nsIVariant *aSubject) override; \
  NS_IMETHOD GetSubjects(uint32_t *length, nsIVariant ***aSubjects) override; \
  NS_IMETHOD GetContextObj(nsIVariant **aContextObj) override; \
  NS_IMETHOD SetContextObj(nsIVariant *aContextObj) override; \
  NS_IMETHOD GetContextType(nsAString& aContextType) override; \
  NS_IMETHOD SetContextType(const nsAString& aContextType) override; \
  NS_IMETHOD GetContextDisplayText(nsAString& aContextDisplayText) override; \
  NS_IMETHOD SetContextDisplayText(const nsAString& aContextDisplayText) override; \
  NS_IMETHOD AddListener(nsIActivityListener *aListener) override; \
  NS_IMETHOD RemoveListener(nsIActivityListener *aListener) 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_NSIACTIVITY \
  nsresult GetId(uint32_t *aId); \
  nsresult SetId(uint32_t aId); \
  nsresult GetDisplayText(nsAString& aDisplayText); \
  nsresult GetIconClass(nsAString& aIconClass); \
  nsresult SetIconClass(const nsAString& aIconClass); \
  nsresult GetBindingName(nsAString& aBindingName); \
  nsresult SetBindingName(const nsAString& aBindingName); \
  nsresult GetGroupingStyle(int16_t *aGroupingStyle); \
  nsresult SetGroupingStyle(int16_t aGroupingStyle); \
  nsresult GetFacet(nsAString& aFacet); \
  nsresult SetFacet(const nsAString& aFacet); \
  nsresult GetInitiator(nsIVariant **aInitiator); \
  nsresult AddSubject(nsIVariant *aSubject); \
  nsresult GetSubjects(uint32_t *length, nsIVariant ***aSubjects); \
  nsresult GetContextObj(nsIVariant **aContextObj); \
  nsresult SetContextObj(nsIVariant *aContextObj); \
  nsresult GetContextType(nsAString& aContextType); \
  nsresult SetContextType(const nsAString& aContextType); \
  nsresult GetContextDisplayText(nsAString& aContextDisplayText); \
  nsresult SetContextDisplayText(const nsAString& aContextDisplayText); \
  nsresult AddListener(nsIActivityListener *aListener); \
  nsresult RemoveListener(nsIActivityListener *aListener); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITY(_to) \
  NS_IMETHOD GetId(uint32_t *aId) override { return _to GetId(aId); } \
  NS_IMETHOD SetId(uint32_t aId) override { return _to SetId(aId); } \
  NS_IMETHOD GetDisplayText(nsAString& aDisplayText) override { return _to GetDisplayText(aDisplayText); } \
  NS_IMETHOD GetIconClass(nsAString& aIconClass) override { return _to GetIconClass(aIconClass); } \
  NS_IMETHOD SetIconClass(const nsAString& aIconClass) override { return _to SetIconClass(aIconClass); } \
  NS_IMETHOD GetBindingName(nsAString& aBindingName) override { return _to GetBindingName(aBindingName); } \
  NS_IMETHOD SetBindingName(const nsAString& aBindingName) override { return _to SetBindingName(aBindingName); } \
  NS_IMETHOD GetGroupingStyle(int16_t *aGroupingStyle) override { return _to GetGroupingStyle(aGroupingStyle); } \
  NS_IMETHOD SetGroupingStyle(int16_t aGroupingStyle) override { return _to SetGroupingStyle(aGroupingStyle); } \
  NS_IMETHOD GetFacet(nsAString& aFacet) override { return _to GetFacet(aFacet); } \
  NS_IMETHOD SetFacet(const nsAString& aFacet) override { return _to SetFacet(aFacet); } \
  NS_IMETHOD GetInitiator(nsIVariant **aInitiator) override { return _to GetInitiator(aInitiator); } \
  NS_IMETHOD AddSubject(nsIVariant *aSubject) override { return _to AddSubject(aSubject); } \
  NS_IMETHOD GetSubjects(uint32_t *length, nsIVariant ***aSubjects) override { return _to GetSubjects(length, aSubjects); } \
  NS_IMETHOD GetContextObj(nsIVariant **aContextObj) override { return _to GetContextObj(aContextObj); } \
  NS_IMETHOD SetContextObj(nsIVariant *aContextObj) override { return _to SetContextObj(aContextObj); } \
  NS_IMETHOD GetContextType(nsAString& aContextType) override { return _to GetContextType(aContextType); } \
  NS_IMETHOD SetContextType(const nsAString& aContextType) override { return _to SetContextType(aContextType); } \
  NS_IMETHOD GetContextDisplayText(nsAString& aContextDisplayText) override { return _to GetContextDisplayText(aContextDisplayText); } \
  NS_IMETHOD SetContextDisplayText(const nsAString& aContextDisplayText) override { return _to SetContextDisplayText(aContextDisplayText); } \
  NS_IMETHOD AddListener(nsIActivityListener *aListener) override { return _to AddListener(aListener); } \
  NS_IMETHOD RemoveListener(nsIActivityListener *aListener) override { return _to RemoveListener(aListener); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACTIVITY(_to) \
  NS_IMETHOD GetId(uint32_t *aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  NS_IMETHOD SetId(uint32_t aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
  NS_IMETHOD GetDisplayText(nsAString& aDisplayText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayText(aDisplayText); } \
  NS_IMETHOD GetIconClass(nsAString& aIconClass) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIconClass(aIconClass); } \
  NS_IMETHOD SetIconClass(const nsAString& aIconClass) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIconClass(aIconClass); } \
  NS_IMETHOD GetBindingName(nsAString& aBindingName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBindingName(aBindingName); } \
  NS_IMETHOD SetBindingName(const nsAString& aBindingName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBindingName(aBindingName); } \
  NS_IMETHOD GetGroupingStyle(int16_t *aGroupingStyle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupingStyle(aGroupingStyle); } \
  NS_IMETHOD SetGroupingStyle(int16_t aGroupingStyle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGroupingStyle(aGroupingStyle); } \
  NS_IMETHOD GetFacet(nsAString& aFacet) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFacet(aFacet); } \
  NS_IMETHOD SetFacet(const nsAString& aFacet) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFacet(aFacet); } \
  NS_IMETHOD GetInitiator(nsIVariant **aInitiator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitiator(aInitiator); } \
  NS_IMETHOD AddSubject(nsIVariant *aSubject) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSubject(aSubject); } \
  NS_IMETHOD GetSubjects(uint32_t *length, nsIVariant ***aSubjects) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubjects(length, aSubjects); } \
  NS_IMETHOD GetContextObj(nsIVariant **aContextObj) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContextObj(aContextObj); } \
  NS_IMETHOD SetContextObj(nsIVariant *aContextObj) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContextObj(aContextObj); } \
  NS_IMETHOD GetContextType(nsAString& aContextType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContextType(aContextType); } \
  NS_IMETHOD SetContextType(const nsAString& aContextType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContextType(aContextType); } \
  NS_IMETHOD GetContextDisplayText(nsAString& aContextDisplayText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContextDisplayText(aContextDisplayText); } \
  NS_IMETHOD SetContextDisplayText(const nsAString& aContextDisplayText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContextDisplayText(aContextDisplayText); } \
  NS_IMETHOD AddListener(nsIActivityListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(aListener); } \
  NS_IMETHOD RemoveListener(nsIActivityListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(aListener); } 


/* starting interface:    nsIActivityProcess */
#define NS_IACTIVITYPROCESS_IID_STR "9dc7ca67-828d-4afd-a5c6-3ece091a98b8"

#define NS_IACTIVITYPROCESS_IID \
  {0x9dc7ca67, 0x828d, 0x4afd, \
    { 0xa5, 0xc6, 0x3e, 0xce, 0x09, 0x1a, 0x98, 0xb8 }}

class NS_NO_VTABLE nsIActivityProcess : public nsIActivity {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYPROCESS_IID)

  enum {
    STATE_NOTSTARTED = -1,
    STATE_INPROGRESS = 0,
    STATE_COMPLETED = 1,
    STATE_CANCELED = 2,
    STATE_PAUSED = 3,
    STATE_WAITINGFORINPUT = 4,
    STATE_WAITINGFORRETRY = 5
  };

  /* attribute short state; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetState(int16_t *aState) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetState(int16_t aState) = 0;

  /* readonly attribute long percentComplete; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPercentComplete(int32_t *aPercentComplete) = 0;

  /* readonly attribute AString lastStatusText; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastStatusText(nsAString& aLastStatusText) = 0;

  /* readonly attribute unsigned long workUnitComplete; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWorkUnitComplete(uint32_t *aWorkUnitComplete) = 0;

  /* readonly attribute unsigned long totalWorkUnits; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTotalWorkUnits(uint32_t *aTotalWorkUnits) = 0;

  /* readonly attribute long long startTime; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStartTime(int64_t *aStartTime) = 0;

  /* attribute nsIActivityCancelHandler cancelHandler; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCancelHandler(nsIActivityCancelHandler **aCancelHandler) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCancelHandler(nsIActivityCancelHandler *aCancelHandler) = 0;

  /* attribute nsIActivityPauseHandler pauseHandler; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPauseHandler(nsIActivityPauseHandler **aPauseHandler) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPauseHandler(nsIActivityPauseHandler *aPauseHandler) = 0;

  /* attribute nsIActivityRetryHandler retryHandler; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRetryHandler(nsIActivityRetryHandler **aRetryHandler) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRetryHandler(nsIActivityRetryHandler *aRetryHandler) = 0;

  /* void setProgress (in AString aStatusText, in unsigned long aWorkUnitComplete, in unsigned long aTotalWorkUnits); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetProgress(const nsAString& aStatusText, uint32_t aWorkUnitComplete, uint32_t aTotalWorkUnits) = 0;

  /* void init (in AString aDisplayText, in nsIVariant aInitiator); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(const nsAString& aDisplayText, nsIVariant *aInitiator) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityProcess, NS_IACTIVITYPROCESS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYPROCESS \
  NS_IMETHOD GetState(int16_t *aState) override; \
  NS_IMETHOD SetState(int16_t aState) override; \
  NS_IMETHOD GetPercentComplete(int32_t *aPercentComplete) override; \
  NS_IMETHOD GetLastStatusText(nsAString& aLastStatusText) override; \
  NS_IMETHOD GetWorkUnitComplete(uint32_t *aWorkUnitComplete) override; \
  NS_IMETHOD GetTotalWorkUnits(uint32_t *aTotalWorkUnits) override; \
  NS_IMETHOD GetStartTime(int64_t *aStartTime) override; \
  NS_IMETHOD GetCancelHandler(nsIActivityCancelHandler **aCancelHandler) override; \
  NS_IMETHOD SetCancelHandler(nsIActivityCancelHandler *aCancelHandler) override; \
  NS_IMETHOD GetPauseHandler(nsIActivityPauseHandler **aPauseHandler) override; \
  NS_IMETHOD SetPauseHandler(nsIActivityPauseHandler *aPauseHandler) override; \
  NS_IMETHOD GetRetryHandler(nsIActivityRetryHandler **aRetryHandler) override; \
  NS_IMETHOD SetRetryHandler(nsIActivityRetryHandler *aRetryHandler) override; \
  NS_IMETHOD SetProgress(const nsAString& aStatusText, uint32_t aWorkUnitComplete, uint32_t aTotalWorkUnits) override; \
  NS_IMETHOD Init(const nsAString& aDisplayText, nsIVariant *aInitiator) 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_NSIACTIVITYPROCESS \
  nsresult GetState(int16_t *aState); \
  nsresult SetState(int16_t aState); \
  nsresult GetPercentComplete(int32_t *aPercentComplete); \
  nsresult GetLastStatusText(nsAString& aLastStatusText); \
  nsresult GetWorkUnitComplete(uint32_t *aWorkUnitComplete); \
  nsresult GetTotalWorkUnits(uint32_t *aTotalWorkUnits); \
  nsresult GetStartTime(int64_t *aStartTime); \
  nsresult GetCancelHandler(nsIActivityCancelHandler **aCancelHandler); \
  nsresult SetCancelHandler(nsIActivityCancelHandler *aCancelHandler); \
  nsresult GetPauseHandler(nsIActivityPauseHandler **aPauseHandler); \
  nsresult SetPauseHandler(nsIActivityPauseHandler *aPauseHandler); \
  nsresult GetRetryHandler(nsIActivityRetryHandler **aRetryHandler); \
  nsresult SetRetryHandler(nsIActivityRetryHandler *aRetryHandler); \
  nsresult SetProgress(const nsAString& aStatusText, uint32_t aWorkUnitComplete, uint32_t aTotalWorkUnits); \
  nsresult Init(const nsAString& aDisplayText, nsIVariant *aInitiator); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYPROCESS(_to) \
  NS_IMETHOD GetState(int16_t *aState) override { return _to GetState(aState); } \
  NS_IMETHOD SetState(int16_t aState) override { return _to SetState(aState); } \
  NS_IMETHOD GetPercentComplete(int32_t *aPercentComplete) override { return _to GetPercentComplete(aPercentComplete); } \
  NS_IMETHOD GetLastStatusText(nsAString& aLastStatusText) override { return _to GetLastStatusText(aLastStatusText); } \
  NS_IMETHOD GetWorkUnitComplete(uint32_t *aWorkUnitComplete) override { return _to GetWorkUnitComplete(aWorkUnitComplete); } \
  NS_IMETHOD GetTotalWorkUnits(uint32_t *aTotalWorkUnits) override { return _to GetTotalWorkUnits(aTotalWorkUnits); } \
  NS_IMETHOD GetStartTime(int64_t *aStartTime) override { return _to GetStartTime(aStartTime); } \
  NS_IMETHOD GetCancelHandler(nsIActivityCancelHandler **aCancelHandler) override { return _to GetCancelHandler(aCancelHandler); } \
  NS_IMETHOD SetCancelHandler(nsIActivityCancelHandler *aCancelHandler) override { return _to SetCancelHandler(aCancelHandler); } \
  NS_IMETHOD GetPauseHandler(nsIActivityPauseHandler **aPauseHandler) override { return _to GetPauseHandler(aPauseHandler); } \
  NS_IMETHOD SetPauseHandler(nsIActivityPauseHandler *aPauseHandler) override { return _to SetPauseHandler(aPauseHandler); } \
  NS_IMETHOD GetRetryHandler(nsIActivityRetryHandler **aRetryHandler) override { return _to GetRetryHandler(aRetryHandler); } \
  NS_IMETHOD SetRetryHandler(nsIActivityRetryHandler *aRetryHandler) override { return _to SetRetryHandler(aRetryHandler); } \
  NS_IMETHOD SetProgress(const nsAString& aStatusText, uint32_t aWorkUnitComplete, uint32_t aTotalWorkUnits) override { return _to SetProgress(aStatusText, aWorkUnitComplete, aTotalWorkUnits); } \
  NS_IMETHOD Init(const nsAString& aDisplayText, nsIVariant *aInitiator) override { return _to Init(aDisplayText, aInitiator); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACTIVITYPROCESS(_to) \
  NS_IMETHOD GetState(int16_t *aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
  NS_IMETHOD SetState(int16_t aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetState(aState); } \
  NS_IMETHOD GetPercentComplete(int32_t *aPercentComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPercentComplete(aPercentComplete); } \
  NS_IMETHOD GetLastStatusText(nsAString& aLastStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastStatusText(aLastStatusText); } \
  NS_IMETHOD GetWorkUnitComplete(uint32_t *aWorkUnitComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWorkUnitComplete(aWorkUnitComplete); } \
  NS_IMETHOD GetTotalWorkUnits(uint32_t *aTotalWorkUnits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalWorkUnits(aTotalWorkUnits); } \
  NS_IMETHOD GetStartTime(int64_t *aStartTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartTime(aStartTime); } \
  NS_IMETHOD GetCancelHandler(nsIActivityCancelHandler **aCancelHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelHandler(aCancelHandler); } \
  NS_IMETHOD SetCancelHandler(nsIActivityCancelHandler *aCancelHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCancelHandler(aCancelHandler); } \
  NS_IMETHOD GetPauseHandler(nsIActivityPauseHandler **aPauseHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPauseHandler(aPauseHandler); } \
  NS_IMETHOD SetPauseHandler(nsIActivityPauseHandler *aPauseHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPauseHandler(aPauseHandler); } \
  NS_IMETHOD GetRetryHandler(nsIActivityRetryHandler **aRetryHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRetryHandler(aRetryHandler); } \
  NS_IMETHOD SetRetryHandler(nsIActivityRetryHandler *aRetryHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRetryHandler(aRetryHandler); } \
  NS_IMETHOD SetProgress(const nsAString& aStatusText, uint32_t aWorkUnitComplete, uint32_t aTotalWorkUnits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProgress(aStatusText, aWorkUnitComplete, aTotalWorkUnits); } \
  NS_IMETHOD Init(const nsAString& aDisplayText, nsIVariant *aInitiator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDisplayText, aInitiator); } 


/* starting interface:    nsIActivityEvent */
#define NS_IACTIVITYEVENT_IID_STR "5b1b0d03-2820-4e37-8bf8-102afde4fc45"

#define NS_IACTIVITYEVENT_IID \
  {0x5b1b0d03, 0x2820, 0x4e37, \
    { 0x8b, 0xf8, 0x10, 0x2a, 0xfd, 0xe4, 0xfc, 0x45 }}

class NS_NO_VTABLE nsIActivityEvent : public nsIActivity {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYEVENT_IID)

  /* readonly attribute AString statusText; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatusText(nsAString& aStatusText) = 0;

  /* readonly attribute long long startTime; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStartTime(int64_t *aStartTime) = 0;

  /* readonly attribute long long completionTime; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCompletionTime(int64_t *aCompletionTime) = 0;

  /* attribute nsIActivityUndoHandler undoHandler; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUndoHandler(nsIActivityUndoHandler **aUndoHandler) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUndoHandler(nsIActivityUndoHandler *aUndoHandler) = 0;

  /* void init (in AString aDisplayText, in nsIVariant aInitiator, in AString aStatusText, in long long aStartTime, in long long aCompletionTime); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(const nsAString& aDisplayText, nsIVariant *aInitiator, const nsAString& aStatusText, int64_t aStartTime, int64_t aCompletionTime) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityEvent, NS_IACTIVITYEVENT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYEVENT \
  NS_IMETHOD GetStatusText(nsAString& aStatusText) override; \
  NS_IMETHOD GetStartTime(int64_t *aStartTime) override; \
  NS_IMETHOD GetCompletionTime(int64_t *aCompletionTime) override; \
  NS_IMETHOD GetUndoHandler(nsIActivityUndoHandler **aUndoHandler) override; \
  NS_IMETHOD SetUndoHandler(nsIActivityUndoHandler *aUndoHandler) override; \
  NS_IMETHOD Init(const nsAString& aDisplayText, nsIVariant *aInitiator, const nsAString& aStatusText, int64_t aStartTime, int64_t aCompletionTime) 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_NSIACTIVITYEVENT \
  nsresult GetStatusText(nsAString& aStatusText); \
  nsresult GetStartTime(int64_t *aStartTime); \
  nsresult GetCompletionTime(int64_t *aCompletionTime); \
  nsresult GetUndoHandler(nsIActivityUndoHandler **aUndoHandler); \
  nsresult SetUndoHandler(nsIActivityUndoHandler *aUndoHandler); \
  nsresult Init(const nsAString& aDisplayText, nsIVariant *aInitiator, const nsAString& aStatusText, int64_t aStartTime, int64_t aCompletionTime); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYEVENT(_to) \
  NS_IMETHOD GetStatusText(nsAString& aStatusText) override { return _to GetStatusText(aStatusText); } \
  NS_IMETHOD GetStartTime(int64_t *aStartTime) override { return _to GetStartTime(aStartTime); } \
  NS_IMETHOD GetCompletionTime(int64_t *aCompletionTime) override { return _to GetCompletionTime(aCompletionTime); } \
  NS_IMETHOD GetUndoHandler(nsIActivityUndoHandler **aUndoHandler) override { return _to GetUndoHandler(aUndoHandler); } \
  NS_IMETHOD SetUndoHandler(nsIActivityUndoHandler *aUndoHandler) override { return _to SetUndoHandler(aUndoHandler); } \
  NS_IMETHOD Init(const nsAString& aDisplayText, nsIVariant *aInitiator, const nsAString& aStatusText, int64_t aStartTime, int64_t aCompletionTime) override { return _to Init(aDisplayText, aInitiator, aStatusText, aStartTime, aCompletionTime); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACTIVITYEVENT(_to) \
  NS_IMETHOD GetStatusText(nsAString& aStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusText(aStatusText); } \
  NS_IMETHOD GetStartTime(int64_t *aStartTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartTime(aStartTime); } \
  NS_IMETHOD GetCompletionTime(int64_t *aCompletionTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompletionTime(aCompletionTime); } \
  NS_IMETHOD GetUndoHandler(nsIActivityUndoHandler **aUndoHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUndoHandler(aUndoHandler); } \
  NS_IMETHOD SetUndoHandler(nsIActivityUndoHandler *aUndoHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUndoHandler(aUndoHandler); } \
  NS_IMETHOD Init(const nsAString& aDisplayText, nsIVariant *aInitiator, const nsAString& aStatusText, int64_t aStartTime, int64_t aCompletionTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDisplayText, aInitiator, aStatusText, aStartTime, aCompletionTime); } 


/* starting interface:    nsIActivityWarning */
#define NS_IACTIVITYWARNING_IID_STR "8265833e-c604-4585-a43c-a76bd8ed3a8c"

#define NS_IACTIVITYWARNING_IID \
  {0x8265833e, 0xc604, 0x4585, \
    { 0xa4, 0x3c, 0xa7, 0x6b, 0xd8, 0xed, 0x3a, 0x8c }}

class NS_NO_VTABLE nsIActivityWarning : public nsIActivity {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYWARNING_IID)

  /* readonly attribute AString warningText; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWarningText(nsAString& aWarningText) = 0;

  /* readonly attribute long long time; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTime(int64_t *aTime) = 0;

  /* readonly attribute AString recoveryTipText; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRecoveryTipText(nsAString& aRecoveryTipText) = 0;

  /* attribute nsIActivityRecoveryHandler recoveryHandler; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRecoveryHandler(nsIActivityRecoveryHandler **aRecoveryHandler) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRecoveryHandler(nsIActivityRecoveryHandler *aRecoveryHandler) = 0;

  /* void init (in AString aWarningText, in nsIVariant aInitiator, in AString aRecoveryTip); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(const nsAString& aWarningText, nsIVariant *aInitiator, const nsAString& aRecoveryTip) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityWarning, NS_IACTIVITYWARNING_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYWARNING \
  NS_IMETHOD GetWarningText(nsAString& aWarningText) override; \
  NS_IMETHOD GetTime(int64_t *aTime) override; \
  NS_IMETHOD GetRecoveryTipText(nsAString& aRecoveryTipText) override; \
  NS_IMETHOD GetRecoveryHandler(nsIActivityRecoveryHandler **aRecoveryHandler) override; \
  NS_IMETHOD SetRecoveryHandler(nsIActivityRecoveryHandler *aRecoveryHandler) override; \
  NS_IMETHOD Init(const nsAString& aWarningText, nsIVariant *aInitiator, const nsAString& aRecoveryTip) 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_NSIACTIVITYWARNING \
  nsresult GetWarningText(nsAString& aWarningText); \
  nsresult GetTime(int64_t *aTime); \
  nsresult GetRecoveryTipText(nsAString& aRecoveryTipText); \
  nsresult GetRecoveryHandler(nsIActivityRecoveryHandler **aRecoveryHandler); \
  nsresult SetRecoveryHandler(nsIActivityRecoveryHandler *aRecoveryHandler); \
  nsresult Init(const nsAString& aWarningText, nsIVariant *aInitiator, const nsAString& aRecoveryTip); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYWARNING(_to) \
  NS_IMETHOD GetWarningText(nsAString& aWarningText) override { return _to GetWarningText(aWarningText); } \
  NS_IMETHOD GetTime(int64_t *aTime) override { return _to GetTime(aTime); } \
  NS_IMETHOD GetRecoveryTipText(nsAString& aRecoveryTipText) override { return _to GetRecoveryTipText(aRecoveryTipText); } \
  NS_IMETHOD GetRecoveryHandler(nsIActivityRecoveryHandler **aRecoveryHandler) override { return _to GetRecoveryHandler(aRecoveryHandler); } \
  NS_IMETHOD SetRecoveryHandler(nsIActivityRecoveryHandler *aRecoveryHandler) override { return _to SetRecoveryHandler(aRecoveryHandler); } \
  NS_IMETHOD Init(const nsAString& aWarningText, nsIVariant *aInitiator, const nsAString& aRecoveryTip) override { return _to Init(aWarningText, aInitiator, aRecoveryTip); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACTIVITYWARNING(_to) \
  NS_IMETHOD GetWarningText(nsAString& aWarningText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWarningText(aWarningText); } \
  NS_IMETHOD GetTime(int64_t *aTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTime(aTime); } \
  NS_IMETHOD GetRecoveryTipText(nsAString& aRecoveryTipText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecoveryTipText(aRecoveryTipText); } \
  NS_IMETHOD GetRecoveryHandler(nsIActivityRecoveryHandler **aRecoveryHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecoveryHandler(aRecoveryHandler); } \
  NS_IMETHOD SetRecoveryHandler(nsIActivityRecoveryHandler *aRecoveryHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRecoveryHandler(aRecoveryHandler); } \
  NS_IMETHOD Init(const nsAString& aWarningText, nsIVariant *aInitiator, const nsAString& aRecoveryTip) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aWarningText, aInitiator, aRecoveryTip); } 


/* starting interface:    nsIActivityListener */
#define NS_IACTIVITYLISTENER_IID_STR "bd11519f-b297-4b34-a793-1861dc90d5e9"

#define NS_IACTIVITYLISTENER_IID \
  {0xbd11519f, 0xb297, 0x4b34, \
    { 0xa7, 0x93, 0x18, 0x61, 0xdc, 0x90, 0xd5, 0xe9 }}

class NS_NO_VTABLE nsIActivityListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYLISTENER_IID)

  /* void onStateChanged (in nsIActivity aActivity, in short aOldState); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnStateChanged(nsIActivity *aActivity, int16_t aOldState) = 0;

  /* void onProgressChanged (in nsIActivity aActivity, in AString aStatusText, in unsigned long aWorkUnitsCompleted, in unsigned long aTotalWorkUnits); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnProgressChanged(nsIActivity *aActivity, const nsAString& aStatusText, uint32_t aWorkUnitsCompleted, uint32_t aTotalWorkUnits) = 0;

  /* void onHandlerChanged (in nsIActivity aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnHandlerChanged(nsIActivity *aActivity) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityListener, NS_IACTIVITYLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYLISTENER \
  NS_IMETHOD OnStateChanged(nsIActivity *aActivity, int16_t aOldState) override; \
  NS_IMETHOD OnProgressChanged(nsIActivity *aActivity, const nsAString& aStatusText, uint32_t aWorkUnitsCompleted, uint32_t aTotalWorkUnits) override; \
  NS_IMETHOD OnHandlerChanged(nsIActivity *aActivity) 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_NSIACTIVITYLISTENER \
  nsresult OnStateChanged(nsIActivity *aActivity, int16_t aOldState); \
  nsresult OnProgressChanged(nsIActivity *aActivity, const nsAString& aStatusText, uint32_t aWorkUnitsCompleted, uint32_t aTotalWorkUnits); \
  nsresult OnHandlerChanged(nsIActivity *aActivity); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYLISTENER(_to) \
  NS_IMETHOD OnStateChanged(nsIActivity *aActivity, int16_t aOldState) override { return _to OnStateChanged(aActivity, aOldState); } \
  NS_IMETHOD OnProgressChanged(nsIActivity *aActivity, const nsAString& aStatusText, uint32_t aWorkUnitsCompleted, uint32_t aTotalWorkUnits) override { return _to OnProgressChanged(aActivity, aStatusText, aWorkUnitsCompleted, aTotalWorkUnits); } \
  NS_IMETHOD OnHandlerChanged(nsIActivity *aActivity) override { return _to OnHandlerChanged(aActivity); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACTIVITYLISTENER(_to) \
  NS_IMETHOD OnStateChanged(nsIActivity *aActivity, int16_t aOldState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStateChanged(aActivity, aOldState); } \
  NS_IMETHOD OnProgressChanged(nsIActivity *aActivity, const nsAString& aStatusText, uint32_t aWorkUnitsCompleted, uint32_t aTotalWorkUnits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProgressChanged(aActivity, aStatusText, aWorkUnitsCompleted, aTotalWorkUnits); } \
  NS_IMETHOD OnHandlerChanged(nsIActivity *aActivity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnHandlerChanged(aActivity); } 


#endif /* __gen_nsIActivity_h__ */