/usr/include/thunderbird/calICalendar.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 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 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/calICalendar.idl
*/
#ifndef __gen_calICalendar_h__
#define __gen_calICalendar_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 nsIURI; /* forward declaration */
class calIItemBase; /* forward declaration */
class nsIVariant; /* forward declaration */
class nsISimpleEnumerator; /* forward declaration */
class calICalendarACLManager; /* forward declaration */
class calICalendarACLEntry; /* forward declaration */
class calIObserver; /* forward declaration */
class calIOperationListener; /* forward declaration */
class calIRange; /* forward declaration */
class calIDateTime; /* forward declaration */
class calIOperation; /* forward declaration */
class calIStatusObserver; /* forward declaration */
class nsIDOMChromeWindow; /* forward declaration */
/* starting interface: calICalendar */
#define CALICALENDAR_IID_STR "b18782c0-6557-4e8e-931d-4bf052f0a31e"
#define CALICALENDAR_IID \
{0xb18782c0, 0x6557, 0x4e8e, \
{ 0x93, 0x1d, 0x4b, 0xf0, 0x52, 0xf0, 0xa3, 0x1e }}
class NS_NO_VTABLE calICalendar : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(CALICALENDAR_IID)
/* attribute AUTF8String id; */
NS_IMETHOD GetId(nsACString & aId) = 0;
NS_IMETHOD SetId(const nsACString & aId) = 0;
/* attribute AUTF8String name; */
NS_IMETHOD GetName(nsACString & aName) = 0;
NS_IMETHOD SetName(const nsACString & aName) = 0;
/* readonly attribute AUTF8String type; */
NS_IMETHOD GetType(nsACString & aType) = 0;
/* readonly attribute AString providerID; */
NS_IMETHOD GetProviderID(nsAString & aProviderID) = 0;
/* readonly attribute calICalendarACLManager aclManager; */
NS_IMETHOD GetAclManager(calICalendarACLManager * *aAclManager) = 0;
/* readonly attribute calICalendarACLEntry aclEntry; */
NS_IMETHOD GetAclEntry(calICalendarACLEntry * *aAclEntry) = 0;
/* attribute calICalendar superCalendar; */
NS_IMETHOD GetSuperCalendar(calICalendar * *aSuperCalendar) = 0;
NS_IMETHOD SetSuperCalendar(calICalendar *aSuperCalendar) = 0;
/* attribute nsIURI uri; */
NS_IMETHOD GetUri(nsIURI * *aUri) = 0;
NS_IMETHOD SetUri(nsIURI *aUri) = 0;
/* attribute boolean readOnly; */
NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;
NS_IMETHOD SetReadOnly(bool aReadOnly) = 0;
/* readonly attribute boolean canRefresh; */
NS_IMETHOD GetCanRefresh(bool *aCanRefresh) = 0;
/* attribute boolean transientProperties; */
NS_IMETHOD GetTransientProperties(bool *aTransientProperties) = 0;
NS_IMETHOD SetTransientProperties(bool aTransientProperties) = 0;
/* nsIVariant getProperty (in AUTF8String aName); */
NS_IMETHOD GetProperty(const nsACString & aName, nsIVariant * *_retval) = 0;
/* void setProperty (in AUTF8String aName, in nsIVariant aValue); */
NS_IMETHOD SetProperty(const nsACString & aName, nsIVariant *aValue) = 0;
/* void deleteProperty (in AUTF8String aName); */
NS_IMETHOD DeleteProperty(const nsACString & aName) = 0;
enum {
ITEM_FILTER_COMPLETED_YES = 1U,
ITEM_FILTER_COMPLETED_NO = 2U,
ITEM_FILTER_COMPLETED_ALL = 3U,
ITEM_FILTER_TYPE_TODO = 4U,
ITEM_FILTER_TYPE_EVENT = 8U,
ITEM_FILTER_TYPE_JOURNAL = 16U,
ITEM_FILTER_TYPE_ALL = 28U,
ITEM_FILTER_ALL_ITEMS = 65535U,
ITEM_FILTER_CLASS_OCCURRENCES = 65536U,
ITEM_FILTER_REQUEST_NEEDS_ACTION = 131072U,
ITEM_FILTER_OFFLINE_CREATED = 536870912U,
ITEM_FILTER_OFFLINE_MODIFIED = 1073741824U,
ITEM_FILTER_OFFLINE_DELETED = 2147483648U
};
/* void addObserver (in calIObserver observer); */
NS_IMETHOD AddObserver(calIObserver *observer) = 0;
/* void removeObserver (in calIObserver observer); */
NS_IMETHOD RemoveObserver(calIObserver *observer) = 0;
/* calIOperation addItem (in calIItemBase aItem, in calIOperationListener aListener); */
NS_IMETHOD AddItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) = 0;
/* calIOperation adoptItem (in calIItemBase aItem, in calIOperationListener aListener); */
NS_IMETHOD AdoptItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) = 0;
/* calIOperation modifyItem (in calIItemBase aNewItem, in calIItemBase aOldItem, in calIOperationListener aListener); */
NS_IMETHOD ModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem, calIOperationListener *aListener, calIOperation * *_retval) = 0;
/* calIOperation deleteItem (in calIItemBase aItem, in calIOperationListener aListener); */
NS_IMETHOD DeleteItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) = 0;
/* calIOperation getItem (in string aId, in calIOperationListener aListener); */
NS_IMETHOD GetItem(const char * aId, calIOperationListener *aListener, calIOperation * *_retval) = 0;
/* calIOperation getItems (in unsigned long aItemFilter, in unsigned long aCount, in calIDateTime aRangeStart, in calIDateTime aRangeEndEx, in calIOperationListener aListener); */
NS_IMETHOD GetItems(uint32_t aItemFilter, uint32_t aCount, calIDateTime *aRangeStart, calIDateTime *aRangeEndEx, calIOperationListener *aListener, calIOperation * *_retval) = 0;
/* calIOperation refresh (); */
NS_IMETHOD Refresh(calIOperation * *_retval) = 0;
/* void startBatch (); */
NS_IMETHOD StartBatch(void) = 0;
/* void endBatch (); */
NS_IMETHOD EndBatch(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(calICalendar, CALICALENDAR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALICALENDAR \
NS_IMETHOD GetId(nsACString & aId) override; \
NS_IMETHOD SetId(const nsACString & aId) override; \
NS_IMETHOD GetName(nsACString & aName) override; \
NS_IMETHOD SetName(const nsACString & aName) override; \
NS_IMETHOD GetType(nsACString & aType) override; \
NS_IMETHOD GetProviderID(nsAString & aProviderID) override; \
NS_IMETHOD GetAclManager(calICalendarACLManager * *aAclManager) override; \
NS_IMETHOD GetAclEntry(calICalendarACLEntry * *aAclEntry) override; \
NS_IMETHOD GetSuperCalendar(calICalendar * *aSuperCalendar) override; \
NS_IMETHOD SetSuperCalendar(calICalendar *aSuperCalendar) override; \
NS_IMETHOD GetUri(nsIURI * *aUri) override; \
NS_IMETHOD SetUri(nsIURI *aUri) override; \
NS_IMETHOD GetReadOnly(bool *aReadOnly) override; \
NS_IMETHOD SetReadOnly(bool aReadOnly) override; \
NS_IMETHOD GetCanRefresh(bool *aCanRefresh) override; \
NS_IMETHOD GetTransientProperties(bool *aTransientProperties) override; \
NS_IMETHOD SetTransientProperties(bool aTransientProperties) override; \
NS_IMETHOD GetProperty(const nsACString & aName, nsIVariant * *_retval) override; \
NS_IMETHOD SetProperty(const nsACString & aName, nsIVariant *aValue) override; \
NS_IMETHOD DeleteProperty(const nsACString & aName) override; \
NS_IMETHOD AddObserver(calIObserver *observer) override; \
NS_IMETHOD RemoveObserver(calIObserver *observer) override; \
NS_IMETHOD AddItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override; \
NS_IMETHOD AdoptItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override; \
NS_IMETHOD ModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem, calIOperationListener *aListener, calIOperation * *_retval) override; \
NS_IMETHOD DeleteItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override; \
NS_IMETHOD GetItem(const char * aId, calIOperationListener *aListener, calIOperation * *_retval) override; \
NS_IMETHOD GetItems(uint32_t aItemFilter, uint32_t aCount, calIDateTime *aRangeStart, calIDateTime *aRangeEndEx, calIOperationListener *aListener, calIOperation * *_retval) override; \
NS_IMETHOD Refresh(calIOperation * *_retval) override; \
NS_IMETHOD StartBatch(void) override; \
NS_IMETHOD EndBatch(void) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALICALENDAR(_to) \
NS_IMETHOD GetId(nsACString & aId) override { return _to GetId(aId); } \
NS_IMETHOD SetId(const nsACString & aId) override { return _to SetId(aId); } \
NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
NS_IMETHOD SetName(const nsACString & aName) override { return _to SetName(aName); } \
NS_IMETHOD GetType(nsACString & aType) override { return _to GetType(aType); } \
NS_IMETHOD GetProviderID(nsAString & aProviderID) override { return _to GetProviderID(aProviderID); } \
NS_IMETHOD GetAclManager(calICalendarACLManager * *aAclManager) override { return _to GetAclManager(aAclManager); } \
NS_IMETHOD GetAclEntry(calICalendarACLEntry * *aAclEntry) override { return _to GetAclEntry(aAclEntry); } \
NS_IMETHOD GetSuperCalendar(calICalendar * *aSuperCalendar) override { return _to GetSuperCalendar(aSuperCalendar); } \
NS_IMETHOD SetSuperCalendar(calICalendar *aSuperCalendar) override { return _to SetSuperCalendar(aSuperCalendar); } \
NS_IMETHOD GetUri(nsIURI * *aUri) override { return _to GetUri(aUri); } \
NS_IMETHOD SetUri(nsIURI *aUri) override { return _to SetUri(aUri); } \
NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return _to GetReadOnly(aReadOnly); } \
NS_IMETHOD SetReadOnly(bool aReadOnly) override { return _to SetReadOnly(aReadOnly); } \
NS_IMETHOD GetCanRefresh(bool *aCanRefresh) override { return _to GetCanRefresh(aCanRefresh); } \
NS_IMETHOD GetTransientProperties(bool *aTransientProperties) override { return _to GetTransientProperties(aTransientProperties); } \
NS_IMETHOD SetTransientProperties(bool aTransientProperties) override { return _to SetTransientProperties(aTransientProperties); } \
NS_IMETHOD GetProperty(const nsACString & aName, nsIVariant * *_retval) override { return _to GetProperty(aName, _retval); } \
NS_IMETHOD SetProperty(const nsACString & aName, nsIVariant *aValue) override { return _to SetProperty(aName, aValue); } \
NS_IMETHOD DeleteProperty(const nsACString & aName) override { return _to DeleteProperty(aName); } \
NS_IMETHOD AddObserver(calIObserver *observer) override { return _to AddObserver(observer); } \
NS_IMETHOD RemoveObserver(calIObserver *observer) override { return _to RemoveObserver(observer); } \
NS_IMETHOD AddItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override { return _to AddItem(aItem, aListener, _retval); } \
NS_IMETHOD AdoptItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override { return _to AdoptItem(aItem, aListener, _retval); } \
NS_IMETHOD ModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem, calIOperationListener *aListener, calIOperation * *_retval) override { return _to ModifyItem(aNewItem, aOldItem, aListener, _retval); } \
NS_IMETHOD DeleteItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override { return _to DeleteItem(aItem, aListener, _retval); } \
NS_IMETHOD GetItem(const char * aId, calIOperationListener *aListener, calIOperation * *_retval) override { return _to GetItem(aId, aListener, _retval); } \
NS_IMETHOD GetItems(uint32_t aItemFilter, uint32_t aCount, calIDateTime *aRangeStart, calIDateTime *aRangeEndEx, calIOperationListener *aListener, calIOperation * *_retval) override { return _to GetItems(aItemFilter, aCount, aRangeStart, aRangeEndEx, aListener, _retval); } \
NS_IMETHOD Refresh(calIOperation * *_retval) override { return _to Refresh(_retval); } \
NS_IMETHOD StartBatch(void) override { return _to StartBatch(); } \
NS_IMETHOD EndBatch(void) override { return _to EndBatch(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALICALENDAR(_to) \
NS_IMETHOD GetId(nsACString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD SetId(const nsACString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD SetName(const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
NS_IMETHOD GetType(nsACString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_IMETHOD GetProviderID(nsAString & aProviderID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProviderID(aProviderID); } \
NS_IMETHOD GetAclManager(calICalendarACLManager * *aAclManager) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAclManager(aAclManager); } \
NS_IMETHOD GetAclEntry(calICalendarACLEntry * *aAclEntry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAclEntry(aAclEntry); } \
NS_IMETHOD GetSuperCalendar(calICalendar * *aSuperCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuperCalendar(aSuperCalendar); } \
NS_IMETHOD SetSuperCalendar(calICalendar *aSuperCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSuperCalendar(aSuperCalendar); } \
NS_IMETHOD GetUri(nsIURI * *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
NS_IMETHOD SetUri(nsIURI *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUri(aUri); } \
NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
NS_IMETHOD SetReadOnly(bool aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
NS_IMETHOD GetCanRefresh(bool *aCanRefresh) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanRefresh(aCanRefresh); } \
NS_IMETHOD GetTransientProperties(bool *aTransientProperties) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransientProperties(aTransientProperties); } \
NS_IMETHOD SetTransientProperties(bool aTransientProperties) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTransientProperties(aTransientProperties); } \
NS_IMETHOD GetProperty(const nsACString & aName, nsIVariant * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(aName, _retval); } \
NS_IMETHOD SetProperty(const nsACString & aName, nsIVariant *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(aName, aValue); } \
NS_IMETHOD DeleteProperty(const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteProperty(aName); } \
NS_IMETHOD AddObserver(calIObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer); } \
NS_IMETHOD RemoveObserver(calIObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); } \
NS_IMETHOD AddItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddItem(aItem, aListener, _retval); } \
NS_IMETHOD AdoptItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AdoptItem(aItem, aListener, _retval); } \
NS_IMETHOD ModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem, calIOperationListener *aListener, calIOperation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ModifyItem(aNewItem, aOldItem, aListener, _retval); } \
NS_IMETHOD DeleteItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteItem(aItem, aListener, _retval); } \
NS_IMETHOD GetItem(const char * aId, calIOperationListener *aListener, calIOperation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItem(aId, aListener, _retval); } \
NS_IMETHOD GetItems(uint32_t aItemFilter, uint32_t aCount, calIDateTime *aRangeStart, calIDateTime *aRangeEndEx, calIOperationListener *aListener, calIOperation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItems(aItemFilter, aCount, aRangeStart, aRangeEndEx, aListener, _retval); } \
NS_IMETHOD Refresh(calIOperation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Refresh(_retval); } \
NS_IMETHOD StartBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartBatch(); } \
NS_IMETHOD EndBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndBatch(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public calICalendar
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CALICALENDAR
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calICalendar)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* attribute AUTF8String id; */
NS_IMETHODIMP _MYCLASS_::GetId(nsACString & aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetId(const nsACString & aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AUTF8String name; */
NS_IMETHODIMP _MYCLASS_::GetName(nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetName(const nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String type; */
NS_IMETHODIMP _MYCLASS_::GetType(nsACString & aType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString providerID; */
NS_IMETHODIMP _MYCLASS_::GetProviderID(nsAString & aProviderID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute calICalendarACLManager aclManager; */
NS_IMETHODIMP _MYCLASS_::GetAclManager(calICalendarACLManager * *aAclManager)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute calICalendarACLEntry aclEntry; */
NS_IMETHODIMP _MYCLASS_::GetAclEntry(calICalendarACLEntry * *aAclEntry)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute calICalendar superCalendar; */
NS_IMETHODIMP _MYCLASS_::GetSuperCalendar(calICalendar * *aSuperCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetSuperCalendar(calICalendar *aSuperCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIURI uri; */
NS_IMETHODIMP _MYCLASS_::GetUri(nsIURI * *aUri)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetUri(nsIURI *aUri)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean readOnly; */
NS_IMETHODIMP _MYCLASS_::GetReadOnly(bool *aReadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetReadOnly(bool aReadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean canRefresh; */
NS_IMETHODIMP _MYCLASS_::GetCanRefresh(bool *aCanRefresh)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean transientProperties; */
NS_IMETHODIMP _MYCLASS_::GetTransientProperties(bool *aTransientProperties)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetTransientProperties(bool aTransientProperties)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIVariant getProperty (in AUTF8String aName); */
NS_IMETHODIMP _MYCLASS_::GetProperty(const nsACString & aName, nsIVariant * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setProperty (in AUTF8String aName, in nsIVariant aValue); */
NS_IMETHODIMP _MYCLASS_::SetProperty(const nsACString & aName, nsIVariant *aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteProperty (in AUTF8String aName); */
NS_IMETHODIMP _MYCLASS_::DeleteProperty(const nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addObserver (in calIObserver observer); */
NS_IMETHODIMP _MYCLASS_::AddObserver(calIObserver *observer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeObserver (in calIObserver observer); */
NS_IMETHODIMP _MYCLASS_::RemoveObserver(calIObserver *observer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calIOperation addItem (in calIItemBase aItem, in calIOperationListener aListener); */
NS_IMETHODIMP _MYCLASS_::AddItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calIOperation adoptItem (in calIItemBase aItem, in calIOperationListener aListener); */
NS_IMETHODIMP _MYCLASS_::AdoptItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calIOperation modifyItem (in calIItemBase aNewItem, in calIItemBase aOldItem, in calIOperationListener aListener); */
NS_IMETHODIMP _MYCLASS_::ModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem, calIOperationListener *aListener, calIOperation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calIOperation deleteItem (in calIItemBase aItem, in calIOperationListener aListener); */
NS_IMETHODIMP _MYCLASS_::DeleteItem(calIItemBase *aItem, calIOperationListener *aListener, calIOperation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calIOperation getItem (in string aId, in calIOperationListener aListener); */
NS_IMETHODIMP _MYCLASS_::GetItem(const char * aId, calIOperationListener *aListener, calIOperation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calIOperation getItems (in unsigned long aItemFilter, in unsigned long aCount, in calIDateTime aRangeStart, in calIDateTime aRangeEndEx, in calIOperationListener aListener); */
NS_IMETHODIMP _MYCLASS_::GetItems(uint32_t aItemFilter, uint32_t aCount, calIDateTime *aRangeStart, calIDateTime *aRangeEndEx, calIOperationListener *aListener, calIOperation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calIOperation refresh (); */
NS_IMETHODIMP _MYCLASS_::Refresh(calIOperation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void startBatch (); */
NS_IMETHODIMP _MYCLASS_::StartBatch()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void endBatch (); */
NS_IMETHODIMP _MYCLASS_::EndBatch()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: calICompositeCalendar */
#define CALICOMPOSITECALENDAR_IID_STR "6748fa00-79b5-4728-84f3-20dd47e0b031"
#define CALICOMPOSITECALENDAR_IID \
{0x6748fa00, 0x79b5, 0x4728, \
{ 0x84, 0xf3, 0x20, 0xdd, 0x47, 0xe0, 0xb0, 0x31 }}
class NS_NO_VTABLE calICompositeCalendar : public calICalendar {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(CALICOMPOSITECALENDAR_IID)
/* void addCalendar (in calICalendar aCalendar); */
NS_IMETHOD AddCalendar(calICalendar *aCalendar) = 0;
/* void removeCalendar (in calICalendar aCalendar); */
NS_IMETHOD RemoveCalendar(calICalendar *aCalendar) = 0;
/* calICalendar getCalendarById (in AUTF8String aId); */
NS_IMETHOD GetCalendarById(const nsACString & aId, calICalendar * *_retval) = 0;
/* void getCalendars (out uint32_t count, [array, size_is (count), retval] out calICalendar aCalendars); */
NS_IMETHOD GetCalendars(uint32_t *count, calICalendar * **aCalendars) = 0;
/* attribute calICalendar defaultCalendar; */
NS_IMETHOD GetDefaultCalendar(calICalendar * *aDefaultCalendar) = 0;
NS_IMETHOD SetDefaultCalendar(calICalendar *aDefaultCalendar) = 0;
/* attribute ACString prefPrefix; */
NS_IMETHOD GetPrefPrefix(nsACString & aPrefPrefix) = 0;
NS_IMETHOD SetPrefPrefix(const nsACString & aPrefPrefix) = 0;
/* readonly attribute boolean statusDisplayed; */
NS_IMETHOD GetStatusDisplayed(bool *aStatusDisplayed) = 0;
/* void setStatusObserver (in calIStatusObserver aStatusObserver, in nsIDOMChromeWindow aWindow); */
NS_IMETHOD SetStatusObserver(calIStatusObserver *aStatusObserver, nsIDOMChromeWindow *aWindow) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(calICompositeCalendar, CALICOMPOSITECALENDAR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALICOMPOSITECALENDAR \
NS_IMETHOD AddCalendar(calICalendar *aCalendar) override; \
NS_IMETHOD RemoveCalendar(calICalendar *aCalendar) override; \
NS_IMETHOD GetCalendarById(const nsACString & aId, calICalendar * *_retval) override; \
NS_IMETHOD GetCalendars(uint32_t *count, calICalendar * **aCalendars) override; \
NS_IMETHOD GetDefaultCalendar(calICalendar * *aDefaultCalendar) override; \
NS_IMETHOD SetDefaultCalendar(calICalendar *aDefaultCalendar) override; \
NS_IMETHOD GetPrefPrefix(nsACString & aPrefPrefix) override; \
NS_IMETHOD SetPrefPrefix(const nsACString & aPrefPrefix) override; \
NS_IMETHOD GetStatusDisplayed(bool *aStatusDisplayed) override; \
NS_IMETHOD SetStatusObserver(calIStatusObserver *aStatusObserver, nsIDOMChromeWindow *aWindow) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALICOMPOSITECALENDAR(_to) \
NS_IMETHOD AddCalendar(calICalendar *aCalendar) override { return _to AddCalendar(aCalendar); } \
NS_IMETHOD RemoveCalendar(calICalendar *aCalendar) override { return _to RemoveCalendar(aCalendar); } \
NS_IMETHOD GetCalendarById(const nsACString & aId, calICalendar * *_retval) override { return _to GetCalendarById(aId, _retval); } \
NS_IMETHOD GetCalendars(uint32_t *count, calICalendar * **aCalendars) override { return _to GetCalendars(count, aCalendars); } \
NS_IMETHOD GetDefaultCalendar(calICalendar * *aDefaultCalendar) override { return _to GetDefaultCalendar(aDefaultCalendar); } \
NS_IMETHOD SetDefaultCalendar(calICalendar *aDefaultCalendar) override { return _to SetDefaultCalendar(aDefaultCalendar); } \
NS_IMETHOD GetPrefPrefix(nsACString & aPrefPrefix) override { return _to GetPrefPrefix(aPrefPrefix); } \
NS_IMETHOD SetPrefPrefix(const nsACString & aPrefPrefix) override { return _to SetPrefPrefix(aPrefPrefix); } \
NS_IMETHOD GetStatusDisplayed(bool *aStatusDisplayed) override { return _to GetStatusDisplayed(aStatusDisplayed); } \
NS_IMETHOD SetStatusObserver(calIStatusObserver *aStatusObserver, nsIDOMChromeWindow *aWindow) override { return _to SetStatusObserver(aStatusObserver, aWindow); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALICOMPOSITECALENDAR(_to) \
NS_IMETHOD AddCalendar(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCalendar(aCalendar); } \
NS_IMETHOD RemoveCalendar(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCalendar(aCalendar); } \
NS_IMETHOD GetCalendarById(const nsACString & aId, calICalendar * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCalendarById(aId, _retval); } \
NS_IMETHOD GetCalendars(uint32_t *count, calICalendar * **aCalendars) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCalendars(count, aCalendars); } \
NS_IMETHOD GetDefaultCalendar(calICalendar * *aDefaultCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultCalendar(aDefaultCalendar); } \
NS_IMETHOD SetDefaultCalendar(calICalendar *aDefaultCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultCalendar(aDefaultCalendar); } \
NS_IMETHOD GetPrefPrefix(nsACString & aPrefPrefix) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefPrefix(aPrefPrefix); } \
NS_IMETHOD SetPrefPrefix(const nsACString & aPrefPrefix) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrefPrefix(aPrefPrefix); } \
NS_IMETHOD GetStatusDisplayed(bool *aStatusDisplayed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusDisplayed(aStatusDisplayed); } \
NS_IMETHOD SetStatusObserver(calIStatusObserver *aStatusObserver, nsIDOMChromeWindow *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusObserver(aStatusObserver, aWindow); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public calICompositeCalendar
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CALICOMPOSITECALENDAR
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calICompositeCalendar)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* void addCalendar (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::AddCalendar(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeCalendar (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::RemoveCalendar(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calICalendar getCalendarById (in AUTF8String aId); */
NS_IMETHODIMP _MYCLASS_::GetCalendarById(const nsACString & aId, calICalendar * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getCalendars (out uint32_t count, [array, size_is (count), retval] out calICalendar aCalendars); */
NS_IMETHODIMP _MYCLASS_::GetCalendars(uint32_t *count, calICalendar * **aCalendars)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute calICalendar defaultCalendar; */
NS_IMETHODIMP _MYCLASS_::GetDefaultCalendar(calICalendar * *aDefaultCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetDefaultCalendar(calICalendar *aDefaultCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute ACString prefPrefix; */
NS_IMETHODIMP _MYCLASS_::GetPrefPrefix(nsACString & aPrefPrefix)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetPrefPrefix(const nsACString & aPrefPrefix)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean statusDisplayed; */
NS_IMETHODIMP _MYCLASS_::GetStatusDisplayed(bool *aStatusDisplayed)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setStatusObserver (in calIStatusObserver aStatusObserver, in nsIDOMChromeWindow aWindow); */
NS_IMETHODIMP _MYCLASS_::SetStatusObserver(calIStatusObserver *aStatusObserver, nsIDOMChromeWindow *aWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: calIObserver */
#define CALIOBSERVER_IID_STR "2953c9b2-2c73-11d9-80b6-00045ace3b8d"
#define CALIOBSERVER_IID \
{0x2953c9b2, 0x2c73, 0x11d9, \
{ 0x80, 0xb6, 0x00, 0x04, 0x5a, 0xce, 0x3b, 0x8d }}
class NS_NO_VTABLE calIObserver : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(CALIOBSERVER_IID)
/* void onStartBatch (); */
NS_IMETHOD OnStartBatch(void) = 0;
/* void onEndBatch (); */
NS_IMETHOD OnEndBatch(void) = 0;
/* void onLoad (in calICalendar aCalendar); */
NS_IMETHOD OnLoad(calICalendar *aCalendar) = 0;
/* void onAddItem (in calIItemBase aItem); */
NS_IMETHOD OnAddItem(calIItemBase *aItem) = 0;
/* void onModifyItem (in calIItemBase aNewItem, in calIItemBase aOldItem); */
NS_IMETHOD OnModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem) = 0;
/* void onDeleteItem (in calIItemBase aDeletedItem); */
NS_IMETHOD OnDeleteItem(calIItemBase *aDeletedItem) = 0;
/* void onError (in calICalendar aCalendar, in nsresult aErrNo, in AUTF8String aMessage); */
NS_IMETHOD OnError(calICalendar *aCalendar, nsresult aErrNo, const nsACString & aMessage) = 0;
/* void onPropertyChanged (in calICalendar aCalendar, in AUTF8String aName, in nsIVariant aValue, in nsIVariant aOldValue); */
NS_IMETHOD OnPropertyChanged(calICalendar *aCalendar, const nsACString & aName, nsIVariant *aValue, nsIVariant *aOldValue) = 0;
/* void onPropertyDeleting (in calICalendar aCalendar, in AUTF8String aName); */
NS_IMETHOD OnPropertyDeleting(calICalendar *aCalendar, const nsACString & aName) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(calIObserver, CALIOBSERVER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIOBSERVER \
NS_IMETHOD OnStartBatch(void) override; \
NS_IMETHOD OnEndBatch(void) override; \
NS_IMETHOD OnLoad(calICalendar *aCalendar) override; \
NS_IMETHOD OnAddItem(calIItemBase *aItem) override; \
NS_IMETHOD OnModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem) override; \
NS_IMETHOD OnDeleteItem(calIItemBase *aDeletedItem) override; \
NS_IMETHOD OnError(calICalendar *aCalendar, nsresult aErrNo, const nsACString & aMessage) override; \
NS_IMETHOD OnPropertyChanged(calICalendar *aCalendar, const nsACString & aName, nsIVariant *aValue, nsIVariant *aOldValue) override; \
NS_IMETHOD OnPropertyDeleting(calICalendar *aCalendar, const nsACString & aName) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIOBSERVER(_to) \
NS_IMETHOD OnStartBatch(void) override { return _to OnStartBatch(); } \
NS_IMETHOD OnEndBatch(void) override { return _to OnEndBatch(); } \
NS_IMETHOD OnLoad(calICalendar *aCalendar) override { return _to OnLoad(aCalendar); } \
NS_IMETHOD OnAddItem(calIItemBase *aItem) override { return _to OnAddItem(aItem); } \
NS_IMETHOD OnModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem) override { return _to OnModifyItem(aNewItem, aOldItem); } \
NS_IMETHOD OnDeleteItem(calIItemBase *aDeletedItem) override { return _to OnDeleteItem(aDeletedItem); } \
NS_IMETHOD OnError(calICalendar *aCalendar, nsresult aErrNo, const nsACString & aMessage) override { return _to OnError(aCalendar, aErrNo, aMessage); } \
NS_IMETHOD OnPropertyChanged(calICalendar *aCalendar, const nsACString & aName, nsIVariant *aValue, nsIVariant *aOldValue) override { return _to OnPropertyChanged(aCalendar, aName, aValue, aOldValue); } \
NS_IMETHOD OnPropertyDeleting(calICalendar *aCalendar, const nsACString & aName) override { return _to OnPropertyDeleting(aCalendar, aName); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIOBSERVER(_to) \
NS_IMETHOD OnStartBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartBatch(); } \
NS_IMETHOD OnEndBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndBatch(); } \
NS_IMETHOD OnLoad(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLoad(aCalendar); } \
NS_IMETHOD OnAddItem(calIItemBase *aItem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAddItem(aItem); } \
NS_IMETHOD OnModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnModifyItem(aNewItem, aOldItem); } \
NS_IMETHOD OnDeleteItem(calIItemBase *aDeletedItem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeleteItem(aDeletedItem); } \
NS_IMETHOD OnError(calICalendar *aCalendar, nsresult aErrNo, const nsACString & aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aCalendar, aErrNo, aMessage); } \
NS_IMETHOD OnPropertyChanged(calICalendar *aCalendar, const nsACString & aName, nsIVariant *aValue, nsIVariant *aOldValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPropertyChanged(aCalendar, aName, aValue, aOldValue); } \
NS_IMETHOD OnPropertyDeleting(calICalendar *aCalendar, const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPropertyDeleting(aCalendar, aName); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public calIObserver
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CALIOBSERVER
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIObserver)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* void onStartBatch (); */
NS_IMETHODIMP _MYCLASS_::OnStartBatch()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onEndBatch (); */
NS_IMETHODIMP _MYCLASS_::OnEndBatch()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onLoad (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::OnLoad(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onAddItem (in calIItemBase aItem); */
NS_IMETHODIMP _MYCLASS_::OnAddItem(calIItemBase *aItem)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onModifyItem (in calIItemBase aNewItem, in calIItemBase aOldItem); */
NS_IMETHODIMP _MYCLASS_::OnModifyItem(calIItemBase *aNewItem, calIItemBase *aOldItem)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onDeleteItem (in calIItemBase aDeletedItem); */
NS_IMETHODIMP _MYCLASS_::OnDeleteItem(calIItemBase *aDeletedItem)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onError (in calICalendar aCalendar, in nsresult aErrNo, in AUTF8String aMessage); */
NS_IMETHODIMP _MYCLASS_::OnError(calICalendar *aCalendar, nsresult aErrNo, const nsACString & aMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onPropertyChanged (in calICalendar aCalendar, in AUTF8String aName, in nsIVariant aValue, in nsIVariant aOldValue); */
NS_IMETHODIMP _MYCLASS_::OnPropertyChanged(calICalendar *aCalendar, const nsACString & aName, nsIVariant *aValue, nsIVariant *aOldValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onPropertyDeleting (in calICalendar aCalendar, in AUTF8String aName); */
NS_IMETHODIMP _MYCLASS_::OnPropertyDeleting(calICalendar *aCalendar, const nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: calICompositeObserver */
#define CALICOMPOSITEOBSERVER_IID_STR "a3584c92-b8eb-4aa8-a638-e46a2e11d6a9"
#define CALICOMPOSITEOBSERVER_IID \
{0xa3584c92, 0xb8eb, 0x4aa8, \
{ 0xa6, 0x38, 0xe4, 0x6a, 0x2e, 0x11, 0xd6, 0xa9 }}
class NS_NO_VTABLE calICompositeObserver : public calIObserver {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(CALICOMPOSITEOBSERVER_IID)
/* void onCalendarAdded (in calICalendar aCalendar); */
NS_IMETHOD OnCalendarAdded(calICalendar *aCalendar) = 0;
/* void onCalendarRemoved (in calICalendar aCalendar); */
NS_IMETHOD OnCalendarRemoved(calICalendar *aCalendar) = 0;
/* void onDefaultCalendarChanged (in calICalendar aNewDefaultCalendar); */
NS_IMETHOD OnDefaultCalendarChanged(calICalendar *aNewDefaultCalendar) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(calICompositeObserver, CALICOMPOSITEOBSERVER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALICOMPOSITEOBSERVER \
NS_IMETHOD OnCalendarAdded(calICalendar *aCalendar) override; \
NS_IMETHOD OnCalendarRemoved(calICalendar *aCalendar) override; \
NS_IMETHOD OnDefaultCalendarChanged(calICalendar *aNewDefaultCalendar) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALICOMPOSITEOBSERVER(_to) \
NS_IMETHOD OnCalendarAdded(calICalendar *aCalendar) override { return _to OnCalendarAdded(aCalendar); } \
NS_IMETHOD OnCalendarRemoved(calICalendar *aCalendar) override { return _to OnCalendarRemoved(aCalendar); } \
NS_IMETHOD OnDefaultCalendarChanged(calICalendar *aNewDefaultCalendar) override { return _to OnDefaultCalendarChanged(aNewDefaultCalendar); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALICOMPOSITEOBSERVER(_to) \
NS_IMETHOD OnCalendarAdded(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCalendarAdded(aCalendar); } \
NS_IMETHOD OnCalendarRemoved(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCalendarRemoved(aCalendar); } \
NS_IMETHOD OnDefaultCalendarChanged(calICalendar *aNewDefaultCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDefaultCalendarChanged(aNewDefaultCalendar); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public calICompositeObserver
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CALICOMPOSITEOBSERVER
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calICompositeObserver)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* void onCalendarAdded (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::OnCalendarAdded(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onCalendarRemoved (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::OnCalendarRemoved(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onDefaultCalendarChanged (in calICalendar aNewDefaultCalendar); */
NS_IMETHODIMP _MYCLASS_::OnDefaultCalendarChanged(calICalendar *aNewDefaultCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: calIOperationListener */
#define CALIOPERATIONLISTENER_IID_STR "ed3d87d8-2c77-11d9-8f5f-00045ace3b8d"
#define CALIOPERATIONLISTENER_IID \
{0xed3d87d8, 0x2c77, 0x11d9, \
{ 0x8f, 0x5f, 0x00, 0x04, 0x5a, 0xce, 0x3b, 0x8d }}
class NS_NO_VTABLE calIOperationListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(CALIOPERATIONLISTENER_IID)
/* void onOperationComplete (in calICalendar aCalendar, in nsresult aStatus, in unsigned long aOperationType, in string aId, in nsIVariant aDetail); */
NS_IMETHOD OnOperationComplete(calICalendar *aCalendar, nsresult aStatus, uint32_t aOperationType, const char * aId, nsIVariant *aDetail) = 0;
enum {
ADD = 1U,
MODIFY = 2U,
DELETE = 3U,
GET = 4U
};
/* void onGetResult (in calICalendar aCalendar, in nsresult aStatus, in nsIIDRef aItemType, in nsIVariant aDetail, in uint32_t aCount, [array, size_is (aCount), iid_is (aItemType)] in nsQIResult aItems); */
NS_IMETHOD OnGetResult(calICalendar *aCalendar, nsresult aStatus, const nsIID & aItemType, nsIVariant *aDetail, uint32_t aCount, void **aItems) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(calIOperationListener, CALIOPERATIONLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIOPERATIONLISTENER \
NS_IMETHOD OnOperationComplete(calICalendar *aCalendar, nsresult aStatus, uint32_t aOperationType, const char * aId, nsIVariant *aDetail) override; \
NS_IMETHOD OnGetResult(calICalendar *aCalendar, nsresult aStatus, const nsIID & aItemType, nsIVariant *aDetail, uint32_t aCount, void **aItems) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIOPERATIONLISTENER(_to) \
NS_IMETHOD OnOperationComplete(calICalendar *aCalendar, nsresult aStatus, uint32_t aOperationType, const char * aId, nsIVariant *aDetail) override { return _to OnOperationComplete(aCalendar, aStatus, aOperationType, aId, aDetail); } \
NS_IMETHOD OnGetResult(calICalendar *aCalendar, nsresult aStatus, const nsIID & aItemType, nsIVariant *aDetail, uint32_t aCount, void **aItems) override { return _to OnGetResult(aCalendar, aStatus, aItemType, aDetail, aCount, aItems); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIOPERATIONLISTENER(_to) \
NS_IMETHOD OnOperationComplete(calICalendar *aCalendar, nsresult aStatus, uint32_t aOperationType, const char * aId, nsIVariant *aDetail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnOperationComplete(aCalendar, aStatus, aOperationType, aId, aDetail); } \
NS_IMETHOD OnGetResult(calICalendar *aCalendar, nsresult aStatus, const nsIID & aItemType, nsIVariant *aDetail, uint32_t aCount, void **aItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnGetResult(aCalendar, aStatus, aItemType, aDetail, aCount, aItems); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public calIOperationListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CALIOPERATIONLISTENER
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIOperationListener)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* void onOperationComplete (in calICalendar aCalendar, in nsresult aStatus, in unsigned long aOperationType, in string aId, in nsIVariant aDetail); */
NS_IMETHODIMP _MYCLASS_::OnOperationComplete(calICalendar *aCalendar, nsresult aStatus, uint32_t aOperationType, const char * aId, nsIVariant *aDetail)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onGetResult (in calICalendar aCalendar, in nsresult aStatus, in nsIIDRef aItemType, in nsIVariant aDetail, in uint32_t aCount, [array, size_is (aCount), iid_is (aItemType)] in nsQIResult aItems); */
NS_IMETHODIMP _MYCLASS_::OnGetResult(calICalendar *aCalendar, nsresult aStatus, const nsIID & aItemType, nsIVariant *aDetail, uint32_t aCount, void **aItems)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_calICalendar_h__ */
|