LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIIdleService.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/widget/nsIIdleService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIIdleService_h__
       6                 : #define __gen_nsIIdleService_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.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 nsIObserver; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    nsIIdleService */
      21                 : #define NS_IIDLESERVICE_IID_STR "cc52f19a-63ae-4a1c-9cc3-e79eace0b471"
      22                 : 
      23                 : #define NS_IIDLESERVICE_IID \
      24                 :   {0xcc52f19a, 0x63ae, 0x4a1c, \
      25                 :     { 0x9c, 0xc3, 0xe7, 0x9e, 0xac, 0xe0, 0xb4, 0x71 }}
      26                 : 
      27               1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIdleService : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDLESERVICE_IID)
      31                 : 
      32                 :   /* readonly attribute unsigned long idleTime; */
      33                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleTime(PRUint32 *aIdleTime) = 0;
      34                 : 
      35                 :   /* void addIdleObserver (in nsIObserver observer, in unsigned long time); */
      36                 :   NS_SCRIPTABLE NS_IMETHOD AddIdleObserver(nsIObserver *observer, PRUint32 time) = 0;
      37                 : 
      38                 :   /* void removeIdleObserver (in nsIObserver observer, in unsigned long time); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD RemoveIdleObserver(nsIObserver *observer, PRUint32 time) = 0;
      40                 : 
      41                 : };
      42                 : 
      43                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdleService, NS_IIDLESERVICE_IID)
      44                 : 
      45                 : /* Use this macro when declaring classes that implement this interface. */
      46                 : #define NS_DECL_NSIIDLESERVICE \
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleTime(PRUint32 *aIdleTime); \
      48                 :   NS_SCRIPTABLE NS_IMETHOD AddIdleObserver(nsIObserver *observer, PRUint32 time); \
      49                 :   NS_SCRIPTABLE NS_IMETHOD RemoveIdleObserver(nsIObserver *observer, PRUint32 time); 
      50                 : 
      51                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52                 : #define NS_FORWARD_NSIIDLESERVICE(_to) \
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleTime(PRUint32 *aIdleTime) { return _to GetIdleTime(aIdleTime); } \
      54                 :   NS_SCRIPTABLE NS_IMETHOD AddIdleObserver(nsIObserver *observer, PRUint32 time) { return _to AddIdleObserver(observer, time); } \
      55                 :   NS_SCRIPTABLE NS_IMETHOD RemoveIdleObserver(nsIObserver *observer, PRUint32 time) { return _to RemoveIdleObserver(observer, time); } 
      56                 : 
      57                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      58                 : #define NS_FORWARD_SAFE_NSIIDLESERVICE(_to) \
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleTime(PRUint32 *aIdleTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdleTime(aIdleTime); } \
      60                 :   NS_SCRIPTABLE NS_IMETHOD AddIdleObserver(nsIObserver *observer, PRUint32 time) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddIdleObserver(observer, time); } \
      61                 :   NS_SCRIPTABLE NS_IMETHOD RemoveIdleObserver(nsIObserver *observer, PRUint32 time) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveIdleObserver(observer, time); } 
      62                 : 
      63                 : #if 0
      64                 : /* Use the code below as a template for the implementation class for this interface. */
      65                 : 
      66                 : /* Header file */
      67                 : class nsIdleService : public nsIIdleService
      68                 : {
      69                 : public:
      70                 :   NS_DECL_ISUPPORTS
      71                 :   NS_DECL_NSIIDLESERVICE
      72                 : 
      73                 :   nsIdleService();
      74                 : 
      75                 : private:
      76                 :   ~nsIdleService();
      77                 : 
      78                 : protected:
      79                 :   /* additional members */
      80                 : };
      81                 : 
      82                 : /* Implementation file */
      83                 : NS_IMPL_ISUPPORTS1(nsIdleService, nsIIdleService)
      84                 : 
      85                 : nsIdleService::nsIdleService()
      86                 : {
      87                 :   /* member initializers and constructor code */
      88                 : }
      89                 : 
      90                 : nsIdleService::~nsIdleService()
      91                 : {
      92                 :   /* destructor code */
      93                 : }
      94                 : 
      95                 : /* readonly attribute unsigned long idleTime; */
      96                 : NS_IMETHODIMP nsIdleService::GetIdleTime(PRUint32 *aIdleTime)
      97                 : {
      98                 :     return NS_ERROR_NOT_IMPLEMENTED;
      99                 : }
     100                 : 
     101                 : /* void addIdleObserver (in nsIObserver observer, in unsigned long time); */
     102                 : NS_IMETHODIMP nsIdleService::AddIdleObserver(nsIObserver *observer, PRUint32 time)
     103                 : {
     104                 :     return NS_ERROR_NOT_IMPLEMENTED;
     105                 : }
     106                 : 
     107                 : /* void removeIdleObserver (in nsIObserver observer, in unsigned long time); */
     108                 : NS_IMETHODIMP nsIdleService::RemoveIdleObserver(nsIObserver *observer, PRUint32 time)
     109                 : {
     110                 :     return NS_ERROR_NOT_IMPLEMENTED;
     111                 : }
     112                 : 
     113                 : /* End of implementation class template. */
     114                 : #endif
     115                 : 
     116                 : 
     117                 : #endif /* __gen_nsIIdleService_h__ */

Generated by: LCOV version 1.7