LCOV - app.info - objdir/dist/include/nsIDOMBatteryManager.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIDOMBatteryManager.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 0 | 0.0 %
| Date: | 2012-04-21 | Functions: | 1 | 0 | 0.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/dom/battery/nsIDOMBatteryManager.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIDOMBatteryManager_h__
           6                 : #define __gen_nsIDOMBatteryManager_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsIDOMEventTarget_h__
          10                 : #include "nsIDOMEventTarget.h"
          11                 : #endif
          12                 :
          13                 : /* For IDL files that don't want to include root IDL files. */
          14                 : #ifndef NS_NO_VTABLE
          15                 : #define NS_NO_VTABLE
          16                 : #endif
          17                 : class nsIDOMEventListener; /* forward declaration */
          18                 :
          19                 :
          20                 : /* starting interface:    nsIDOMMozBatteryManager */
          21                 : #define NS_IDOMMOZBATTERYMANAGER_IID_STR "41e88f87-42cb-4db1-8724-f5456a16c410"
          22                 :
          23                 : #define NS_IDOMMOZBATTERYMANAGER_IID \
          24                 :   {0x41e88f87, 0x42cb, 0x4db1, \
          25                 :     { 0x87, 0x24, 0xf5, 0x45, 0x6a, 0x16, 0xc4, 0x10 }}
          26                 :
          27               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMozBatteryManager : public nsIDOMEventTarget {
          28                 :  public:
          29                 :
          30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOZBATTERYMANAGER_IID)
          31                 :
          32                 :   /* readonly attribute double level; */
          33                 :   NS_SCRIPTABLE NS_IMETHOD GetLevel(double *aLevel) = 0;
          34                 :
          35                 :   /* readonly attribute boolean charging; */
          36                 :   NS_SCRIPTABLE NS_IMETHOD GetCharging(bool *aCharging) = 0;
          37                 :
          38                 :   /* readonly attribute double dischargingTime; */
          39                 :   NS_SCRIPTABLE NS_IMETHOD GetDischargingTime(double *aDischargingTime) = 0;
          40                 :
          41                 :   /* readonly attribute double chargingTime; */
          42                 :   NS_SCRIPTABLE NS_IMETHOD GetChargingTime(double *aChargingTime) = 0;
          43                 :
          44                 :   /* attribute nsIDOMEventListener onlevelchange; */
          45                 :   NS_SCRIPTABLE NS_IMETHOD GetOnlevelchange(nsIDOMEventListener * *aOnlevelchange) = 0;
          46                 :   NS_SCRIPTABLE NS_IMETHOD SetOnlevelchange(nsIDOMEventListener *aOnlevelchange) = 0;
          47                 :
          48                 :   /* attribute nsIDOMEventListener onchargingchange; */
          49                 :   NS_SCRIPTABLE NS_IMETHOD GetOnchargingchange(nsIDOMEventListener * *aOnchargingchange) = 0;
          50                 :   NS_SCRIPTABLE NS_IMETHOD SetOnchargingchange(nsIDOMEventListener *aOnchargingchange) = 0;
          51                 :
          52                 :   /* attribute nsIDOMEventListener ondischargingtimechange; */
          53                 :   NS_SCRIPTABLE NS_IMETHOD GetOndischargingtimechange(nsIDOMEventListener * *aOndischargingtimechange) = 0;
          54                 :   NS_SCRIPTABLE NS_IMETHOD SetOndischargingtimechange(nsIDOMEventListener *aOndischargingtimechange) = 0;
          55                 :
          56                 :   /* attribute nsIDOMEventListener onchargingtimechange; */
          57                 :   NS_SCRIPTABLE NS_IMETHOD GetOnchargingtimechange(nsIDOMEventListener * *aOnchargingtimechange) = 0;
          58                 :   NS_SCRIPTABLE NS_IMETHOD SetOnchargingtimechange(nsIDOMEventListener *aOnchargingtimechange) = 0;
          59                 :
          60                 : };
          61                 :
          62                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMozBatteryManager, NS_IDOMMOZBATTERYMANAGER_IID)
          63                 :
          64                 : /* Use this macro when declaring classes that implement this interface. */
          65                 : #define NS_DECL_NSIDOMMOZBATTERYMANAGER \
          66                 :   NS_SCRIPTABLE NS_IMETHOD GetLevel(double *aLevel); \
          67                 :   NS_SCRIPTABLE NS_IMETHOD GetCharging(bool *aCharging); \
          68                 :   NS_SCRIPTABLE NS_IMETHOD GetDischargingTime(double *aDischargingTime); \
          69                 :   NS_SCRIPTABLE NS_IMETHOD GetChargingTime(double *aChargingTime); \
          70                 :   NS_SCRIPTABLE NS_IMETHOD GetOnlevelchange(nsIDOMEventListener * *aOnlevelchange); \
          71                 :   NS_SCRIPTABLE NS_IMETHOD SetOnlevelchange(nsIDOMEventListener *aOnlevelchange); \
          72                 :   NS_SCRIPTABLE NS_IMETHOD GetOnchargingchange(nsIDOMEventListener * *aOnchargingchange); \
          73                 :   NS_SCRIPTABLE NS_IMETHOD SetOnchargingchange(nsIDOMEventListener *aOnchargingchange); \
          74                 :   NS_SCRIPTABLE NS_IMETHOD GetOndischargingtimechange(nsIDOMEventListener * *aOndischargingtimechange); \
          75                 :   NS_SCRIPTABLE NS_IMETHOD SetOndischargingtimechange(nsIDOMEventListener *aOndischargingtimechange); \
          76                 :   NS_SCRIPTABLE NS_IMETHOD GetOnchargingtimechange(nsIDOMEventListener * *aOnchargingtimechange); \
          77                 :   NS_SCRIPTABLE NS_IMETHOD SetOnchargingtimechange(nsIDOMEventListener *aOnchargingtimechange);
          78                 :
          79                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          80                 : #define NS_FORWARD_NSIDOMMOZBATTERYMANAGER(_to) \
          81                 :   NS_SCRIPTABLE NS_IMETHOD GetLevel(double *aLevel) { return _to GetLevel(aLevel); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD GetCharging(bool *aCharging) { return _to GetCharging(aCharging); } \
          83                 :   NS_SCRIPTABLE NS_IMETHOD GetDischargingTime(double *aDischargingTime) { return _to GetDischargingTime(aDischargingTime); } \
          84                 :   NS_SCRIPTABLE NS_IMETHOD GetChargingTime(double *aChargingTime) { return _to GetChargingTime(aChargingTime); } \
          85                 :   NS_SCRIPTABLE NS_IMETHOD GetOnlevelchange(nsIDOMEventListener * *aOnlevelchange) { return _to GetOnlevelchange(aOnlevelchange); } \
          86                 :   NS_SCRIPTABLE NS_IMETHOD SetOnlevelchange(nsIDOMEventListener *aOnlevelchange) { return _to SetOnlevelchange(aOnlevelchange); } \
          87                 :   NS_SCRIPTABLE NS_IMETHOD GetOnchargingchange(nsIDOMEventListener * *aOnchargingchange) { return _to GetOnchargingchange(aOnchargingchange); } \
          88                 :   NS_SCRIPTABLE NS_IMETHOD SetOnchargingchange(nsIDOMEventListener *aOnchargingchange) { return _to SetOnchargingchange(aOnchargingchange); } \
          89                 :   NS_SCRIPTABLE NS_IMETHOD GetOndischargingtimechange(nsIDOMEventListener * *aOndischargingtimechange) { return _to GetOndischargingtimechange(aOndischargingtimechange); } \
          90                 :   NS_SCRIPTABLE NS_IMETHOD SetOndischargingtimechange(nsIDOMEventListener *aOndischargingtimechange) { return _to SetOndischargingtimechange(aOndischargingtimechange); } \
          91                 :   NS_SCRIPTABLE NS_IMETHOD GetOnchargingtimechange(nsIDOMEventListener * *aOnchargingtimechange) { return _to GetOnchargingtimechange(aOnchargingtimechange); } \
          92                 :   NS_SCRIPTABLE NS_IMETHOD SetOnchargingtimechange(nsIDOMEventListener *aOnchargingtimechange) { return _to SetOnchargingtimechange(aOnchargingtimechange); }
          93                 :
          94                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          95                 : #define NS_FORWARD_SAFE_NSIDOMMOZBATTERYMANAGER(_to) \
          96                 :   NS_SCRIPTABLE NS_IMETHOD GetLevel(double *aLevel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLevel(aLevel); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD GetCharging(bool *aCharging) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharging(aCharging); } \
          98                 :   NS_SCRIPTABLE NS_IMETHOD GetDischargingTime(double *aDischargingTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDischargingTime(aDischargingTime); } \
          99                 :   NS_SCRIPTABLE NS_IMETHOD GetChargingTime(double *aChargingTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChargingTime(aChargingTime); } \
         100                 :   NS_SCRIPTABLE NS_IMETHOD GetOnlevelchange(nsIDOMEventListener * *aOnlevelchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnlevelchange(aOnlevelchange); } \
         101                 :   NS_SCRIPTABLE NS_IMETHOD SetOnlevelchange(nsIDOMEventListener *aOnlevelchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnlevelchange(aOnlevelchange); } \
         102                 :   NS_SCRIPTABLE NS_IMETHOD GetOnchargingchange(nsIDOMEventListener * *aOnchargingchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnchargingchange(aOnchargingchange); } \
         103                 :   NS_SCRIPTABLE NS_IMETHOD SetOnchargingchange(nsIDOMEventListener *aOnchargingchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnchargingchange(aOnchargingchange); } \
         104                 :   NS_SCRIPTABLE NS_IMETHOD GetOndischargingtimechange(nsIDOMEventListener * *aOndischargingtimechange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOndischargingtimechange(aOndischargingtimechange); } \
         105                 :   NS_SCRIPTABLE NS_IMETHOD SetOndischargingtimechange(nsIDOMEventListener *aOndischargingtimechange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOndischargingtimechange(aOndischargingtimechange); } \
         106                 :   NS_SCRIPTABLE NS_IMETHOD GetOnchargingtimechange(nsIDOMEventListener * *aOnchargingtimechange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnchargingtimechange(aOnchargingtimechange); } \
         107                 :   NS_SCRIPTABLE NS_IMETHOD SetOnchargingtimechange(nsIDOMEventListener *aOnchargingtimechange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnchargingtimechange(aOnchargingtimechange); }
         108                 :
         109                 : #if 0
         110                 : /* Use the code below as a template for the implementation class for this interface. */
         111                 :
         112                 : /* Header file */
         113                 : class nsDOMMozBatteryManager : public nsIDOMMozBatteryManager
         114                 : {
         115                 : public:
         116                 :   NS_DECL_ISUPPORTS
         117                 :   NS_DECL_NSIDOMMOZBATTERYMANAGER
         118                 :
         119                 :   nsDOMMozBatteryManager();
         120                 :
         121                 : private:
         122                 :   ~nsDOMMozBatteryManager();
         123                 :
         124                 : protected:
         125                 :   /* additional members */
         126                 : };
         127                 :
         128                 : /* Implementation file */
         129                 : NS_IMPL_ISUPPORTS1(nsDOMMozBatteryManager, nsIDOMMozBatteryManager)
         130                 :
         131                 : nsDOMMozBatteryManager::nsDOMMozBatteryManager()
         132                 : {
         133                 :   /* member initializers and constructor code */
         134                 : }
         135                 :
         136                 : nsDOMMozBatteryManager::~nsDOMMozBatteryManager()
         137                 : {
         138                 :   /* destructor code */
         139                 : }
         140                 :
         141                 : /* readonly attribute double level; */
         142                 : NS_IMETHODIMP nsDOMMozBatteryManager::GetLevel(double *aLevel)
         143                 : {
         144                 :     return NS_ERROR_NOT_IMPLEMENTED;
         145                 : }
         146                 :
         147                 : /* readonly attribute boolean charging; */
         148                 : NS_IMETHODIMP nsDOMMozBatteryManager::GetCharging(bool *aCharging)
         149                 : {
         150                 :     return NS_ERROR_NOT_IMPLEMENTED;
         151                 : }
         152                 :
         153                 : /* readonly attribute double dischargingTime; */
         154                 : NS_IMETHODIMP nsDOMMozBatteryManager::GetDischargingTime(double *aDischargingTime)
         155                 : {
         156                 :     return NS_ERROR_NOT_IMPLEMENTED;
         157                 : }
         158                 :
         159                 : /* readonly attribute double chargingTime; */
         160                 : NS_IMETHODIMP nsDOMMozBatteryManager::GetChargingTime(double *aChargingTime)
         161                 : {
         162                 :     return NS_ERROR_NOT_IMPLEMENTED;
         163                 : }
         164                 :
         165                 : /* attribute nsIDOMEventListener onlevelchange; */
         166                 : NS_IMETHODIMP nsDOMMozBatteryManager::GetOnlevelchange(nsIDOMEventListener * *aOnlevelchange)
         167                 : {
         168                 :     return NS_ERROR_NOT_IMPLEMENTED;
         169                 : }
         170                 : NS_IMETHODIMP nsDOMMozBatteryManager::SetOnlevelchange(nsIDOMEventListener *aOnlevelchange)
         171                 : {
         172                 :     return NS_ERROR_NOT_IMPLEMENTED;
         173                 : }
         174                 :
         175                 : /* attribute nsIDOMEventListener onchargingchange; */
         176                 : NS_IMETHODIMP nsDOMMozBatteryManager::GetOnchargingchange(nsIDOMEventListener * *aOnchargingchange)
         177                 : {
         178                 :     return NS_ERROR_NOT_IMPLEMENTED;
         179                 : }
         180                 : NS_IMETHODIMP nsDOMMozBatteryManager::SetOnchargingchange(nsIDOMEventListener *aOnchargingchange)
         181                 : {
         182                 :     return NS_ERROR_NOT_IMPLEMENTED;
         183                 : }
         184                 :
         185                 : /* attribute nsIDOMEventListener ondischargingtimechange; */
         186                 : NS_IMETHODIMP nsDOMMozBatteryManager::GetOndischargingtimechange(nsIDOMEventListener * *aOndischargingtimechange)
         187                 : {
         188                 :     return NS_ERROR_NOT_IMPLEMENTED;
         189                 : }
         190                 : NS_IMETHODIMP nsDOMMozBatteryManager::SetOndischargingtimechange(nsIDOMEventListener *aOndischargingtimechange)
         191                 : {
         192                 :     return NS_ERROR_NOT_IMPLEMENTED;
         193                 : }
         194                 :
         195                 : /* attribute nsIDOMEventListener onchargingtimechange; */
         196                 : NS_IMETHODIMP nsDOMMozBatteryManager::GetOnchargingtimechange(nsIDOMEventListener * *aOnchargingtimechange)
         197                 : {
         198                 :     return NS_ERROR_NOT_IMPLEMENTED;
         199                 : }
         200                 : NS_IMETHODIMP nsDOMMozBatteryManager::SetOnchargingtimechange(nsIDOMEventListener *aOnchargingtimechange)
         201                 : {
         202                 :     return NS_ERROR_NOT_IMPLEMENTED;
         203                 : }
         204                 :
         205                 : /* End of implementation class template. */
         206                 : #endif
         207                 :
         208                 :
         209                 : #endif /* __gen_nsIDOMBatteryManager_h__ */

Generated by: LCOV version 1.7