LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIHandlerService.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/nsIHandlerService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIHandlerService_h__
       6             : #define __gen_nsIHandlerService_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 nsIHandlerInfo; /* forward declaration */
      18             : 
      19             : class nsISimpleEnumerator; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIHandlerService */
      23             : #define NS_IHANDLERSERVICE_IID_STR "53f0ad17-ec62-46a1-adbc-efccc06babcd"
      24             : 
      25             : #define NS_IHANDLERSERVICE_IID \
      26             :   {0x53f0ad17, 0xec62, 0x46a1, \
      27             :     { 0xad, 0xbc, 0xef, 0xcc, 0xc0, 0x6b, 0xab, 0xcd }}
      28             : 
      29           0 : class NS_NO_VTABLE nsIHandlerService : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHANDLERSERVICE_IID)
      33             : 
      34             :   /* nsISimpleEnumerator enumerate (); */
      35             :   NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval) = 0;
      36             : 
      37             :   /* void fillHandlerInfo (in nsIHandlerInfo aHandlerInfo, in ACString aOverrideType); */
      38             :   NS_IMETHOD FillHandlerInfo(nsIHandlerInfo *aHandlerInfo, const nsACString & aOverrideType) = 0;
      39             : 
      40             :   /* void store (in nsIHandlerInfo aHandlerInfo); */
      41             :   NS_IMETHOD Store(nsIHandlerInfo *aHandlerInfo) = 0;
      42             : 
      43             :   /* boolean exists (in nsIHandlerInfo aHandlerInfo); */
      44             :   NS_IMETHOD Exists(nsIHandlerInfo *aHandlerInfo, bool *_retval) = 0;
      45             : 
      46             :   /* void remove (in nsIHandlerInfo aHandlerInfo); */
      47             :   NS_IMETHOD Remove(nsIHandlerInfo *aHandlerInfo) = 0;
      48             : 
      49             :   /* ACString getTypeFromExtension (in ACString aFileExtension); */
      50             :   NS_IMETHOD GetTypeFromExtension(const nsACString & aFileExtension, nsACString & _retval) = 0;
      51             : 
      52             : };
      53             : 
      54             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIHandlerService, NS_IHANDLERSERVICE_IID)
      55             : 
      56             : /* Use this macro when declaring classes that implement this interface. */
      57             : #define NS_DECL_NSIHANDLERSERVICE \
      58             :   NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval) override; \
      59             :   NS_IMETHOD FillHandlerInfo(nsIHandlerInfo *aHandlerInfo, const nsACString & aOverrideType) override; \
      60             :   NS_IMETHOD Store(nsIHandlerInfo *aHandlerInfo) override; \
      61             :   NS_IMETHOD Exists(nsIHandlerInfo *aHandlerInfo, bool *_retval) override; \
      62             :   NS_IMETHOD Remove(nsIHandlerInfo *aHandlerInfo) override; \
      63             :   NS_IMETHOD GetTypeFromExtension(const nsACString & aFileExtension, nsACString & _retval) override; 
      64             : 
      65             : /* Use this macro when declaring the members of this interface when the
      66             :    class doesn't implement the interface. This is useful for forwarding. */
      67             : #define NS_DECL_NON_VIRTUAL_NSIHANDLERSERVICE \
      68             :   nsresult Enumerate(nsISimpleEnumerator * *_retval); \
      69             :   nsresult FillHandlerInfo(nsIHandlerInfo *aHandlerInfo, const nsACString & aOverrideType); \
      70             :   nsresult Store(nsIHandlerInfo *aHandlerInfo); \
      71             :   nsresult Exists(nsIHandlerInfo *aHandlerInfo, bool *_retval); \
      72             :   nsresult Remove(nsIHandlerInfo *aHandlerInfo); \
      73             :   nsresult GetTypeFromExtension(const nsACString & aFileExtension, nsACString & _retval); 
      74             : 
      75             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      76             : #define NS_FORWARD_NSIHANDLERSERVICE(_to) \
      77             :   NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval) override { return _to Enumerate(_retval); } \
      78             :   NS_IMETHOD FillHandlerInfo(nsIHandlerInfo *aHandlerInfo, const nsACString & aOverrideType) override { return _to FillHandlerInfo(aHandlerInfo, aOverrideType); } \
      79             :   NS_IMETHOD Store(nsIHandlerInfo *aHandlerInfo) override { return _to Store(aHandlerInfo); } \
      80             :   NS_IMETHOD Exists(nsIHandlerInfo *aHandlerInfo, bool *_retval) override { return _to Exists(aHandlerInfo, _retval); } \
      81             :   NS_IMETHOD Remove(nsIHandlerInfo *aHandlerInfo) override { return _to Remove(aHandlerInfo); } \
      82             :   NS_IMETHOD GetTypeFromExtension(const nsACString & aFileExtension, nsACString & _retval) override { return _to GetTypeFromExtension(aFileExtension, _retval); } 
      83             : 
      84             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      85             : #define NS_FORWARD_SAFE_NSIHANDLERSERVICE(_to) \
      86             :   NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Enumerate(_retval); } \
      87             :   NS_IMETHOD FillHandlerInfo(nsIHandlerInfo *aHandlerInfo, const nsACString & aOverrideType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FillHandlerInfo(aHandlerInfo, aOverrideType); } \
      88             :   NS_IMETHOD Store(nsIHandlerInfo *aHandlerInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Store(aHandlerInfo); } \
      89             :   NS_IMETHOD Exists(nsIHandlerInfo *aHandlerInfo, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Exists(aHandlerInfo, _retval); } \
      90             :   NS_IMETHOD Remove(nsIHandlerInfo *aHandlerInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(aHandlerInfo); } \
      91             :   NS_IMETHOD GetTypeFromExtension(const nsACString & aFileExtension, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeFromExtension(aFileExtension, _retval); } 
      92             : 
      93             : #if 0
      94             : /* Use the code below as a template for the implementation class for this interface. */
      95             : 
      96             : /* Header file */
      97             : class nsHandlerService : public nsIHandlerService
      98             : {
      99             : public:
     100             :   NS_DECL_ISUPPORTS
     101             :   NS_DECL_NSIHANDLERSERVICE
     102             : 
     103             :   nsHandlerService();
     104             : 
     105             : private:
     106             :   ~nsHandlerService();
     107             : 
     108             : protected:
     109             :   /* additional members */
     110             : };
     111             : 
     112             : /* Implementation file */
     113             : NS_IMPL_ISUPPORTS(nsHandlerService, nsIHandlerService)
     114             : 
     115             : nsHandlerService::nsHandlerService()
     116             : {
     117             :   /* member initializers and constructor code */
     118             : }
     119             : 
     120             : nsHandlerService::~nsHandlerService()
     121             : {
     122             :   /* destructor code */
     123             : }
     124             : 
     125             : /* nsISimpleEnumerator enumerate (); */
     126             : NS_IMETHODIMP nsHandlerService::Enumerate(nsISimpleEnumerator * *_retval)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* void fillHandlerInfo (in nsIHandlerInfo aHandlerInfo, in ACString aOverrideType); */
     132             : NS_IMETHODIMP nsHandlerService::FillHandlerInfo(nsIHandlerInfo *aHandlerInfo, const nsACString & aOverrideType)
     133             : {
     134             :     return NS_ERROR_NOT_IMPLEMENTED;
     135             : }
     136             : 
     137             : /* void store (in nsIHandlerInfo aHandlerInfo); */
     138             : NS_IMETHODIMP nsHandlerService::Store(nsIHandlerInfo *aHandlerInfo)
     139             : {
     140             :     return NS_ERROR_NOT_IMPLEMENTED;
     141             : }
     142             : 
     143             : /* boolean exists (in nsIHandlerInfo aHandlerInfo); */
     144             : NS_IMETHODIMP nsHandlerService::Exists(nsIHandlerInfo *aHandlerInfo, bool *_retval)
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* void remove (in nsIHandlerInfo aHandlerInfo); */
     150             : NS_IMETHODIMP nsHandlerService::Remove(nsIHandlerInfo *aHandlerInfo)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* ACString getTypeFromExtension (in ACString aFileExtension); */
     156             : NS_IMETHODIMP nsHandlerService::GetTypeFromExtension(const nsACString & aFileExtension, nsACString & _retval)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* End of implementation class template. */
     162             : #endif
     163             : 
     164             : 
     165             : #endif /* __gen_nsIHandlerService_h__ */

Generated by: LCOV version 1.13