LCOV - code coverage report
Current view: directory - objdir/dist/include - nsICacheListener.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/netwerk/cache/nsICacheListener.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICacheListener_h__
       6                 : #define __gen_nsICacheListener_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsICache_h__
      14                 : #include "nsICache.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : class nsICacheEntryDescriptor; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsICacheListener */
      25                 : #define NS_ICACHELISTENER_IID_STR "638c3848-778b-4851-8ff3-9400f65b8773"
      26                 : 
      27                 : #define NS_ICACHELISTENER_IID \
      28                 :   {0x638c3848, 0x778b, 0x4851, \
      29                 :     { 0x8f, 0xf3, 0x94, 0x00, 0xf6, 0x5b, 0x87, 0x73 }}
      30                 : 
      31            3531 : class NS_NO_VTABLE NS_SCRIPTABLE nsICacheListener : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHELISTENER_IID)
      35                 : 
      36                 :   /* void onCacheEntryAvailable (in nsICacheEntryDescriptor descriptor, in nsCacheAccessMode accessGranted, in nsresult status); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status) = 0;
      38                 : 
      39                 : };
      40                 : 
      41                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheListener, NS_ICACHELISTENER_IID)
      42                 : 
      43                 : /* Use this macro when declaring classes that implement this interface. */
      44                 : #define NS_DECL_NSICACHELISTENER \
      45                 :   NS_SCRIPTABLE NS_IMETHOD OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status); 
      46                 : 
      47                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      48                 : #define NS_FORWARD_NSICACHELISTENER(_to) \
      49                 :   NS_SCRIPTABLE NS_IMETHOD OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status) { return _to OnCacheEntryAvailable(descriptor, accessGranted, status); } 
      50                 : 
      51                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      52                 : #define NS_FORWARD_SAFE_NSICACHELISTENER(_to) \
      53                 :   NS_SCRIPTABLE NS_IMETHOD OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCacheEntryAvailable(descriptor, accessGranted, status); } 
      54                 : 
      55                 : #if 0
      56                 : /* Use the code below as a template for the implementation class for this interface. */
      57                 : 
      58                 : /* Header file */
      59                 : class nsCacheListener : public nsICacheListener
      60                 : {
      61                 : public:
      62                 :   NS_DECL_ISUPPORTS
      63                 :   NS_DECL_NSICACHELISTENER
      64                 : 
      65                 :   nsCacheListener();
      66                 : 
      67                 : private:
      68                 :   ~nsCacheListener();
      69                 : 
      70                 : protected:
      71                 :   /* additional members */
      72                 : };
      73                 : 
      74                 : /* Implementation file */
      75                 : NS_IMPL_ISUPPORTS1(nsCacheListener, nsICacheListener)
      76                 : 
      77                 : nsCacheListener::nsCacheListener()
      78                 : {
      79                 :   /* member initializers and constructor code */
      80                 : }
      81                 : 
      82                 : nsCacheListener::~nsCacheListener()
      83                 : {
      84                 :   /* destructor code */
      85                 : }
      86                 : 
      87                 : /* void onCacheEntryAvailable (in nsICacheEntryDescriptor descriptor, in nsCacheAccessMode accessGranted, in nsresult status); */
      88                 : NS_IMETHODIMP nsCacheListener::OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status)
      89                 : {
      90                 :     return NS_ERROR_NOT_IMPLEMENTED;
      91                 : }
      92                 : 
      93                 : /* End of implementation class template. */
      94                 : #endif
      95                 : 
      96                 : 
      97                 : #endif /* __gen_nsICacheListener_h__ */

Generated by: LCOV version 1.7