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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIToolkitProfile.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIToolkitProfile_h__
       6             : #define __gen_nsIToolkitProfile_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 nsIProfileUnlocker; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIProfileLock */
      23             : #define NS_IPROFILELOCK_IID_STR "7c58c703-d245-4864-8d75-9648ca4a6139"
      24             : 
      25             : #define NS_IPROFILELOCK_IID \
      26             :   {0x7c58c703, 0xd245, 0x4864, \
      27             :     { 0x8d, 0x75, 0x96, 0x48, 0xca, 0x4a, 0x61, 0x39 }}
      28             : 
      29           1 : class NS_NO_VTABLE nsIProfileLock : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILELOCK_IID)
      33             : 
      34             :   /* readonly attribute nsIFile directory; */
      35             :   NS_IMETHOD GetDirectory(nsIFile * *aDirectory) = 0;
      36             : 
      37             :   /* readonly attribute nsIFile localDirectory; */
      38             :   NS_IMETHOD GetLocalDirectory(nsIFile * *aLocalDirectory) = 0;
      39             : 
      40             :   /* readonly attribute PRTime replacedLockTime; */
      41             :   NS_IMETHOD GetReplacedLockTime(PRTime *aReplacedLockTime) = 0;
      42             : 
      43             :   /* void unlock (); */
      44             :   NS_IMETHOD Unlock(void) = 0;
      45             : 
      46             : };
      47             : 
      48             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfileLock, NS_IPROFILELOCK_IID)
      49             : 
      50             : /* Use this macro when declaring classes that implement this interface. */
      51             : #define NS_DECL_NSIPROFILELOCK \
      52             :   NS_IMETHOD GetDirectory(nsIFile * *aDirectory) override; \
      53             :   NS_IMETHOD GetLocalDirectory(nsIFile * *aLocalDirectory) override; \
      54             :   NS_IMETHOD GetReplacedLockTime(PRTime *aReplacedLockTime) override; \
      55             :   NS_IMETHOD Unlock(void) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSIPROFILELOCK \
      60             :   nsresult GetDirectory(nsIFile * *aDirectory); \
      61             :   nsresult GetLocalDirectory(nsIFile * *aLocalDirectory); \
      62             :   nsresult GetReplacedLockTime(PRTime *aReplacedLockTime); \
      63             :   nsresult Unlock(void); 
      64             : 
      65             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      66             : #define NS_FORWARD_NSIPROFILELOCK(_to) \
      67             :   NS_IMETHOD GetDirectory(nsIFile * *aDirectory) override { return _to GetDirectory(aDirectory); } \
      68             :   NS_IMETHOD GetLocalDirectory(nsIFile * *aLocalDirectory) override { return _to GetLocalDirectory(aLocalDirectory); } \
      69             :   NS_IMETHOD GetReplacedLockTime(PRTime *aReplacedLockTime) override { return _to GetReplacedLockTime(aReplacedLockTime); } \
      70             :   NS_IMETHOD Unlock(void) override { return _to Unlock(); } 
      71             : 
      72             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      73             : #define NS_FORWARD_SAFE_NSIPROFILELOCK(_to) \
      74             :   NS_IMETHOD GetDirectory(nsIFile * *aDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectory(aDirectory); } \
      75             :   NS_IMETHOD GetLocalDirectory(nsIFile * *aLocalDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalDirectory(aLocalDirectory); } \
      76             :   NS_IMETHOD GetReplacedLockTime(PRTime *aReplacedLockTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReplacedLockTime(aReplacedLockTime); } \
      77             :   NS_IMETHOD Unlock(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Unlock(); } 
      78             : 
      79             : #if 0
      80             : /* Use the code below as a template for the implementation class for this interface. */
      81             : 
      82             : /* Header file */
      83             : class nsProfileLock : public nsIProfileLock
      84             : {
      85             : public:
      86             :   NS_DECL_ISUPPORTS
      87             :   NS_DECL_NSIPROFILELOCK
      88             : 
      89             :   nsProfileLock();
      90             : 
      91             : private:
      92             :   ~nsProfileLock();
      93             : 
      94             : protected:
      95             :   /* additional members */
      96             : };
      97             : 
      98             : /* Implementation file */
      99             : NS_IMPL_ISUPPORTS(nsProfileLock, nsIProfileLock)
     100             : 
     101             : nsProfileLock::nsProfileLock()
     102             : {
     103             :   /* member initializers and constructor code */
     104             : }
     105             : 
     106             : nsProfileLock::~nsProfileLock()
     107             : {
     108             :   /* destructor code */
     109             : }
     110             : 
     111             : /* readonly attribute nsIFile directory; */
     112             : NS_IMETHODIMP nsProfileLock::GetDirectory(nsIFile * *aDirectory)
     113             : {
     114             :     return NS_ERROR_NOT_IMPLEMENTED;
     115             : }
     116             : 
     117             : /* readonly attribute nsIFile localDirectory; */
     118             : NS_IMETHODIMP nsProfileLock::GetLocalDirectory(nsIFile * *aLocalDirectory)
     119             : {
     120             :     return NS_ERROR_NOT_IMPLEMENTED;
     121             : }
     122             : 
     123             : /* readonly attribute PRTime replacedLockTime; */
     124             : NS_IMETHODIMP nsProfileLock::GetReplacedLockTime(PRTime *aReplacedLockTime)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* void unlock (); */
     130             : NS_IMETHODIMP nsProfileLock::Unlock()
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* End of implementation class template. */
     136             : #endif
     137             : 
     138             : 
     139             : /* starting interface:    nsIToolkitProfile */
     140             : #define NS_ITOOLKITPROFILE_IID_STR "7422b090-4a86-4407-972e-75468a625388"
     141             : 
     142             : #define NS_ITOOLKITPROFILE_IID \
     143             :   {0x7422b090, 0x4a86, 0x4407, \
     144             :     { 0x97, 0x2e, 0x75, 0x46, 0x8a, 0x62, 0x53, 0x88 }}
     145             : 
     146           1 : class NS_NO_VTABLE nsIToolkitProfile : public nsISupports {
     147             :  public:
     148             : 
     149             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOOLKITPROFILE_IID)
     150             : 
     151             :   /* readonly attribute nsIFile rootDir; */
     152             :   NS_IMETHOD GetRootDir(nsIFile * *aRootDir) = 0;
     153             : 
     154             :   /* readonly attribute nsIFile localDir; */
     155             :   NS_IMETHOD GetLocalDir(nsIFile * *aLocalDir) = 0;
     156             : 
     157             :   /* attribute AUTF8String name; */
     158             :   NS_IMETHOD GetName(nsACString & aName) = 0;
     159             :   NS_IMETHOD SetName(const nsACString & aName) = 0;
     160             : 
     161             :   /* void remove (in boolean removeFiles); */
     162             :   NS_IMETHOD Remove(bool removeFiles) = 0;
     163             : 
     164             :   /* nsIProfileLock lock (out nsIProfileUnlocker aUnlocker); */
     165             :   NS_IMETHOD Lock(nsIProfileUnlocker * *aUnlocker, nsIProfileLock * *_retval) = 0;
     166             : 
     167             : };
     168             : 
     169             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIToolkitProfile, NS_ITOOLKITPROFILE_IID)
     170             : 
     171             : /* Use this macro when declaring classes that implement this interface. */
     172             : #define NS_DECL_NSITOOLKITPROFILE \
     173             :   NS_IMETHOD GetRootDir(nsIFile * *aRootDir) override; \
     174             :   NS_IMETHOD GetLocalDir(nsIFile * *aLocalDir) override; \
     175             :   NS_IMETHOD GetName(nsACString & aName) override; \
     176             :   NS_IMETHOD SetName(const nsACString & aName) override; \
     177             :   NS_IMETHOD Remove(bool removeFiles) override; \
     178             :   NS_IMETHOD Lock(nsIProfileUnlocker * *aUnlocker, nsIProfileLock * *_retval) override; 
     179             : 
     180             : /* Use this macro when declaring the members of this interface when the
     181             :    class doesn't implement the interface. This is useful for forwarding. */
     182             : #define NS_DECL_NON_VIRTUAL_NSITOOLKITPROFILE \
     183             :   nsresult GetRootDir(nsIFile * *aRootDir); \
     184             :   nsresult GetLocalDir(nsIFile * *aLocalDir); \
     185             :   nsresult GetName(nsACString & aName); \
     186             :   nsresult SetName(const nsACString & aName); \
     187             :   nsresult Remove(bool removeFiles); \
     188             :   nsresult Lock(nsIProfileUnlocker * *aUnlocker, nsIProfileLock * *_retval); 
     189             : 
     190             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     191             : #define NS_FORWARD_NSITOOLKITPROFILE(_to) \
     192             :   NS_IMETHOD GetRootDir(nsIFile * *aRootDir) override { return _to GetRootDir(aRootDir); } \
     193             :   NS_IMETHOD GetLocalDir(nsIFile * *aLocalDir) override { return _to GetLocalDir(aLocalDir); } \
     194             :   NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
     195             :   NS_IMETHOD SetName(const nsACString & aName) override { return _to SetName(aName); } \
     196             :   NS_IMETHOD Remove(bool removeFiles) override { return _to Remove(removeFiles); } \
     197             :   NS_IMETHOD Lock(nsIProfileUnlocker * *aUnlocker, nsIProfileLock * *_retval) override { return _to Lock(aUnlocker, _retval); } 
     198             : 
     199             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     200             : #define NS_FORWARD_SAFE_NSITOOLKITPROFILE(_to) \
     201             :   NS_IMETHOD GetRootDir(nsIFile * *aRootDir) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootDir(aRootDir); } \
     202             :   NS_IMETHOD GetLocalDir(nsIFile * *aLocalDir) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalDir(aLocalDir); } \
     203             :   NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
     204             :   NS_IMETHOD SetName(const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
     205             :   NS_IMETHOD Remove(bool removeFiles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(removeFiles); } \
     206             :   NS_IMETHOD Lock(nsIProfileUnlocker * *aUnlocker, nsIProfileLock * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Lock(aUnlocker, _retval); } 
     207             : 
     208             : #if 0
     209             : /* Use the code below as a template for the implementation class for this interface. */
     210             : 
     211             : /* Header file */
     212             : class nsToolkitProfile : public nsIToolkitProfile
     213             : {
     214             : public:
     215             :   NS_DECL_ISUPPORTS
     216             :   NS_DECL_NSITOOLKITPROFILE
     217             : 
     218             :   nsToolkitProfile();
     219             : 
     220             : private:
     221             :   ~nsToolkitProfile();
     222             : 
     223             : protected:
     224             :   /* additional members */
     225             : };
     226             : 
     227             : /* Implementation file */
     228             : NS_IMPL_ISUPPORTS(nsToolkitProfile, nsIToolkitProfile)
     229             : 
     230             : nsToolkitProfile::nsToolkitProfile()
     231             : {
     232             :   /* member initializers and constructor code */
     233             : }
     234             : 
     235             : nsToolkitProfile::~nsToolkitProfile()
     236             : {
     237             :   /* destructor code */
     238             : }
     239             : 
     240             : /* readonly attribute nsIFile rootDir; */
     241             : NS_IMETHODIMP nsToolkitProfile::GetRootDir(nsIFile * *aRootDir)
     242             : {
     243             :     return NS_ERROR_NOT_IMPLEMENTED;
     244             : }
     245             : 
     246             : /* readonly attribute nsIFile localDir; */
     247             : NS_IMETHODIMP nsToolkitProfile::GetLocalDir(nsIFile * *aLocalDir)
     248             : {
     249             :     return NS_ERROR_NOT_IMPLEMENTED;
     250             : }
     251             : 
     252             : /* attribute AUTF8String name; */
     253             : NS_IMETHODIMP nsToolkitProfile::GetName(nsACString & aName)
     254             : {
     255             :     return NS_ERROR_NOT_IMPLEMENTED;
     256             : }
     257             : NS_IMETHODIMP nsToolkitProfile::SetName(const nsACString & aName)
     258             : {
     259             :     return NS_ERROR_NOT_IMPLEMENTED;
     260             : }
     261             : 
     262             : /* void remove (in boolean removeFiles); */
     263             : NS_IMETHODIMP nsToolkitProfile::Remove(bool removeFiles)
     264             : {
     265             :     return NS_ERROR_NOT_IMPLEMENTED;
     266             : }
     267             : 
     268             : /* nsIProfileLock lock (out nsIProfileUnlocker aUnlocker); */
     269             : NS_IMETHODIMP nsToolkitProfile::Lock(nsIProfileUnlocker * *aUnlocker, nsIProfileLock * *_retval)
     270             : {
     271             :     return NS_ERROR_NOT_IMPLEMENTED;
     272             : }
     273             : 
     274             : /* End of implementation class template. */
     275             : #endif
     276             : 
     277             : 
     278             : #endif /* __gen_nsIToolkitProfile_h__ */

Generated by: LCOV version 1.13