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

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/netwerk/base/public/nsIApplicationCacheService.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIApplicationCacheService_h__
           6                 : #define __gen_nsIApplicationCacheService_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 nsIApplicationCache; /* forward declaration */
          18                 :
          19                 :
          20                 : /* starting interface:    nsIApplicationCacheService */
          21                 : #define NS_IAPPLICATIONCACHESERVICE_IID_STR "611161c8-37d0-450f-a4fe-457c47bbaf64"
          22                 :
          23                 : #define NS_IAPPLICATIONCACHESERVICE_IID \
          24                 :   {0x611161c8, 0x37d0, 0x450f, \
          25                 :     { 0xa4, 0xfe, 0x45, 0x7c, 0x47, 0xbb, 0xaf, 0x64 }}
          26                 :
          27              15 : class NS_NO_VTABLE NS_SCRIPTABLE nsIApplicationCacheService : public nsISupports {
          28                 :  public:
          29                 :
          30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCACHESERVICE_IID)
          31                 :
          32                 :   /* nsIApplicationCache createApplicationCache (in ACString group); */
          33                 :   NS_SCRIPTABLE NS_IMETHOD CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM) = 0;
          34                 :
          35                 :   /* nsIApplicationCache getApplicationCache (in ACString clientID); */
          36                 :   NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval NS_OUTPARAM) = 0;
          37                 :
          38                 :   /* nsIApplicationCache getActiveCache (in ACString group); */
          39                 :   NS_SCRIPTABLE NS_IMETHOD GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM) = 0;
          40                 :
          41                 :   /* void deactivateGroup (in ACString group); */
          42                 :   NS_SCRIPTABLE NS_IMETHOD DeactivateGroup(const nsACString & group) = 0;
          43                 :
          44                 :   /* nsIApplicationCache chooseApplicationCache (in ACString key); */
          45                 :   NS_SCRIPTABLE NS_IMETHOD ChooseApplicationCache(const nsACString & key, nsIApplicationCache * *_retval NS_OUTPARAM) = 0;
          46                 :
          47                 :   /* void cacheOpportunistically (in nsIApplicationCache cache, in ACString key); */
          48                 :   NS_SCRIPTABLE NS_IMETHOD CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key) = 0;
          49                 :
          50                 :   /* void getGroups ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs); */
          51                 :   NS_SCRIPTABLE NS_IMETHOD GetGroups(PRUint32 *count NS_OUTPARAM, char * **groupIDs NS_OUTPARAM) = 0;
          52                 :
          53                 : };
          54                 :
          55                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationCacheService, NS_IAPPLICATIONCACHESERVICE_IID)
          56                 :
          57                 : /* Use this macro when declaring classes that implement this interface. */
          58                 : #define NS_DECL_NSIAPPLICATIONCACHESERVICE \
          59                 :   NS_SCRIPTABLE NS_IMETHOD CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM); \
          60                 :   NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval NS_OUTPARAM); \
          61                 :   NS_SCRIPTABLE NS_IMETHOD GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM); \
          62                 :   NS_SCRIPTABLE NS_IMETHOD DeactivateGroup(const nsACString & group); \
          63                 :   NS_SCRIPTABLE NS_IMETHOD ChooseApplicationCache(const nsACString & key, nsIApplicationCache * *_retval NS_OUTPARAM); \
          64                 :   NS_SCRIPTABLE NS_IMETHOD CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key); \
          65                 :   NS_SCRIPTABLE NS_IMETHOD GetGroups(PRUint32 *count NS_OUTPARAM, char * **groupIDs NS_OUTPARAM);
          66                 :
          67                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          68                 : #define NS_FORWARD_NSIAPPLICATIONCACHESERVICE(_to) \
          69                 :   NS_SCRIPTABLE NS_IMETHOD CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM) { return _to CreateApplicationCache(group, _retval); } \
          70                 :   NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval NS_OUTPARAM) { return _to GetApplicationCache(clientID, _retval); } \
          71                 :   NS_SCRIPTABLE NS_IMETHOD GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM) { return _to GetActiveCache(group, _retval); } \
          72                 :   NS_SCRIPTABLE NS_IMETHOD DeactivateGroup(const nsACString & group) { return _to DeactivateGroup(group); } \
          73                 :   NS_SCRIPTABLE NS_IMETHOD ChooseApplicationCache(const nsACString & key, nsIApplicationCache * *_retval NS_OUTPARAM) { return _to ChooseApplicationCache(key, _retval); } \
          74                 :   NS_SCRIPTABLE NS_IMETHOD CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key) { return _to CacheOpportunistically(cache, key); } \
          75                 :   NS_SCRIPTABLE NS_IMETHOD GetGroups(PRUint32 *count NS_OUTPARAM, char * **groupIDs NS_OUTPARAM) { return _to GetGroups(count, groupIDs); }
          76                 :
          77                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          78                 : #define NS_FORWARD_SAFE_NSIAPPLICATIONCACHESERVICE(_to) \
          79                 :   NS_SCRIPTABLE NS_IMETHOD CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateApplicationCache(group, _retval); } \
          80                 :   NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationCache(clientID, _retval); } \
          81                 :   NS_SCRIPTABLE NS_IMETHOD GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveCache(group, _retval); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD DeactivateGroup(const nsACString & group) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeactivateGroup(group); } \
          83                 :   NS_SCRIPTABLE NS_IMETHOD ChooseApplicationCache(const nsACString & key, nsIApplicationCache * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChooseApplicationCache(key, _retval); } \
          84                 :   NS_SCRIPTABLE NS_IMETHOD CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key) { return !_to ? NS_ERROR_NULL_POINTER : _to->CacheOpportunistically(cache, key); } \
          85                 :   NS_SCRIPTABLE NS_IMETHOD GetGroups(PRUint32 *count NS_OUTPARAM, char * **groupIDs NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroups(count, groupIDs); }
          86                 :
          87                 : #if 0
          88                 : /* Use the code below as a template for the implementation class for this interface. */
          89                 :
          90                 : /* Header file */
          91                 : class nsApplicationCacheService : public nsIApplicationCacheService
          92                 : {
          93                 : public:
          94                 :   NS_DECL_ISUPPORTS
          95                 :   NS_DECL_NSIAPPLICATIONCACHESERVICE
          96                 :
          97                 :   nsApplicationCacheService();
          98                 :
          99                 : private:
         100                 :   ~nsApplicationCacheService();
         101                 :
         102                 : protected:
         103                 :   /* additional members */
         104                 : };
         105                 :
         106                 : /* Implementation file */
         107                 : NS_IMPL_ISUPPORTS1(nsApplicationCacheService, nsIApplicationCacheService)
         108                 :
         109                 : nsApplicationCacheService::nsApplicationCacheService()
         110                 : {
         111                 :   /* member initializers and constructor code */
         112                 : }
         113                 :
         114                 : nsApplicationCacheService::~nsApplicationCacheService()
         115                 : {
         116                 :   /* destructor code */
         117                 : }
         118                 :
         119                 : /* nsIApplicationCache createApplicationCache (in ACString group); */
         120                 : NS_IMETHODIMP nsApplicationCacheService::CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM)
         121                 : {
         122                 :     return NS_ERROR_NOT_IMPLEMENTED;
         123                 : }
         124                 :
         125                 : /* nsIApplicationCache getApplicationCache (in ACString clientID); */
         126                 : NS_IMETHODIMP nsApplicationCacheService::GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval NS_OUTPARAM)
         127                 : {
         128                 :     return NS_ERROR_NOT_IMPLEMENTED;
         129                 : }
         130                 :
         131                 : /* nsIApplicationCache getActiveCache (in ACString group); */
         132                 : NS_IMETHODIMP nsApplicationCacheService::GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval NS_OUTPARAM)
         133                 : {
         134                 :     return NS_ERROR_NOT_IMPLEMENTED;
         135                 : }
         136                 :
         137                 : /* void deactivateGroup (in ACString group); */
         138                 : NS_IMETHODIMP nsApplicationCacheService::DeactivateGroup(const nsACString & group)
         139                 : {
         140                 :     return NS_ERROR_NOT_IMPLEMENTED;
         141                 : }
         142                 :
         143                 : /* nsIApplicationCache chooseApplicationCache (in ACString key); */
         144                 : NS_IMETHODIMP nsApplicationCacheService::ChooseApplicationCache(const nsACString & key, nsIApplicationCache * *_retval NS_OUTPARAM)
         145                 : {
         146                 :     return NS_ERROR_NOT_IMPLEMENTED;
         147                 : }
         148                 :
         149                 : /* void cacheOpportunistically (in nsIApplicationCache cache, in ACString key); */
         150                 : NS_IMETHODIMP nsApplicationCacheService::CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key)
         151                 : {
         152                 :     return NS_ERROR_NOT_IMPLEMENTED;
         153                 : }
         154                 :
         155                 : /* void getGroups ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs); */
         156                 : NS_IMETHODIMP nsApplicationCacheService::GetGroups(PRUint32 *count NS_OUTPARAM, char * **groupIDs NS_OUTPARAM)
         157                 : {
         158                 :     return NS_ERROR_NOT_IMPLEMENTED;
         159                 : }
         160                 :
         161                 : /* End of implementation class template. */
         162                 : #endif
         163                 :
         164                 :
         165                 : #endif /* __gen_nsIApplicationCacheService_h__ */

Generated by: LCOV version 1.7