dom/alarm/nsIAlarmHalService.idl

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:51d394bacb5a
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #include "nsISupports.idl"
6
7 [scriptable, function, uuid(9f3ed2c0-aed9-11e1-8c3d-5310bd393466)]
8 interface nsIAlarmFiredCb : nsISupports
9 {
10 void onAlarmFired();
11 };
12
13 [scriptable, function, uuid(0ca52e84-ba8f-11e1-87e8-63235527db9e)]
14 interface nsITimezoneChangedCb : nsISupports
15 {
16 void onTimezoneChanged(in int32_t aTimezoneOffset);
17 };
18
19 %{C++
20 #define NS_ALARMHALSERVICE_CID { 0x7dafea4c, 0x7163, 0x4b70, { 0x95, 0x4e, 0x5a, 0xd4, 0x09, 0x94, 0x83, 0xd7 } }
21 #define ALARMHALSERVICE_CONTRACTID "@mozilla.org/alarmHalService;1"
22 %}
23
24 [scriptable, uuid(057b1ee4-f696-486d-bd55-205e21e88fab)]
25 interface nsIAlarmHalService : nsISupports
26 {
27 bool setAlarm(in int32_t aSeconds, in int32_t aNanoseconds);
28 void setAlarmFiredCb(in nsIAlarmFiredCb aAlarmFiredCb);
29 void setTimezoneChangedCb(in nsITimezoneChangedCb aTimezoneChangedCb);
30 };
31
32
33

mercurial