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

#ifndef __gen_calICalendarManager_h__
#define __gen_calICalendarManager_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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 calICalendar; /* forward declaration */

class calIObserver; /* forward declaration */

class nsIURI; /* forward declaration */

class nsIVariant; /* forward declaration */

class calICalendarManagerObserver; /* forward declaration */


/* starting interface:    calICalendarManager */
#define CALICALENDARMANAGER_IID_STR "fd8a2565-cb0f-4ecc-945d-760d75ab16d8"

#define CALICALENDARMANAGER_IID \
  {0xfd8a2565, 0xcb0f, 0x4ecc, \
    { 0x94, 0x5d, 0x76, 0x0d, 0x75, 0xab, 0x16, 0xd8 }}

class NS_NO_VTABLE calICalendarManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALICALENDARMANAGER_IID)

  /* readonly attribute uint32_t networkCalendarCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNetworkCalendarCount(uint32_t *aNetworkCalendarCount) = 0;

  /* readonly attribute uint32_t readOnlyCalendarCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReadOnlyCalendarCount(uint32_t *aReadOnlyCalendarCount) = 0;

  /* readonly attribute uint32_t calendarCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCalendarCount(uint32_t *aCalendarCount) = 0;

  /* calICalendar createCalendar (in AUTF8String aType, in nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateCalendar(const nsACString& aType, nsIURI *aURL, calICalendar **_retval) = 0;

  /* void registerCalendar (in calICalendar aCalendar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterCalendar(calICalendar *aCalendar) = 0;

  /* void unregisterCalendar (in calICalendar aCalendar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnregisterCalendar(calICalendar *aCalendar) = 0;

  /* void deleteCalendar (in calICalendar aCalendar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteCalendar(calICalendar *aCalendar) = 0;

  enum {
    REMOVE_AUTO = 0U,
    REMOVE_NO_DELETE = 1U,
    REMOVE_NO_UNREGISTER = 2U
  };

  /* void removeCalendar (in calICalendar aCalendar, [optional] in uint8_t aMode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveCalendar(calICalendar *aCalendar, uint8_t aMode) = 0;

  /* calICalendar getCalendarById (in AUTF8String aId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCalendarById(const nsACString& aId, calICalendar **_retval) = 0;

  /* void getCalendars (out uint32_t count, [array, size_is (count), retval] out calICalendar aCalendars); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCalendars(uint32_t *count, calICalendar ***aCalendars) = 0;

  /* void addObserver (in calICalendarManagerObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddObserver(calICalendarManagerObserver *aObserver) = 0;

  /* void removeObserver (in calICalendarManagerObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveObserver(calICalendarManagerObserver *aObserver) = 0;

  /* void addCalendarObserver (in calIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddCalendarObserver(calIObserver *aObserver) = 0;

  /* void removeCalendarObserver (in calIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveCalendarObserver(calIObserver *aObserver) = 0;

  /* nsIVariant getCalendarPref_ (in calICalendar aCalendar, in AUTF8String aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCalendarPref_(calICalendar *aCalendar, const nsACString& aName, nsIVariant **_retval) = 0;

  /* void setCalendarPref_ (in calICalendar aCalendar, in nsIVariant aName, in nsIVariant aValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCalendarPref_(calICalendar *aCalendar, nsIVariant *aName, nsIVariant *aValue) = 0;

  /* void deleteCalendarPref_ (in calICalendar aCalendar, in AUTF8String aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteCalendarPref_(calICalendar *aCalendar, const nsACString& aName) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calICalendarManager, CALICALENDARMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALICALENDARMANAGER \
  NS_IMETHOD GetNetworkCalendarCount(uint32_t *aNetworkCalendarCount) override; \
  NS_IMETHOD GetReadOnlyCalendarCount(uint32_t *aReadOnlyCalendarCount) override; \
  NS_IMETHOD GetCalendarCount(uint32_t *aCalendarCount) override; \
  NS_IMETHOD CreateCalendar(const nsACString& aType, nsIURI *aURL, calICalendar **_retval) override; \
  NS_IMETHOD RegisterCalendar(calICalendar *aCalendar) override; \
  NS_IMETHOD UnregisterCalendar(calICalendar *aCalendar) override; \
  NS_IMETHOD DeleteCalendar(calICalendar *aCalendar) override; \
  NS_IMETHOD RemoveCalendar(calICalendar *aCalendar, uint8_t aMode) override; \
  NS_IMETHOD GetCalendarById(const nsACString& aId, calICalendar **_retval) override; \
  NS_IMETHOD GetCalendars(uint32_t *count, calICalendar ***aCalendars) override; \
  NS_IMETHOD AddObserver(calICalendarManagerObserver *aObserver) override; \
  NS_IMETHOD RemoveObserver(calICalendarManagerObserver *aObserver) override; \
  NS_IMETHOD AddCalendarObserver(calIObserver *aObserver) override; \
  NS_IMETHOD RemoveCalendarObserver(calIObserver *aObserver) override; \
  NS_IMETHOD GetCalendarPref_(calICalendar *aCalendar, const nsACString& aName, nsIVariant **_retval) override; \
  NS_IMETHOD SetCalendarPref_(calICalendar *aCalendar, nsIVariant *aName, nsIVariant *aValue) override; \
  NS_IMETHOD DeleteCalendarPref_(calICalendar *aCalendar, const nsACString& aName) 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_CALICALENDARMANAGER \
  nsresult GetNetworkCalendarCount(uint32_t *aNetworkCalendarCount); \
  nsresult GetReadOnlyCalendarCount(uint32_t *aReadOnlyCalendarCount); \
  nsresult GetCalendarCount(uint32_t *aCalendarCount); \
  nsresult CreateCalendar(const nsACString& aType, nsIURI *aURL, calICalendar **_retval); \
  nsresult RegisterCalendar(calICalendar *aCalendar); \
  nsresult UnregisterCalendar(calICalendar *aCalendar); \
  nsresult DeleteCalendar(calICalendar *aCalendar); \
  nsresult RemoveCalendar(calICalendar *aCalendar, uint8_t aMode); \
  nsresult GetCalendarById(const nsACString& aId, calICalendar **_retval); \
  nsresult GetCalendars(uint32_t *count, calICalendar ***aCalendars); \
  nsresult AddObserver(calICalendarManagerObserver *aObserver); \
  nsresult RemoveObserver(calICalendarManagerObserver *aObserver); \
  nsresult AddCalendarObserver(calIObserver *aObserver); \
  nsresult RemoveCalendarObserver(calIObserver *aObserver); \
  nsresult GetCalendarPref_(calICalendar *aCalendar, const nsACString& aName, nsIVariant **_retval); \
  nsresult SetCalendarPref_(calICalendar *aCalendar, nsIVariant *aName, nsIVariant *aValue); \
  nsresult DeleteCalendarPref_(calICalendar *aCalendar, const nsACString& aName); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALICALENDARMANAGER(_to) \
  NS_IMETHOD GetNetworkCalendarCount(uint32_t *aNetworkCalendarCount) override { return _to GetNetworkCalendarCount(aNetworkCalendarCount); } \
  NS_IMETHOD GetReadOnlyCalendarCount(uint32_t *aReadOnlyCalendarCount) override { return _to GetReadOnlyCalendarCount(aReadOnlyCalendarCount); } \
  NS_IMETHOD GetCalendarCount(uint32_t *aCalendarCount) override { return _to GetCalendarCount(aCalendarCount); } \
  NS_IMETHOD CreateCalendar(const nsACString& aType, nsIURI *aURL, calICalendar **_retval) override { return _to CreateCalendar(aType, aURL, _retval); } \
  NS_IMETHOD RegisterCalendar(calICalendar *aCalendar) override { return _to RegisterCalendar(aCalendar); } \
  NS_IMETHOD UnregisterCalendar(calICalendar *aCalendar) override { return _to UnregisterCalendar(aCalendar); } \
  NS_IMETHOD DeleteCalendar(calICalendar *aCalendar) override { return _to DeleteCalendar(aCalendar); } \
  NS_IMETHOD RemoveCalendar(calICalendar *aCalendar, uint8_t aMode) override { return _to RemoveCalendar(aCalendar, aMode); } \
  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 AddObserver(calICalendarManagerObserver *aObserver) override { return _to AddObserver(aObserver); } \
  NS_IMETHOD RemoveObserver(calICalendarManagerObserver *aObserver) override { return _to RemoveObserver(aObserver); } \
  NS_IMETHOD AddCalendarObserver(calIObserver *aObserver) override { return _to AddCalendarObserver(aObserver); } \
  NS_IMETHOD RemoveCalendarObserver(calIObserver *aObserver) override { return _to RemoveCalendarObserver(aObserver); } \
  NS_IMETHOD GetCalendarPref_(calICalendar *aCalendar, const nsACString& aName, nsIVariant **_retval) override { return _to GetCalendarPref_(aCalendar, aName, _retval); } \
  NS_IMETHOD SetCalendarPref_(calICalendar *aCalendar, nsIVariant *aName, nsIVariant *aValue) override { return _to SetCalendarPref_(aCalendar, aName, aValue); } \
  NS_IMETHOD DeleteCalendarPref_(calICalendar *aCalendar, const nsACString& aName) override { return _to DeleteCalendarPref_(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_CALICALENDARMANAGER(_to) \
  NS_IMETHOD GetNetworkCalendarCount(uint32_t *aNetworkCalendarCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetworkCalendarCount(aNetworkCalendarCount); } \
  NS_IMETHOD GetReadOnlyCalendarCount(uint32_t *aReadOnlyCalendarCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnlyCalendarCount(aReadOnlyCalendarCount); } \
  NS_IMETHOD GetCalendarCount(uint32_t *aCalendarCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCalendarCount(aCalendarCount); } \
  NS_IMETHOD CreateCalendar(const nsACString& aType, nsIURI *aURL, calICalendar **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateCalendar(aType, aURL, _retval); } \
  NS_IMETHOD RegisterCalendar(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterCalendar(aCalendar); } \
  NS_IMETHOD UnregisterCalendar(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterCalendar(aCalendar); } \
  NS_IMETHOD DeleteCalendar(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCalendar(aCalendar); } \
  NS_IMETHOD RemoveCalendar(calICalendar *aCalendar, uint8_t aMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCalendar(aCalendar, aMode); } \
  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 AddObserver(calICalendarManagerObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
  NS_IMETHOD RemoveObserver(calICalendarManagerObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
  NS_IMETHOD AddCalendarObserver(calIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCalendarObserver(aObserver); } \
  NS_IMETHOD RemoveCalendarObserver(calIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCalendarObserver(aObserver); } \
  NS_IMETHOD GetCalendarPref_(calICalendar *aCalendar, const nsACString& aName, nsIVariant **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCalendarPref_(aCalendar, aName, _retval); } \
  NS_IMETHOD SetCalendarPref_(calICalendar *aCalendar, nsIVariant *aName, nsIVariant *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCalendarPref_(aCalendar, aName, aValue); } \
  NS_IMETHOD DeleteCalendarPref_(calICalendar *aCalendar, const nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCalendarPref_(aCalendar, aName); } 


/* starting interface:    calICalendarManagerObserver */
#define CALICALENDARMANAGEROBSERVER_IID_STR "383f36f1-e669-4ca4-be7f-06b43910f44a"

#define CALICALENDARMANAGEROBSERVER_IID \
  {0x383f36f1, 0xe669, 0x4ca4, \
    { 0xbe, 0x7f, 0x06, 0xb4, 0x39, 0x10, 0xf4, 0x4a }}

class NS_NO_VTABLE calICalendarManagerObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALICALENDARMANAGEROBSERVER_IID)

  /* void onCalendarRegistered (in calICalendar aCalendar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCalendarRegistered(calICalendar *aCalendar) = 0;

  /* void onCalendarUnregistering (in calICalendar aCalendar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCalendarUnregistering(calICalendar *aCalendar) = 0;

  /* void onCalendarDeleting (in calICalendar aCalendar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCalendarDeleting(calICalendar *aCalendar) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calICalendarManagerObserver, CALICALENDARMANAGEROBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALICALENDARMANAGEROBSERVER \
  NS_IMETHOD OnCalendarRegistered(calICalendar *aCalendar) override; \
  NS_IMETHOD OnCalendarUnregistering(calICalendar *aCalendar) override; \
  NS_IMETHOD OnCalendarDeleting(calICalendar *aCalendar) 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_CALICALENDARMANAGEROBSERVER \
  nsresult OnCalendarRegistered(calICalendar *aCalendar); \
  nsresult OnCalendarUnregistering(calICalendar *aCalendar); \
  nsresult OnCalendarDeleting(calICalendar *aCalendar); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALICALENDARMANAGEROBSERVER(_to) \
  NS_IMETHOD OnCalendarRegistered(calICalendar *aCalendar) override { return _to OnCalendarRegistered(aCalendar); } \
  NS_IMETHOD OnCalendarUnregistering(calICalendar *aCalendar) override { return _to OnCalendarUnregistering(aCalendar); } \
  NS_IMETHOD OnCalendarDeleting(calICalendar *aCalendar) override { return _to OnCalendarDeleting(aCalendar); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALICALENDARMANAGEROBSERVER(_to) \
  NS_IMETHOD OnCalendarRegistered(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCalendarRegistered(aCalendar); } \
  NS_IMETHOD OnCalendarUnregistering(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCalendarUnregistering(aCalendar); } \
  NS_IMETHOD OnCalendarDeleting(calICalendar *aCalendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCalendarDeleting(aCalendar); } 


#endif /* __gen_calICalendarManager_h__ */