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

#ifndef __gen_calIAlarmService_h__
#define __gen_calIAlarmService_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 calIItemBase; /* forward declaration */

class calICalendar; /* forward declaration */

class calIDuration; /* forward declaration */

class calITimezone; /* forward declaration */

class calIAlarm; /* forward declaration */

class calIOperation; /* forward declaration */


/* starting interface:    calIAlarmServiceObserver */
#define CALIALARMSERVICEOBSERVER_IID_STR "dc96dd04-d2dd-448e-b307-8c8ff39c72af"

#define CALIALARMSERVICEOBSERVER_IID \
  {0xdc96dd04, 0xd2dd, 0x448e, \
    { 0xb3, 0x07, 0x8c, 0x8f, 0xf3, 0x9c, 0x72, 0xaf }}

class NS_NO_VTABLE calIAlarmServiceObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIALARMSERVICEOBSERVER_IID)

  /* void onAlarm (in calIItemBase item, in calIAlarm alarm); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnAlarm(calIItemBase *item, calIAlarm *alarm) = 0;

  /* void onRemoveAlarmsByItem (in calIItemBase item); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnRemoveAlarmsByItem(calIItemBase *item) = 0;

  /* void onRemoveAlarmsByCalendar (in calICalendar calendar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnRemoveAlarmsByCalendar(calICalendar *calendar) = 0;

  /* void onAlarmsLoaded (in calICalendar calendar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnAlarmsLoaded(calICalendar *calendar) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIAlarmServiceObserver, CALIALARMSERVICEOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIALARMSERVICEOBSERVER \
  NS_IMETHOD OnAlarm(calIItemBase *item, calIAlarm *alarm) override; \
  NS_IMETHOD OnRemoveAlarmsByItem(calIItemBase *item) override; \
  NS_IMETHOD OnRemoveAlarmsByCalendar(calICalendar *calendar) override; \
  NS_IMETHOD OnAlarmsLoaded(calICalendar *calendar) 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_CALIALARMSERVICEOBSERVER \
  nsresult OnAlarm(calIItemBase *item, calIAlarm *alarm); \
  nsresult OnRemoveAlarmsByItem(calIItemBase *item); \
  nsresult OnRemoveAlarmsByCalendar(calICalendar *calendar); \
  nsresult OnAlarmsLoaded(calICalendar *calendar); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIALARMSERVICEOBSERVER(_to) \
  NS_IMETHOD OnAlarm(calIItemBase *item, calIAlarm *alarm) override { return _to OnAlarm(item, alarm); } \
  NS_IMETHOD OnRemoveAlarmsByItem(calIItemBase *item) override { return _to OnRemoveAlarmsByItem(item); } \
  NS_IMETHOD OnRemoveAlarmsByCalendar(calICalendar *calendar) override { return _to OnRemoveAlarmsByCalendar(calendar); } \
  NS_IMETHOD OnAlarmsLoaded(calICalendar *calendar) override { return _to OnAlarmsLoaded(calendar); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIALARMSERVICEOBSERVER(_to) \
  NS_IMETHOD OnAlarm(calIItemBase *item, calIAlarm *alarm) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAlarm(item, alarm); } \
  NS_IMETHOD OnRemoveAlarmsByItem(calIItemBase *item) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnRemoveAlarmsByItem(item); } \
  NS_IMETHOD OnRemoveAlarmsByCalendar(calICalendar *calendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnRemoveAlarmsByCalendar(calendar); } \
  NS_IMETHOD OnAlarmsLoaded(calICalendar *calendar) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAlarmsLoaded(calendar); } 


/* starting interface:    calIAlarmService */
#define CALIALARMSERVICE_IID_STR "42cfa9ce-49d6-11e5-b88c-5b90eedc1c47"

#define CALIALARMSERVICE_IID \
  {0x42cfa9ce, 0x49d6, 0x11e5, \
    { 0xb8, 0x8c, 0x5b, 0x90, 0xee, 0xdc, 0x1c, 0x47 }}

class NS_NO_VTABLE calIAlarmService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIALARMSERVICE_IID)

  enum {
    MAX_SNOOZE_MONTHS = 1U
  };

  /* attribute calITimezone timezone; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimezone(calITimezone **aTimezone) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTimezone(calITimezone *aTimezone) = 0;

  /* attribute boolean isLoading; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsLoading(bool *aIsLoading) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIsLoading(bool aIsLoading) = 0;

  /* void startup (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Startup(void) = 0;

  /* void shutdown (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Shutdown(void) = 0;

  /* void addObserver (in calIAlarmServiceObserver observer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddObserver(calIAlarmServiceObserver *observer) = 0;

  /* void removeObserver (in calIAlarmServiceObserver observer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveObserver(calIAlarmServiceObserver *observer) = 0;

  /* calIOperation snoozeAlarm (in calIItemBase item, in calIAlarm alarm, in calIDuration duration); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SnoozeAlarm(calIItemBase *item, calIAlarm *alarm, calIDuration *duration, calIOperation **_retval) = 0;

  /* calIOperation dismissAlarm (in calIItemBase item, in calIAlarm alarm); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DismissAlarm(calIItemBase *item, calIAlarm *alarm, calIOperation **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIAlarmService, CALIALARMSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIALARMSERVICE \
  NS_IMETHOD GetTimezone(calITimezone **aTimezone) override; \
  NS_IMETHOD SetTimezone(calITimezone *aTimezone) override; \
  NS_IMETHOD GetIsLoading(bool *aIsLoading) override; \
  NS_IMETHOD SetIsLoading(bool aIsLoading) override; \
  NS_IMETHOD Startup(void) override; \
  NS_IMETHOD Shutdown(void) override; \
  NS_IMETHOD AddObserver(calIAlarmServiceObserver *observer) override; \
  NS_IMETHOD RemoveObserver(calIAlarmServiceObserver *observer) override; \
  NS_IMETHOD SnoozeAlarm(calIItemBase *item, calIAlarm *alarm, calIDuration *duration, calIOperation **_retval) override; \
  NS_IMETHOD DismissAlarm(calIItemBase *item, calIAlarm *alarm, calIOperation **_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_CALIALARMSERVICE \
  nsresult GetTimezone(calITimezone **aTimezone); \
  nsresult SetTimezone(calITimezone *aTimezone); \
  nsresult GetIsLoading(bool *aIsLoading); \
  nsresult SetIsLoading(bool aIsLoading); \
  nsresult Startup(void); \
  nsresult Shutdown(void); \
  nsresult AddObserver(calIAlarmServiceObserver *observer); \
  nsresult RemoveObserver(calIAlarmServiceObserver *observer); \
  nsresult SnoozeAlarm(calIItemBase *item, calIAlarm *alarm, calIDuration *duration, calIOperation **_retval); \
  nsresult DismissAlarm(calIItemBase *item, calIAlarm *alarm, calIOperation **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIALARMSERVICE(_to) \
  NS_IMETHOD GetTimezone(calITimezone **aTimezone) override { return _to GetTimezone(aTimezone); } \
  NS_IMETHOD SetTimezone(calITimezone *aTimezone) override { return _to SetTimezone(aTimezone); } \
  NS_IMETHOD GetIsLoading(bool *aIsLoading) override { return _to GetIsLoading(aIsLoading); } \
  NS_IMETHOD SetIsLoading(bool aIsLoading) override { return _to SetIsLoading(aIsLoading); } \
  NS_IMETHOD Startup(void) override { return _to Startup(); } \
  NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \
  NS_IMETHOD AddObserver(calIAlarmServiceObserver *observer) override { return _to AddObserver(observer); } \
  NS_IMETHOD RemoveObserver(calIAlarmServiceObserver *observer) override { return _to RemoveObserver(observer); } \
  NS_IMETHOD SnoozeAlarm(calIItemBase *item, calIAlarm *alarm, calIDuration *duration, calIOperation **_retval) override { return _to SnoozeAlarm(item, alarm, duration, _retval); } \
  NS_IMETHOD DismissAlarm(calIItemBase *item, calIAlarm *alarm, calIOperation **_retval) override { return _to DismissAlarm(item, alarm, _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_CALIALARMSERVICE(_to) \
  NS_IMETHOD GetTimezone(calITimezone **aTimezone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimezone(aTimezone); } \
  NS_IMETHOD SetTimezone(calITimezone *aTimezone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimezone(aTimezone); } \
  NS_IMETHOD GetIsLoading(bool *aIsLoading) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsLoading(aIsLoading); } \
  NS_IMETHOD SetIsLoading(bool aIsLoading) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsLoading(aIsLoading); } \
  NS_IMETHOD Startup(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Startup(); } \
  NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
  NS_IMETHOD AddObserver(calIAlarmServiceObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer); } \
  NS_IMETHOD RemoveObserver(calIAlarmServiceObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); } \
  NS_IMETHOD SnoozeAlarm(calIItemBase *item, calIAlarm *alarm, calIDuration *duration, calIOperation **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SnoozeAlarm(item, alarm, duration, _retval); } \
  NS_IMETHOD DismissAlarm(calIItemBase *item, calIAlarm *alarm, calIOperation **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DismissAlarm(item, alarm, _retval); } 


#endif /* __gen_calIAlarmService_h__ */