dom/alarm/nsIAlarmHalService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/alarm/nsIAlarmHalService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +[scriptable, function, uuid(9f3ed2c0-aed9-11e1-8c3d-5310bd393466)]
    1.11 +interface nsIAlarmFiredCb : nsISupports 
    1.12 +{
    1.13 +  void onAlarmFired();
    1.14 +};
    1.15 +
    1.16 +[scriptable, function, uuid(0ca52e84-ba8f-11e1-87e8-63235527db9e)]
    1.17 +interface nsITimezoneChangedCb : nsISupports 
    1.18 +{
    1.19 +  void onTimezoneChanged(in int32_t aTimezoneOffset);
    1.20 +};
    1.21 +
    1.22 +%{C++
    1.23 +#define NS_ALARMHALSERVICE_CID { 0x7dafea4c, 0x7163, 0x4b70, { 0x95, 0x4e, 0x5a, 0xd4, 0x09, 0x94, 0x83, 0xd7 } }
    1.24 +#define ALARMHALSERVICE_CONTRACTID "@mozilla.org/alarmHalService;1"
    1.25 +%}
    1.26 +
    1.27 +[scriptable, uuid(057b1ee4-f696-486d-bd55-205e21e88fab)]
    1.28 +interface nsIAlarmHalService : nsISupports
    1.29 +{
    1.30 +  bool setAlarm(in int32_t aSeconds, in int32_t aNanoseconds);
    1.31 +  void setAlarmFiredCb(in nsIAlarmFiredCb aAlarmFiredCb);
    1.32 +  void setTimezoneChangedCb(in nsITimezoneChangedCb aTimezoneChangedCb);
    1.33 +};
    1.34 +
    1.35 +
    1.36 +

mercurial