2012-07-06 14:42:36 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2015-04-09 20:22:37 +03:00
|
|
|
[scriptable, function, uuid(53dec7f9-bb51-4c3a-98ab-80d5d750c9dd)]
|
|
|
|
interface nsIAlarmFiredCb : nsISupports
|
2012-07-06 14:42:36 +04:00
|
|
|
{
|
|
|
|
void onAlarmFired();
|
|
|
|
};
|
|
|
|
|
2015-04-09 20:22:37 +03:00
|
|
|
[scriptable, function, uuid(e6662911-c066-4358-9388-8661065c65a2)]
|
|
|
|
interface nsITimezoneChangedCb : nsISupports
|
2012-07-06 14:42:36 +04:00
|
|
|
{
|
2012-08-22 19:56:38 +04:00
|
|
|
void onTimezoneChanged(in int32_t aTimezoneOffset);
|
2012-07-06 14:42:36 +04:00
|
|
|
};
|
|
|
|
|
2015-04-09 20:22:37 +03:00
|
|
|
[scriptable, function, uuid(46ece987-a3ec-4124-906f-d99c83296ac6)]
|
|
|
|
interface nsISystemClockChangedCb : nsISupports
|
|
|
|
{
|
|
|
|
void onSystemClockChanged(in int32_t aClockDeltaMS);
|
|
|
|
};
|
|
|
|
|
2012-07-06 14:42:36 +04:00
|
|
|
%{C++
|
|
|
|
#define NS_ALARMHALSERVICE_CID { 0x7dafea4c, 0x7163, 0x4b70, { 0x95, 0x4e, 0x5a, 0xd4, 0x09, 0x94, 0x83, 0xd7 } }
|
|
|
|
#define ALARMHALSERVICE_CONTRACTID "@mozilla.org/alarmHalService;1"
|
|
|
|
%}
|
|
|
|
|
2015-04-09 20:22:37 +03:00
|
|
|
[scriptable, uuid(35074214-f50d-4f9a-b173-8d564dfa657d)]
|
2012-07-06 14:42:36 +04:00
|
|
|
interface nsIAlarmHalService : nsISupports
|
|
|
|
{
|
2012-08-22 19:56:38 +04:00
|
|
|
bool setAlarm(in int32_t aSeconds, in int32_t aNanoseconds);
|
2012-07-06 14:42:36 +04:00
|
|
|
void setAlarmFiredCb(in nsIAlarmFiredCb aAlarmFiredCb);
|
|
|
|
void setTimezoneChangedCb(in nsITimezoneChangedCb aTimezoneChangedCb);
|
2015-04-09 20:22:37 +03:00
|
|
|
void setSystemClockChangedCb(in nsISystemClockChangedCb aSystemClockChangedCb);
|
2012-07-06 14:42:36 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|