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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/notification/nsIDOMDesktopNotification.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMDesktopNotification_h__
       6                 : #define __gen_nsIDOMDesktopNotification_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_domstubs_h__
      10                 : #include "domstubs.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                 : class nsIDOMDesktopNotification; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIDOMDesktopNotificationCenter */
      23                 : #define NS_IDOMDESKTOPNOTIFICATIONCENTER_IID_STR "ccea6185-0a3d-45ab-9058-1004dd4b8c50"
      24                 : 
      25                 : #define NS_IDOMDESKTOPNOTIFICATIONCENTER_IID \
      26                 :   {0xccea6185, 0x0a3d, 0x45ab, \
      27                 :     { 0x90, 0x58, 0x10, 0x04, 0xdd, 0x4b, 0x8c, 0x50 }}
      28                 : 
      29               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDesktopNotificationCenter : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDESKTOPNOTIFICATIONCENTER_IID)
      33                 : 
      34                 :   /* nsIDOMDesktopNotification createNotification (in DOMString title, in DOMString description, [optional] in DOMString iconURL); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD CreateNotification(const nsAString & title, const nsAString & description, const nsAString & iconURL, nsIDOMDesktopNotification * *_retval NS_OUTPARAM) = 0;
      36                 : 
      37                 : };
      38                 : 
      39                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDesktopNotificationCenter, NS_IDOMDESKTOPNOTIFICATIONCENTER_IID)
      40                 : 
      41                 : /* Use this macro when declaring classes that implement this interface. */
      42                 : #define NS_DECL_NSIDOMDESKTOPNOTIFICATIONCENTER \
      43                 :   NS_SCRIPTABLE NS_IMETHOD CreateNotification(const nsAString & title, const nsAString & description, const nsAString & iconURL, nsIDOMDesktopNotification * *_retval NS_OUTPARAM); 
      44                 : 
      45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      46                 : #define NS_FORWARD_NSIDOMDESKTOPNOTIFICATIONCENTER(_to) \
      47                 :   NS_SCRIPTABLE NS_IMETHOD CreateNotification(const nsAString & title, const nsAString & description, const nsAString & iconURL, nsIDOMDesktopNotification * *_retval NS_OUTPARAM) { return _to CreateNotification(title, description, iconURL, _retval); } 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      50                 : #define NS_FORWARD_SAFE_NSIDOMDESKTOPNOTIFICATIONCENTER(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD CreateNotification(const nsAString & title, const nsAString & description, const nsAString & iconURL, nsIDOMDesktopNotification * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNotification(title, description, iconURL, _retval); } 
      52                 : 
      53                 : #if 0
      54                 : /* Use the code below as a template for the implementation class for this interface. */
      55                 : 
      56                 : /* Header file */
      57                 : class nsDOMDesktopNotificationCenter : public nsIDOMDesktopNotificationCenter
      58                 : {
      59                 : public:
      60                 :   NS_DECL_ISUPPORTS
      61                 :   NS_DECL_NSIDOMDESKTOPNOTIFICATIONCENTER
      62                 : 
      63                 :   nsDOMDesktopNotificationCenter();
      64                 : 
      65                 : private:
      66                 :   ~nsDOMDesktopNotificationCenter();
      67                 : 
      68                 : protected:
      69                 :   /* additional members */
      70                 : };
      71                 : 
      72                 : /* Implementation file */
      73                 : NS_IMPL_ISUPPORTS1(nsDOMDesktopNotificationCenter, nsIDOMDesktopNotificationCenter)
      74                 : 
      75                 : nsDOMDesktopNotificationCenter::nsDOMDesktopNotificationCenter()
      76                 : {
      77                 :   /* member initializers and constructor code */
      78                 : }
      79                 : 
      80                 : nsDOMDesktopNotificationCenter::~nsDOMDesktopNotificationCenter()
      81                 : {
      82                 :   /* destructor code */
      83                 : }
      84                 : 
      85                 : /* nsIDOMDesktopNotification createNotification (in DOMString title, in DOMString description, [optional] in DOMString iconURL); */
      86                 : NS_IMETHODIMP nsDOMDesktopNotificationCenter::CreateNotification(const nsAString & title, const nsAString & description, const nsAString & iconURL, nsIDOMDesktopNotification * *_retval NS_OUTPARAM)
      87                 : {
      88                 :     return NS_ERROR_NOT_IMPLEMENTED;
      89                 : }
      90                 : 
      91                 : /* End of implementation class template. */
      92                 : #endif
      93                 : 
      94                 : 
      95                 : /* starting interface:    nsIDOMDesktopNotification */
      96                 : #define NS_IDOMDESKTOPNOTIFICATION_IID_STR "9131fd07-a7db-4b3a-a98b-6d9f3746682f"
      97                 : 
      98                 : #define NS_IDOMDESKTOPNOTIFICATION_IID \
      99                 :   {0x9131fd07, 0xa7db, 0x4b3a, \
     100                 :     { 0xa9, 0x8b, 0x6d, 0x9f, 0x37, 0x46, 0x68, 0x2f }}
     101                 : 
     102               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDesktopNotification : public nsISupports {
     103                 :  public: 
     104                 : 
     105                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDESKTOPNOTIFICATION_IID)
     106                 : 
     107                 :   /* void show (); */
     108                 :   NS_SCRIPTABLE NS_IMETHOD Show(void) = 0;
     109                 : 
     110                 :   /* attribute nsIDOMEventListener onclick; */
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetOnclick(nsIDOMEventListener * *aOnclick) = 0;
     112                 :   NS_SCRIPTABLE NS_IMETHOD SetOnclick(nsIDOMEventListener *aOnclick) = 0;
     113                 : 
     114                 :   /* attribute nsIDOMEventListener onclose; */
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetOnclose(nsIDOMEventListener * *aOnclose) = 0;
     116                 :   NS_SCRIPTABLE NS_IMETHOD SetOnclose(nsIDOMEventListener *aOnclose) = 0;
     117                 : 
     118                 : };
     119                 : 
     120                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDesktopNotification, NS_IDOMDESKTOPNOTIFICATION_IID)
     121                 : 
     122                 : /* Use this macro when declaring classes that implement this interface. */
     123                 : #define NS_DECL_NSIDOMDESKTOPNOTIFICATION \
     124                 :   NS_SCRIPTABLE NS_IMETHOD Show(void); \
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetOnclick(nsIDOMEventListener * *aOnclick); \
     126                 :   NS_SCRIPTABLE NS_IMETHOD SetOnclick(nsIDOMEventListener *aOnclick); \
     127                 :   NS_SCRIPTABLE NS_IMETHOD GetOnclose(nsIDOMEventListener * *aOnclose); \
     128                 :   NS_SCRIPTABLE NS_IMETHOD SetOnclose(nsIDOMEventListener *aOnclose); 
     129                 : 
     130                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     131                 : #define NS_FORWARD_NSIDOMDESKTOPNOTIFICATION(_to) \
     132                 :   NS_SCRIPTABLE NS_IMETHOD Show(void) { return _to Show(); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetOnclick(nsIDOMEventListener * *aOnclick) { return _to GetOnclick(aOnclick); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD SetOnclick(nsIDOMEventListener *aOnclick) { return _to SetOnclick(aOnclick); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetOnclose(nsIDOMEventListener * *aOnclose) { return _to GetOnclose(aOnclose); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD SetOnclose(nsIDOMEventListener *aOnclose) { return _to SetOnclose(aOnclose); } 
     137                 : 
     138                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     139                 : #define NS_FORWARD_SAFE_NSIDOMDESKTOPNOTIFICATION(_to) \
     140                 :   NS_SCRIPTABLE NS_IMETHOD Show(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Show(); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetOnclick(nsIDOMEventListener * *aOnclick) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnclick(aOnclick); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD SetOnclick(nsIDOMEventListener *aOnclick) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnclick(aOnclick); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetOnclose(nsIDOMEventListener * *aOnclose) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnclose(aOnclose); } \
     144                 :   NS_SCRIPTABLE NS_IMETHOD SetOnclose(nsIDOMEventListener *aOnclose) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnclose(aOnclose); } 
     145                 : 
     146                 : #if 0
     147                 : /* Use the code below as a template for the implementation class for this interface. */
     148                 : 
     149                 : /* Header file */
     150                 : class nsDOMDesktopNotification : public nsIDOMDesktopNotification
     151                 : {
     152                 : public:
     153                 :   NS_DECL_ISUPPORTS
     154                 :   NS_DECL_NSIDOMDESKTOPNOTIFICATION
     155                 : 
     156                 :   nsDOMDesktopNotification();
     157                 : 
     158                 : private:
     159                 :   ~nsDOMDesktopNotification();
     160                 : 
     161                 : protected:
     162                 :   /* additional members */
     163                 : };
     164                 : 
     165                 : /* Implementation file */
     166                 : NS_IMPL_ISUPPORTS1(nsDOMDesktopNotification, nsIDOMDesktopNotification)
     167                 : 
     168                 : nsDOMDesktopNotification::nsDOMDesktopNotification()
     169                 : {
     170                 :   /* member initializers and constructor code */
     171                 : }
     172                 : 
     173                 : nsDOMDesktopNotification::~nsDOMDesktopNotification()
     174                 : {
     175                 :   /* destructor code */
     176                 : }
     177                 : 
     178                 : /* void show (); */
     179                 : NS_IMETHODIMP nsDOMDesktopNotification::Show()
     180                 : {
     181                 :     return NS_ERROR_NOT_IMPLEMENTED;
     182                 : }
     183                 : 
     184                 : /* attribute nsIDOMEventListener onclick; */
     185                 : NS_IMETHODIMP nsDOMDesktopNotification::GetOnclick(nsIDOMEventListener * *aOnclick)
     186                 : {
     187                 :     return NS_ERROR_NOT_IMPLEMENTED;
     188                 : }
     189                 : NS_IMETHODIMP nsDOMDesktopNotification::SetOnclick(nsIDOMEventListener *aOnclick)
     190                 : {
     191                 :     return NS_ERROR_NOT_IMPLEMENTED;
     192                 : }
     193                 : 
     194                 : /* attribute nsIDOMEventListener onclose; */
     195                 : NS_IMETHODIMP nsDOMDesktopNotification::GetOnclose(nsIDOMEventListener * *aOnclose)
     196                 : {
     197                 :     return NS_ERROR_NOT_IMPLEMENTED;
     198                 : }
     199                 : NS_IMETHODIMP nsDOMDesktopNotification::SetOnclose(nsIDOMEventListener *aOnclose)
     200                 : {
     201                 :     return NS_ERROR_NOT_IMPLEMENTED;
     202                 : }
     203                 : 
     204                 : /* End of implementation class template. */
     205                 : #endif
     206                 : 
     207                 : 
     208                 : #endif /* __gen_nsIDOMDesktopNotification_h__ */

Generated by: LCOV version 1.7