/usr/include/thunderbird/calICalendarManager.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/calICalendarManager.idl
*/
#ifndef __gen_calICalendarManager_h__
#define __gen_calICalendarManager_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 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; */
NS_IMETHOD GetNetworkCalendarCount(uint32_t *aNetworkCalendarCount) = 0;
/* readonly attribute uint32_t readOnlyCalendarCount; */
NS_IMETHOD GetReadOnlyCalendarCount(uint32_t *aReadOnlyCalendarCount) = 0;
/* readonly attribute uint32_t calendarCount; */
NS_IMETHOD GetCalendarCount(uint32_t *aCalendarCount) = 0;
/* calICalendar createCalendar (in AUTF8String aType, in nsIURI aURL); */
NS_IMETHOD CreateCalendar(const nsACString & aType, nsIURI *aURL, calICalendar * *_retval) = 0;
/* void registerCalendar (in calICalendar aCalendar); */
NS_IMETHOD RegisterCalendar(calICalendar *aCalendar) = 0;
/* void unregisterCalendar (in calICalendar aCalendar); */
NS_IMETHOD UnregisterCalendar(calICalendar *aCalendar) = 0;
/* void deleteCalendar (in calICalendar aCalendar); */
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); */
NS_IMETHOD RemoveCalendar(calICalendar *aCalendar, uint8_t aMode) = 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;
/* void addObserver (in calICalendarManagerObserver aObserver); */
NS_IMETHOD AddObserver(calICalendarManagerObserver *aObserver) = 0;
/* void removeObserver (in calICalendarManagerObserver aObserver); */
NS_IMETHOD RemoveObserver(calICalendarManagerObserver *aObserver) = 0;
/* void addCalendarObserver (in calIObserver aObserver); */
NS_IMETHOD AddCalendarObserver(calIObserver *aObserver) = 0;
/* void removeCalendarObserver (in calIObserver aObserver); */
NS_IMETHOD RemoveCalendarObserver(calIObserver *aObserver) = 0;
/* nsIVariant getCalendarPref_ (in calICalendar aCalendar, in AUTF8String aName); */
NS_IMETHOD GetCalendarPref_(calICalendar *aCalendar, const nsACString & aName, nsIVariant * *_retval) = 0;
/* void setCalendarPref_ (in calICalendar aCalendar, in nsIVariant aName, in nsIVariant aValue); */
NS_IMETHOD SetCalendarPref_(calICalendar *aCalendar, nsIVariant *aName, nsIVariant *aValue) = 0;
/* void deleteCalendarPref_ (in calICalendar aCalendar, in AUTF8String aName); */
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 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); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public calICalendarManager
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CALICALENDARMANAGER
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calICalendarManager)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* readonly attribute uint32_t networkCalendarCount; */
NS_IMETHODIMP _MYCLASS_::GetNetworkCalendarCount(uint32_t *aNetworkCalendarCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t readOnlyCalendarCount; */
NS_IMETHODIMP _MYCLASS_::GetReadOnlyCalendarCount(uint32_t *aReadOnlyCalendarCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t calendarCount; */
NS_IMETHODIMP _MYCLASS_::GetCalendarCount(uint32_t *aCalendarCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* calICalendar createCalendar (in AUTF8String aType, in nsIURI aURL); */
NS_IMETHODIMP _MYCLASS_::CreateCalendar(const nsACString & aType, nsIURI *aURL, calICalendar * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void registerCalendar (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::RegisterCalendar(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterCalendar (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::UnregisterCalendar(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteCalendar (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::DeleteCalendar(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeCalendar (in calICalendar aCalendar, [optional] in uint8_t aMode); */
NS_IMETHODIMP _MYCLASS_::RemoveCalendar(calICalendar *aCalendar, uint8_t aMode)
{
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;
}
/* void addObserver (in calICalendarManagerObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::AddObserver(calICalendarManagerObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeObserver (in calICalendarManagerObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::RemoveObserver(calICalendarManagerObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addCalendarObserver (in calIObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::AddCalendarObserver(calIObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeCalendarObserver (in calIObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::RemoveCalendarObserver(calIObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIVariant getCalendarPref_ (in calICalendar aCalendar, in AUTF8String aName); */
NS_IMETHODIMP _MYCLASS_::GetCalendarPref_(calICalendar *aCalendar, const nsACString & aName, nsIVariant * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setCalendarPref_ (in calICalendar aCalendar, in nsIVariant aName, in nsIVariant aValue); */
NS_IMETHODIMP _MYCLASS_::SetCalendarPref_(calICalendar *aCalendar, nsIVariant *aName, nsIVariant *aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteCalendarPref_ (in calICalendar aCalendar, in AUTF8String aName); */
NS_IMETHODIMP _MYCLASS_::DeleteCalendarPref_(calICalendar *aCalendar, const nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* 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); */
NS_IMETHOD OnCalendarRegistered(calICalendar *aCalendar) = 0;
/* void onCalendarUnregistering (in calICalendar aCalendar); */
NS_IMETHOD OnCalendarUnregistering(calICalendar *aCalendar) = 0;
/* void onCalendarDeleting (in calICalendar aCalendar); */
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 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); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public calICalendarManagerObserver
{
public:
NS_DECL_ISUPPORTS
NS_DECL_CALICALENDARMANAGEROBSERVER
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calICalendarManagerObserver)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* void onCalendarRegistered (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::OnCalendarRegistered(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onCalendarUnregistering (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::OnCalendarUnregistering(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onCalendarDeleting (in calICalendar aCalendar); */
NS_IMETHODIMP _MYCLASS_::OnCalendarDeleting(calICalendar *aCalendar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_calICalendarManager_h__ */
|