/usr/include/thunderbird/nsIAlarmHalService.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAlarmHalService.idl
*/
#ifndef __gen_nsIAlarmHalService_h__
#define __gen_nsIAlarmHalService_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
/* starting interface: nsIAlarmFiredCb */
#define NS_IALARMFIREDCB_IID_STR "9f3ed2c0-aed9-11e1-8c3d-5310bd393466"
#define NS_IALARMFIREDCB_IID \
{0x9f3ed2c0, 0xaed9, 0x11e1, \
{ 0x8c, 0x3d, 0x53, 0x10, 0xbd, 0x39, 0x34, 0x66 }}
class NS_NO_VTABLE nsIAlarmFiredCb : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALARMFIREDCB_IID)
/* void onAlarmFired (); */
NS_IMETHOD OnAlarmFired(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlarmFiredCb, NS_IALARMFIREDCB_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIALARMFIREDCB \
NS_IMETHOD OnAlarmFired(void) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIALARMFIREDCB(_to) \
NS_IMETHOD OnAlarmFired(void) override { return _to OnAlarmFired(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIALARMFIREDCB(_to) \
NS_IMETHOD OnAlarmFired(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAlarmFired(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAlarmFiredCb : public nsIAlarmFiredCb
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIALARMFIREDCB
nsAlarmFiredCb();
private:
~nsAlarmFiredCb();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAlarmFiredCb, nsIAlarmFiredCb)
nsAlarmFiredCb::nsAlarmFiredCb()
{
/* member initializers and constructor code */
}
nsAlarmFiredCb::~nsAlarmFiredCb()
{
/* destructor code */
}
/* void onAlarmFired (); */
NS_IMETHODIMP nsAlarmFiredCb::OnAlarmFired()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsITimezoneChangedCb */
#define NS_ITIMEZONECHANGEDCB_IID_STR "0ca52e84-ba8f-11e1-87e8-63235527db9e"
#define NS_ITIMEZONECHANGEDCB_IID \
{0x0ca52e84, 0xba8f, 0x11e1, \
{ 0x87, 0xe8, 0x63, 0x23, 0x55, 0x27, 0xdb, 0x9e }}
class NS_NO_VTABLE nsITimezoneChangedCb : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITIMEZONECHANGEDCB_IID)
/* void onTimezoneChanged (in int32_t aTimezoneOffset); */
NS_IMETHOD OnTimezoneChanged(int32_t aTimezoneOffset) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITimezoneChangedCb, NS_ITIMEZONECHANGEDCB_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITIMEZONECHANGEDCB \
NS_IMETHOD OnTimezoneChanged(int32_t aTimezoneOffset) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITIMEZONECHANGEDCB(_to) \
NS_IMETHOD OnTimezoneChanged(int32_t aTimezoneOffset) override { return _to OnTimezoneChanged(aTimezoneOffset); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITIMEZONECHANGEDCB(_to) \
NS_IMETHOD OnTimezoneChanged(int32_t aTimezoneOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTimezoneChanged(aTimezoneOffset); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTimezoneChangedCb : public nsITimezoneChangedCb
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITIMEZONECHANGEDCB
nsTimezoneChangedCb();
private:
~nsTimezoneChangedCb();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTimezoneChangedCb, nsITimezoneChangedCb)
nsTimezoneChangedCb::nsTimezoneChangedCb()
{
/* member initializers and constructor code */
}
nsTimezoneChangedCb::~nsTimezoneChangedCb()
{
/* destructor code */
}
/* void onTimezoneChanged (in int32_t aTimezoneOffset); */
NS_IMETHODIMP nsTimezoneChangedCb::OnTimezoneChanged(int32_t aTimezoneOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_ALARMHALSERVICE_CID { 0x7dafea4c, 0x7163, 0x4b70, { 0x95, 0x4e, 0x5a, 0xd4, 0x09, 0x94, 0x83, 0xd7 } }
#define ALARMHALSERVICE_CONTRACTID "@mozilla.org/alarmHalService;1"
/* starting interface: nsIAlarmHalService */
#define NS_IALARMHALSERVICE_IID_STR "057b1ee4-f696-486d-bd55-205e21e88fab"
#define NS_IALARMHALSERVICE_IID \
{0x057b1ee4, 0xf696, 0x486d, \
{ 0xbd, 0x55, 0x20, 0x5e, 0x21, 0xe8, 0x8f, 0xab }}
class NS_NO_VTABLE nsIAlarmHalService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALARMHALSERVICE_IID)
/* bool setAlarm (in int32_t aSeconds, in int32_t aNanoseconds); */
NS_IMETHOD SetAlarm(int32_t aSeconds, int32_t aNanoseconds, bool *_retval) = 0;
/* void setAlarmFiredCb (in nsIAlarmFiredCb aAlarmFiredCb); */
NS_IMETHOD SetAlarmFiredCb(nsIAlarmFiredCb *aAlarmFiredCb) = 0;
/* void setTimezoneChangedCb (in nsITimezoneChangedCb aTimezoneChangedCb); */
NS_IMETHOD SetTimezoneChangedCb(nsITimezoneChangedCb *aTimezoneChangedCb) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlarmHalService, NS_IALARMHALSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIALARMHALSERVICE \
NS_IMETHOD SetAlarm(int32_t aSeconds, int32_t aNanoseconds, bool *_retval) override; \
NS_IMETHOD SetAlarmFiredCb(nsIAlarmFiredCb *aAlarmFiredCb) override; \
NS_IMETHOD SetTimezoneChangedCb(nsITimezoneChangedCb *aTimezoneChangedCb) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIALARMHALSERVICE(_to) \
NS_IMETHOD SetAlarm(int32_t aSeconds, int32_t aNanoseconds, bool *_retval) override { return _to SetAlarm(aSeconds, aNanoseconds, _retval); } \
NS_IMETHOD SetAlarmFiredCb(nsIAlarmFiredCb *aAlarmFiredCb) override { return _to SetAlarmFiredCb(aAlarmFiredCb); } \
NS_IMETHOD SetTimezoneChangedCb(nsITimezoneChangedCb *aTimezoneChangedCb) override { return _to SetTimezoneChangedCb(aTimezoneChangedCb); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIALARMHALSERVICE(_to) \
NS_IMETHOD SetAlarm(int32_t aSeconds, int32_t aNanoseconds, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlarm(aSeconds, aNanoseconds, _retval); } \
NS_IMETHOD SetAlarmFiredCb(nsIAlarmFiredCb *aAlarmFiredCb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlarmFiredCb(aAlarmFiredCb); } \
NS_IMETHOD SetTimezoneChangedCb(nsITimezoneChangedCb *aTimezoneChangedCb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimezoneChangedCb(aTimezoneChangedCb); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAlarmHalService : public nsIAlarmHalService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIALARMHALSERVICE
nsAlarmHalService();
private:
~nsAlarmHalService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAlarmHalService, nsIAlarmHalService)
nsAlarmHalService::nsAlarmHalService()
{
/* member initializers and constructor code */
}
nsAlarmHalService::~nsAlarmHalService()
{
/* destructor code */
}
/* bool setAlarm (in int32_t aSeconds, in int32_t aNanoseconds); */
NS_IMETHODIMP nsAlarmHalService::SetAlarm(int32_t aSeconds, int32_t aNanoseconds, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAlarmFiredCb (in nsIAlarmFiredCb aAlarmFiredCb); */
NS_IMETHODIMP nsAlarmHalService::SetAlarmFiredCb(nsIAlarmFiredCb *aAlarmFiredCb)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setTimezoneChangedCb (in nsITimezoneChangedCb aTimezoneChangedCb); */
NS_IMETHODIMP nsAlarmHalService::SetTimezoneChangedCb(nsITimezoneChangedCb *aTimezoneChangedCb)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIAlarmHalService_h__ */
|