LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIServiceManager.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/xpcom/components/nsIServiceManager.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIServiceManager_h__
       6                 : #define __gen_nsIServiceManager_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                 : 
      18                 : /* starting interface:    nsIServiceManager */
      19                 : #define NS_ISERVICEMANAGER_IID_STR "8bb35ed9-e332-462d-9155-4a002ab5c958"
      20                 : 
      21                 : #define NS_ISERVICEMANAGER_IID \
      22                 :   {0x8bb35ed9, 0xe332, 0x462d, \
      23                 :     { 0x91, 0x55, 0x4a, 0x00, 0x2a, 0xb5, 0xc9, 0x58 }}
      24                 : 
      25            1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIServiceManager : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISERVICEMANAGER_IID)
      29                 : 
      30                 :   /* void getService (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetService(const nsCID & aClass, const nsIID & aIID, void **result NS_OUTPARAM) = 0;
      32                 : 
      33                 :   /* void getServiceByContractID (in string aContractID, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result NS_OUTPARAM) = 0;
      35                 : 
      36                 :   /* boolean isServiceInstantiated (in nsCIDRef aClass, in nsIIDRef aIID); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* boolean isServiceInstantiatedByContractID (in string aContractID, in nsIIDRef aIID); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 : };
      43                 : 
      44                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIServiceManager, NS_ISERVICEMANAGER_IID)
      45                 : 
      46                 : /* Use this macro when declaring classes that implement this interface. */
      47                 : #define NS_DECL_NSISERVICEMANAGER \
      48                 :   NS_SCRIPTABLE NS_IMETHOD GetService(const nsCID & aClass, const nsIID & aIID, void **result NS_OUTPARAM); \
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result NS_OUTPARAM); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval NS_OUTPARAM); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval NS_OUTPARAM); 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54                 : #define NS_FORWARD_NSISERVICEMANAGER(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetService(const nsCID & aClass, const nsIID & aIID, void **result NS_OUTPARAM) { return _to GetService(aClass, aIID, result); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result NS_OUTPARAM) { return _to GetServiceByContractID(aContractID, aIID, result); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval NS_OUTPARAM) { return _to IsServiceInstantiated(aClass, aIID, _retval); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval NS_OUTPARAM) { return _to IsServiceInstantiatedByContractID(aContractID, aIID, _retval); } 
      59                 : 
      60                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61                 : #define NS_FORWARD_SAFE_NSISERVICEMANAGER(_to) \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetService(const nsCID & aClass, const nsIID & aIID, void **result NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetService(aClass, aIID, result); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceByContractID(aContractID, aIID, result); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsServiceInstantiated(aClass, aIID, _retval); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsServiceInstantiatedByContractID(aContractID, aIID, _retval); } 
      66                 : 
      67                 : #if 0
      68                 : /* Use the code below as a template for the implementation class for this interface. */
      69                 : 
      70                 : /* Header file */
      71                 : class nsServiceManager : public nsIServiceManager
      72                 : {
      73                 : public:
      74                 :   NS_DECL_ISUPPORTS
      75                 :   NS_DECL_NSISERVICEMANAGER
      76                 : 
      77                 :   nsServiceManager();
      78                 : 
      79                 : private:
      80                 :   ~nsServiceManager();
      81                 : 
      82                 : protected:
      83                 :   /* additional members */
      84                 : };
      85                 : 
      86                 : /* Implementation file */
      87                 : NS_IMPL_ISUPPORTS1(nsServiceManager, nsIServiceManager)
      88                 : 
      89                 : nsServiceManager::nsServiceManager()
      90                 : {
      91                 :   /* member initializers and constructor code */
      92                 : }
      93                 : 
      94                 : nsServiceManager::~nsServiceManager()
      95                 : {
      96                 :   /* destructor code */
      97                 : }
      98                 : 
      99                 : /* void getService (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
     100                 : NS_IMETHODIMP nsServiceManager::GetService(const nsCID & aClass, const nsIID & aIID, void **result NS_OUTPARAM)
     101                 : {
     102                 :     return NS_ERROR_NOT_IMPLEMENTED;
     103                 : }
     104                 : 
     105                 : /* void getServiceByContractID (in string aContractID, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
     106                 : NS_IMETHODIMP nsServiceManager::GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result NS_OUTPARAM)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* boolean isServiceInstantiated (in nsCIDRef aClass, in nsIIDRef aIID); */
     112                 : NS_IMETHODIMP nsServiceManager::IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval NS_OUTPARAM)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* boolean isServiceInstantiatedByContractID (in string aContractID, in nsIIDRef aIID); */
     118                 : NS_IMETHODIMP nsServiceManager::IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval NS_OUTPARAM)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* End of implementation class template. */
     124                 : #endif
     125                 : 
     126                 : #define NS_ERROR_SERVICE_NOT_AVAILABLE  NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XPCOM, 22)
     127                 : /**
     128                 :  * @status DEPRECATED
     129                 :  */
     130                 : #define NS_ERROR_SERVICE_NOT_FOUND      NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_XPCOM, 22)
     131                 : /**
     132                 :  * @status DEPRECATED
     133                 :  */
     134                 : #define NS_ERROR_SERVICE_IN_USE         NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_XPCOM, 23)
     135                 : // Observing xpcom autoregistration.  Topics will be 'start' and 'stop'.
     136                 : #define NS_XPCOM_AUTOREGISTRATION_OBSERVER_ID "xpcom-autoregistration"
     137                 : #ifdef MOZILLA_INTERNAL_API
     138                 : #include "nsXPCOM.h"
     139                 : #include "nsComponentManagerUtils.h"
     140                 : #include "nsServiceManagerUtils.h"
     141                 : #endif
     142                 : 
     143                 : #endif /* __gen_nsIServiceManager_h__ */

Generated by: LCOV version 1.7