LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsINotificationStorage.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsINotificationStorage.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsINotificationStorage_h__
       6             : #define __gen_nsINotificationStorage_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             : 
      18             : /* starting interface:    nsINotificationStorageCallback */
      19             : #define NS_INOTIFICATIONSTORAGECALLBACK_IID_STR "c1622232-259c-43b0-b52e-89c39dcd9796"
      20             : 
      21             : #define NS_INOTIFICATIONSTORAGECALLBACK_IID \
      22             :   {0xc1622232, 0x259c, 0x43b0, \
      23             :     { 0xb5, 0x2e, 0x89, 0xc3, 0x9d, 0xcd, 0x97, 0x96 }}
      24             : 
      25           0 : class NS_NO_VTABLE nsINotificationStorageCallback : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INOTIFICATIONSTORAGECALLBACK_IID)
      29             : 
      30             :   /* void handle (in DOMString id, in DOMString title, in DOMString dir, in DOMString lang, in DOMString body, in DOMString tag, in DOMString icon, in DOMString data, in DOMString behavior, in DOMString serviceWorkerRegistrationScope); */
      31             :   NS_IMETHOD Handle(const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope) = 0;
      32             : 
      33             :   /* void done (); */
      34             :   NS_IMETHOD Done(void) = 0;
      35             : 
      36             : };
      37             : 
      38             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINotificationStorageCallback, NS_INOTIFICATIONSTORAGECALLBACK_IID)
      39             : 
      40             : /* Use this macro when declaring classes that implement this interface. */
      41             : #define NS_DECL_NSINOTIFICATIONSTORAGECALLBACK \
      42             :   NS_IMETHOD Handle(const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope) override; \
      43             :   NS_IMETHOD Done(void) override; 
      44             : 
      45             : /* Use this macro when declaring the members of this interface when the
      46             :    class doesn't implement the interface. This is useful for forwarding. */
      47             : #define NS_DECL_NON_VIRTUAL_NSINOTIFICATIONSTORAGECALLBACK \
      48             :   nsresult Handle(const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope); \
      49             :   nsresult Done(void); 
      50             : 
      51             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52             : #define NS_FORWARD_NSINOTIFICATIONSTORAGECALLBACK(_to) \
      53             :   NS_IMETHOD Handle(const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope) override { return _to Handle(id, title, dir, lang, body, tag, icon, data, behavior, serviceWorkerRegistrationScope); } \
      54             :   NS_IMETHOD Done(void) override { return _to Done(); } 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      57             : #define NS_FORWARD_SAFE_NSINOTIFICATIONSTORAGECALLBACK(_to) \
      58             :   NS_IMETHOD Handle(const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Handle(id, title, dir, lang, body, tag, icon, data, behavior, serviceWorkerRegistrationScope); } \
      59             :   NS_IMETHOD Done(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Done(); } 
      60             : 
      61             : #if 0
      62             : /* Use the code below as a template for the implementation class for this interface. */
      63             : 
      64             : /* Header file */
      65             : class nsNotificationStorageCallback : public nsINotificationStorageCallback
      66             : {
      67             : public:
      68             :   NS_DECL_ISUPPORTS
      69             :   NS_DECL_NSINOTIFICATIONSTORAGECALLBACK
      70             : 
      71             :   nsNotificationStorageCallback();
      72             : 
      73             : private:
      74             :   ~nsNotificationStorageCallback();
      75             : 
      76             : protected:
      77             :   /* additional members */
      78             : };
      79             : 
      80             : /* Implementation file */
      81             : NS_IMPL_ISUPPORTS(nsNotificationStorageCallback, nsINotificationStorageCallback)
      82             : 
      83             : nsNotificationStorageCallback::nsNotificationStorageCallback()
      84             : {
      85             :   /* member initializers and constructor code */
      86             : }
      87             : 
      88             : nsNotificationStorageCallback::~nsNotificationStorageCallback()
      89             : {
      90             :   /* destructor code */
      91             : }
      92             : 
      93             : /* void handle (in DOMString id, in DOMString title, in DOMString dir, in DOMString lang, in DOMString body, in DOMString tag, in DOMString icon, in DOMString data, in DOMString behavior, in DOMString serviceWorkerRegistrationScope); */
      94             : NS_IMETHODIMP nsNotificationStorageCallback::Handle(const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope)
      95             : {
      96             :     return NS_ERROR_NOT_IMPLEMENTED;
      97             : }
      98             : 
      99             : /* void done (); */
     100             : NS_IMETHODIMP nsNotificationStorageCallback::Done()
     101             : {
     102             :     return NS_ERROR_NOT_IMPLEMENTED;
     103             : }
     104             : 
     105             : /* End of implementation class template. */
     106             : #endif
     107             : 
     108             : 
     109             : /* starting interface:    nsINotificationStorage */
     110             : #define NS_INOTIFICATIONSTORAGE_IID_STR "17f85e52-fe57-440e-9ba1-5c312ca02b95"
     111             : 
     112             : #define NS_INOTIFICATIONSTORAGE_IID \
     113             :   {0x17f85e52, 0xfe57, 0x440e, \
     114             :     { 0x9b, 0xa1, 0x5c, 0x31, 0x2c, 0xa0, 0x2b, 0x95 }}
     115             : 
     116             : class NS_NO_VTABLE nsINotificationStorage : public nsISupports {
     117             :  public:
     118             : 
     119             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INOTIFICATIONSTORAGE_IID)
     120             : 
     121             :   /* void put (in DOMString origin, in DOMString id, in DOMString title, in DOMString dir, in DOMString lang, in DOMString body, in DOMString tag, in DOMString icon, in DOMString alertName, in DOMString data, in DOMString behavior, in DOMString serviceWorkerRegistrationScope); */
     122             :   NS_IMETHOD Put(const nsAString & origin, const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & alertName, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope) = 0;
     123             : 
     124             :   /* void get (in DOMString origin, in DOMString tag, in nsINotificationStorageCallback aCallback); */
     125             :   NS_IMETHOD Get(const nsAString & origin, const nsAString & tag, nsINotificationStorageCallback *aCallback) = 0;
     126             : 
     127             :   /* void getByID (in DOMString origin, in DOMString id, in nsINotificationStorageCallback aCallback); */
     128             :   NS_IMETHOD GetByID(const nsAString & origin, const nsAString & id, nsINotificationStorageCallback *aCallback) = 0;
     129             : 
     130             :   /* void delete (in DOMString origin, in DOMString id); */
     131             :   NS_IMETHOD Delete(const nsAString & origin, const nsAString & id) = 0;
     132             : 
     133             :   /* boolean canPut (in DOMString origin); */
     134             :   NS_IMETHOD CanPut(const nsAString & origin, bool *_retval) = 0;
     135             : 
     136             : };
     137             : 
     138             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINotificationStorage, NS_INOTIFICATIONSTORAGE_IID)
     139             : 
     140             : /* Use this macro when declaring classes that implement this interface. */
     141             : #define NS_DECL_NSINOTIFICATIONSTORAGE \
     142             :   NS_IMETHOD Put(const nsAString & origin, const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & alertName, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope) override; \
     143             :   NS_IMETHOD Get(const nsAString & origin, const nsAString & tag, nsINotificationStorageCallback *aCallback) override; \
     144             :   NS_IMETHOD GetByID(const nsAString & origin, const nsAString & id, nsINotificationStorageCallback *aCallback) override; \
     145             :   NS_IMETHOD Delete(const nsAString & origin, const nsAString & id) override; \
     146             :   NS_IMETHOD CanPut(const nsAString & origin, bool *_retval) override; 
     147             : 
     148             : /* Use this macro when declaring the members of this interface when the
     149             :    class doesn't implement the interface. This is useful for forwarding. */
     150             : #define NS_DECL_NON_VIRTUAL_NSINOTIFICATIONSTORAGE \
     151             :   nsresult Put(const nsAString & origin, const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & alertName, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope); \
     152             :   nsresult Get(const nsAString & origin, const nsAString & tag, nsINotificationStorageCallback *aCallback); \
     153             :   nsresult GetByID(const nsAString & origin, const nsAString & id, nsINotificationStorageCallback *aCallback); \
     154             :   nsresult Delete(const nsAString & origin, const nsAString & id); \
     155             :   nsresult CanPut(const nsAString & origin, bool *_retval); 
     156             : 
     157             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     158             : #define NS_FORWARD_NSINOTIFICATIONSTORAGE(_to) \
     159             :   NS_IMETHOD Put(const nsAString & origin, const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & alertName, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope) override { return _to Put(origin, id, title, dir, lang, body, tag, icon, alertName, data, behavior, serviceWorkerRegistrationScope); } \
     160             :   NS_IMETHOD Get(const nsAString & origin, const nsAString & tag, nsINotificationStorageCallback *aCallback) override { return _to Get(origin, tag, aCallback); } \
     161             :   NS_IMETHOD GetByID(const nsAString & origin, const nsAString & id, nsINotificationStorageCallback *aCallback) override { return _to GetByID(origin, id, aCallback); } \
     162             :   NS_IMETHOD Delete(const nsAString & origin, const nsAString & id) override { return _to Delete(origin, id); } \
     163             :   NS_IMETHOD CanPut(const nsAString & origin, bool *_retval) override { return _to CanPut(origin, _retval); } 
     164             : 
     165             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     166             : #define NS_FORWARD_SAFE_NSINOTIFICATIONSTORAGE(_to) \
     167             :   NS_IMETHOD Put(const nsAString & origin, const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & alertName, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Put(origin, id, title, dir, lang, body, tag, icon, alertName, data, behavior, serviceWorkerRegistrationScope); } \
     168             :   NS_IMETHOD Get(const nsAString & origin, const nsAString & tag, nsINotificationStorageCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(origin, tag, aCallback); } \
     169             :   NS_IMETHOD GetByID(const nsAString & origin, const nsAString & id, nsINotificationStorageCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetByID(origin, id, aCallback); } \
     170             :   NS_IMETHOD Delete(const nsAString & origin, const nsAString & id) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Delete(origin, id); } \
     171             :   NS_IMETHOD CanPut(const nsAString & origin, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanPut(origin, _retval); } 
     172             : 
     173             : #if 0
     174             : /* Use the code below as a template for the implementation class for this interface. */
     175             : 
     176             : /* Header file */
     177             : class nsNotificationStorage : public nsINotificationStorage
     178             : {
     179             : public:
     180             :   NS_DECL_ISUPPORTS
     181             :   NS_DECL_NSINOTIFICATIONSTORAGE
     182             : 
     183             :   nsNotificationStorage();
     184             : 
     185             : private:
     186             :   ~nsNotificationStorage();
     187             : 
     188             : protected:
     189             :   /* additional members */
     190             : };
     191             : 
     192             : /* Implementation file */
     193             : NS_IMPL_ISUPPORTS(nsNotificationStorage, nsINotificationStorage)
     194             : 
     195             : nsNotificationStorage::nsNotificationStorage()
     196             : {
     197             :   /* member initializers and constructor code */
     198             : }
     199             : 
     200             : nsNotificationStorage::~nsNotificationStorage()
     201             : {
     202             :   /* destructor code */
     203             : }
     204             : 
     205             : /* void put (in DOMString origin, in DOMString id, in DOMString title, in DOMString dir, in DOMString lang, in DOMString body, in DOMString tag, in DOMString icon, in DOMString alertName, in DOMString data, in DOMString behavior, in DOMString serviceWorkerRegistrationScope); */
     206             : NS_IMETHODIMP nsNotificationStorage::Put(const nsAString & origin, const nsAString & id, const nsAString & title, const nsAString & dir, const nsAString & lang, const nsAString & body, const nsAString & tag, const nsAString & icon, const nsAString & alertName, const nsAString & data, const nsAString & behavior, const nsAString & serviceWorkerRegistrationScope)
     207             : {
     208             :     return NS_ERROR_NOT_IMPLEMENTED;
     209             : }
     210             : 
     211             : /* void get (in DOMString origin, in DOMString tag, in nsINotificationStorageCallback aCallback); */
     212             : NS_IMETHODIMP nsNotificationStorage::Get(const nsAString & origin, const nsAString & tag, nsINotificationStorageCallback *aCallback)
     213             : {
     214             :     return NS_ERROR_NOT_IMPLEMENTED;
     215             : }
     216             : 
     217             : /* void getByID (in DOMString origin, in DOMString id, in nsINotificationStorageCallback aCallback); */
     218             : NS_IMETHODIMP nsNotificationStorage::GetByID(const nsAString & origin, const nsAString & id, nsINotificationStorageCallback *aCallback)
     219             : {
     220             :     return NS_ERROR_NOT_IMPLEMENTED;
     221             : }
     222             : 
     223             : /* void delete (in DOMString origin, in DOMString id); */
     224             : NS_IMETHODIMP nsNotificationStorage::Delete(const nsAString & origin, const nsAString & id)
     225             : {
     226             :     return NS_ERROR_NOT_IMPLEMENTED;
     227             : }
     228             : 
     229             : /* boolean canPut (in DOMString origin); */
     230             : NS_IMETHODIMP nsNotificationStorage::CanPut(const nsAString & origin, bool *_retval)
     231             : {
     232             :     return NS_ERROR_NOT_IMPLEMENTED;
     233             : }
     234             : 
     235             : /* End of implementation class template. */
     236             : #endif
     237             : 
     238             : #define NS_NOTIFICATION_STORAGE_CONTRACTID "@mozilla.org/notificationStorage;1"
     239             : 
     240             : #endif /* __gen_nsINotificationStorage_h__ */

Generated by: LCOV version 1.13