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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIComponentManager.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIComponentManager_h__
       6             : #define __gen_nsIComponentManager_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 nsIFile; /* forward declaration */
      18             : 
      19             : class nsIFactory; /* forward declaration */
      20             : 
      21             : class nsIArray; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIComponentManager */
      25             : #define NS_ICOMPONENTMANAGER_IID_STR "d604ffc3-1ba3-4f6c-b65f-1ed4199364c3"
      26             : 
      27             : #define NS_ICOMPONENTMANAGER_IID \
      28             :   {0xd604ffc3, 0x1ba3, 0x4f6c, \
      29             :     { 0xb6, 0x5f, 0x1e, 0xd4, 0x19, 0x93, 0x64, 0xc3 }}
      30             : 
      31           3 : class NS_NO_VTABLE nsIComponentManager : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOMPONENTMANAGER_IID)
      35             : 
      36             :   /* void getClassObject (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
      37             :   NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void **result) = 0;
      38             : 
      39             :   /* void getClassObjectByContractID (in string aContractID, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
      40             :   NS_IMETHOD GetClassObjectByContractID(const char * aContractID, const nsIID & aIID, void **result) = 0;
      41             : 
      42             :   /* void createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
      43             :   NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void **result) = 0;
      44             : 
      45             :   /* void createInstanceByContractID (in string aContractID, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
      46             :   NS_IMETHOD CreateInstanceByContractID(const char * aContractID, nsISupports *aDelegate, const nsIID & aIID, void **result) = 0;
      47             : 
      48             :   /* void addBootstrappedManifestLocation (in nsIFile aLocation); */
      49             :   NS_IMETHOD AddBootstrappedManifestLocation(nsIFile *aLocation) = 0;
      50             : 
      51             :   /* void removeBootstrappedManifestLocation (in nsIFile aLocation); */
      52             :   NS_IMETHOD RemoveBootstrappedManifestLocation(nsIFile *aLocation) = 0;
      53             : 
      54             :   /* nsIArray getManifestLocations (); */
      55             :   NS_IMETHOD GetManifestLocations(nsIArray * *_retval) = 0;
      56             : 
      57             : };
      58             : 
      59             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIComponentManager, NS_ICOMPONENTMANAGER_IID)
      60             : 
      61             : /* Use this macro when declaring classes that implement this interface. */
      62             : #define NS_DECL_NSICOMPONENTMANAGER \
      63             :   NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void **result) override; \
      64             :   NS_IMETHOD GetClassObjectByContractID(const char * aContractID, const nsIID & aIID, void **result) override; \
      65             :   NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void **result) override; \
      66             :   NS_IMETHOD CreateInstanceByContractID(const char * aContractID, nsISupports *aDelegate, const nsIID & aIID, void **result) override; \
      67             :   NS_IMETHOD AddBootstrappedManifestLocation(nsIFile *aLocation) override; \
      68             :   NS_IMETHOD RemoveBootstrappedManifestLocation(nsIFile *aLocation) override; \
      69             :   NS_IMETHOD GetManifestLocations(nsIArray * *_retval) override; 
      70             : 
      71             : /* Use this macro when declaring the members of this interface when the
      72             :    class doesn't implement the interface. This is useful for forwarding. */
      73             : #define NS_DECL_NON_VIRTUAL_NSICOMPONENTMANAGER \
      74             :   nsresult GetClassObject(const nsCID & aClass, const nsIID & aIID, void **result); \
      75             :   nsresult GetClassObjectByContractID(const char * aContractID, const nsIID & aIID, void **result); \
      76             :   nsresult CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void **result); \
      77             :   nsresult CreateInstanceByContractID(const char * aContractID, nsISupports *aDelegate, const nsIID & aIID, void **result); \
      78             :   nsresult AddBootstrappedManifestLocation(nsIFile *aLocation); \
      79             :   nsresult RemoveBootstrappedManifestLocation(nsIFile *aLocation); \
      80             :   nsresult GetManifestLocations(nsIArray * *_retval); 
      81             : 
      82             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      83             : #define NS_FORWARD_NSICOMPONENTMANAGER(_to) \
      84             :   NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void **result) override { return _to GetClassObject(aClass, aIID, result); } \
      85             :   NS_IMETHOD GetClassObjectByContractID(const char * aContractID, const nsIID & aIID, void **result) override { return _to GetClassObjectByContractID(aContractID, aIID, result); } \
      86             :   NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void **result) override { return _to CreateInstance(aClass, aDelegate, aIID, result); } \
      87             :   NS_IMETHOD CreateInstanceByContractID(const char * aContractID, nsISupports *aDelegate, const nsIID & aIID, void **result) override { return _to CreateInstanceByContractID(aContractID, aDelegate, aIID, result); } \
      88             :   NS_IMETHOD AddBootstrappedManifestLocation(nsIFile *aLocation) override { return _to AddBootstrappedManifestLocation(aLocation); } \
      89             :   NS_IMETHOD RemoveBootstrappedManifestLocation(nsIFile *aLocation) override { return _to RemoveBootstrappedManifestLocation(aLocation); } \
      90             :   NS_IMETHOD GetManifestLocations(nsIArray * *_retval) override { return _to GetManifestLocations(_retval); } 
      91             : 
      92             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      93             : #define NS_FORWARD_SAFE_NSICOMPONENTMANAGER(_to) \
      94             :   NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassObject(aClass, aIID, result); } \
      95             :   NS_IMETHOD GetClassObjectByContractID(const char * aContractID, const nsIID & aIID, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassObjectByContractID(aContractID, aIID, result); } \
      96             :   NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstance(aClass, aDelegate, aIID, result); } \
      97             :   NS_IMETHOD CreateInstanceByContractID(const char * aContractID, nsISupports *aDelegate, const nsIID & aIID, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstanceByContractID(aContractID, aDelegate, aIID, result); } \
      98             :   NS_IMETHOD AddBootstrappedManifestLocation(nsIFile *aLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBootstrappedManifestLocation(aLocation); } \
      99             :   NS_IMETHOD RemoveBootstrappedManifestLocation(nsIFile *aLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveBootstrappedManifestLocation(aLocation); } \
     100             :   NS_IMETHOD GetManifestLocations(nsIArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManifestLocations(_retval); } 
     101             : 
     102             : #if 0
     103             : /* Use the code below as a template for the implementation class for this interface. */
     104             : 
     105             : /* Header file */
     106             : class nsComponentManager : public nsIComponentManager
     107             : {
     108             : public:
     109             :   NS_DECL_ISUPPORTS
     110             :   NS_DECL_NSICOMPONENTMANAGER
     111             : 
     112             :   nsComponentManager();
     113             : 
     114             : private:
     115             :   ~nsComponentManager();
     116             : 
     117             : protected:
     118             :   /* additional members */
     119             : };
     120             : 
     121             : /* Implementation file */
     122             : NS_IMPL_ISUPPORTS(nsComponentManager, nsIComponentManager)
     123             : 
     124             : nsComponentManager::nsComponentManager()
     125             : {
     126             :   /* member initializers and constructor code */
     127             : }
     128             : 
     129             : nsComponentManager::~nsComponentManager()
     130             : {
     131             :   /* destructor code */
     132             : }
     133             : 
     134             : /* void getClassObject (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
     135             : NS_IMETHODIMP nsComponentManager::GetClassObject(const nsCID & aClass, const nsIID & aIID, void **result)
     136             : {
     137             :     return NS_ERROR_NOT_IMPLEMENTED;
     138             : }
     139             : 
     140             : /* void getClassObjectByContractID (in string aContractID, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
     141             : NS_IMETHODIMP nsComponentManager::GetClassObjectByContractID(const char * aContractID, const nsIID & aIID, void **result)
     142             : {
     143             :     return NS_ERROR_NOT_IMPLEMENTED;
     144             : }
     145             : 
     146             : /* void createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
     147             : NS_IMETHODIMP nsComponentManager::CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void **result)
     148             : {
     149             :     return NS_ERROR_NOT_IMPLEMENTED;
     150             : }
     151             : 
     152             : /* void createInstanceByContractID (in string aContractID, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
     153             : NS_IMETHODIMP nsComponentManager::CreateInstanceByContractID(const char * aContractID, nsISupports *aDelegate, const nsIID & aIID, void **result)
     154             : {
     155             :     return NS_ERROR_NOT_IMPLEMENTED;
     156             : }
     157             : 
     158             : /* void addBootstrappedManifestLocation (in nsIFile aLocation); */
     159             : NS_IMETHODIMP nsComponentManager::AddBootstrappedManifestLocation(nsIFile *aLocation)
     160             : {
     161             :     return NS_ERROR_NOT_IMPLEMENTED;
     162             : }
     163             : 
     164             : /* void removeBootstrappedManifestLocation (in nsIFile aLocation); */
     165             : NS_IMETHODIMP nsComponentManager::RemoveBootstrappedManifestLocation(nsIFile *aLocation)
     166             : {
     167             :     return NS_ERROR_NOT_IMPLEMENTED;
     168             : }
     169             : 
     170             : /* nsIArray getManifestLocations (); */
     171             : NS_IMETHODIMP nsComponentManager::GetManifestLocations(nsIArray * *_retval)
     172             : {
     173             :     return NS_ERROR_NOT_IMPLEMENTED;
     174             : }
     175             : 
     176             : /* End of implementation class template. */
     177             : #endif
     178             : 
     179             : #ifdef MOZILLA_INTERNAL_API
     180             : #include "nsComponentManagerUtils.h"
     181             : #endif
     182             : 
     183             : #endif /* __gen_nsIComponentManager_h__ */

Generated by: LCOV version 1.13