dom/alarm/nsIAlarmHalService.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/. */
     5 #include "nsISupports.idl"
     7 [scriptable, function, uuid(9f3ed2c0-aed9-11e1-8c3d-5310bd393466)]
     8 interface nsIAlarmFiredCb : nsISupports 
     9 {
    10   void onAlarmFired();
    11 };
    13 [scriptable, function, uuid(0ca52e84-ba8f-11e1-87e8-63235527db9e)]
    14 interface nsITimezoneChangedCb : nsISupports 
    15 {
    16   void onTimezoneChanged(in int32_t aTimezoneOffset);
    17 };
    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 %}
    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 };

mercurial