LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDirectoryService.h (source / functions) Found Hit Coverage
Test: app.info Lines: 3 3 100.0 %
Date: 2012-06-02 Functions: 3 3 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/io/nsIDirectoryService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDirectoryService_h__
       6                 : #define __gen_nsIDirectoryService_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIFile_h__
      14                 : #include "nsIFile.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                 : 
      22                 : /* starting interface:    nsIDirectoryServiceProvider */
      23                 : #define NS_IDIRECTORYSERVICEPROVIDER_IID_STR "bbf8cab0-d43a-11d3-8cc2-00609792278c"
      24                 : 
      25                 : #define NS_IDIRECTORYSERVICEPROVIDER_IID \
      26                 :   {0xbbf8cab0, 0xd43a, 0x11d3, \
      27                 :     { 0x8c, 0xc2, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c }}
      28                 : 
      29            7116 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDirectoryServiceProvider : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRECTORYSERVICEPROVIDER_IID)
      33                 : 
      34                 :   /* nsIFile getFile (in string prop, out boolean persistent); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(const char * prop, bool *persistent NS_OUTPARAM, nsIFile * *_retval NS_OUTPARAM) = 0;
      36                 : 
      37                 : };
      38                 : 
      39                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirectoryServiceProvider, NS_IDIRECTORYSERVICEPROVIDER_IID)
      40                 : 
      41                 : /* Use this macro when declaring classes that implement this interface. */
      42                 : #define NS_DECL_NSIDIRECTORYSERVICEPROVIDER \
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(const char * prop, bool *persistent NS_OUTPARAM, nsIFile * *_retval NS_OUTPARAM); 
      44                 : 
      45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      46                 : #define NS_FORWARD_NSIDIRECTORYSERVICEPROVIDER(_to) \
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(const char * prop, bool *persistent NS_OUTPARAM, nsIFile * *_retval NS_OUTPARAM) { return _to GetFile(prop, persistent, _retval); } 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      50                 : #define NS_FORWARD_SAFE_NSIDIRECTORYSERVICEPROVIDER(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(const char * prop, bool *persistent NS_OUTPARAM, nsIFile * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(prop, persistent, _retval); } 
      52                 : 
      53                 : #if 0
      54                 : /* Use the code below as a template for the implementation class for this interface. */
      55                 : 
      56                 : /* Header file */
      57                 : class nsDirectoryServiceProvider : public nsIDirectoryServiceProvider
      58                 : {
      59                 : public:
      60                 :   NS_DECL_ISUPPORTS
      61                 :   NS_DECL_NSIDIRECTORYSERVICEPROVIDER
      62                 : 
      63                 :   nsDirectoryServiceProvider();
      64                 : 
      65                 : private:
      66                 :   ~nsDirectoryServiceProvider();
      67                 : 
      68                 : protected:
      69                 :   /* additional members */
      70                 : };
      71                 : 
      72                 : /* Implementation file */
      73                 : NS_IMPL_ISUPPORTS1(nsDirectoryServiceProvider, nsIDirectoryServiceProvider)
      74                 : 
      75                 : nsDirectoryServiceProvider::nsDirectoryServiceProvider()
      76                 : {
      77                 :   /* member initializers and constructor code */
      78                 : }
      79                 : 
      80                 : nsDirectoryServiceProvider::~nsDirectoryServiceProvider()
      81                 : {
      82                 :   /* destructor code */
      83                 : }
      84                 : 
      85                 : /* nsIFile getFile (in string prop, out boolean persistent); */
      86                 : NS_IMETHODIMP nsDirectoryServiceProvider::GetFile(const char * prop, bool *persistent NS_OUTPARAM, nsIFile * *_retval NS_OUTPARAM)
      87                 : {
      88                 :     return NS_ERROR_NOT_IMPLEMENTED;
      89                 : }
      90                 : 
      91                 : /* End of implementation class template. */
      92                 : #endif
      93                 : 
      94                 : 
      95                 : /* starting interface:    nsIDirectoryServiceProvider2 */
      96                 : #define NS_IDIRECTORYSERVICEPROVIDER2_IID_STR "2f977d4b-5485-11d4-87e2-0010a4e75ef2"
      97                 : 
      98                 : #define NS_IDIRECTORYSERVICEPROVIDER2_IID \
      99                 :   {0x2f977d4b, 0x5485, 0x11d4, \
     100                 :     { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 }}
     101                 : 
     102            7116 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDirectoryServiceProvider2 : public nsIDirectoryServiceProvider {
     103                 :  public: 
     104                 : 
     105                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRECTORYSERVICEPROVIDER2_IID)
     106                 : 
     107                 :   /* nsISimpleEnumerator getFiles (in string prop); */
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetFiles(const char * prop, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
     109                 : 
     110                 : };
     111                 : 
     112                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirectoryServiceProvider2, NS_IDIRECTORYSERVICEPROVIDER2_IID)
     113                 : 
     114                 : /* Use this macro when declaring classes that implement this interface. */
     115                 : #define NS_DECL_NSIDIRECTORYSERVICEPROVIDER2 \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetFiles(const char * prop, nsISimpleEnumerator * *_retval NS_OUTPARAM); 
     117                 : 
     118                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     119                 : #define NS_FORWARD_NSIDIRECTORYSERVICEPROVIDER2(_to) \
     120                 :   NS_SCRIPTABLE NS_IMETHOD GetFiles(const char * prop, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetFiles(prop, _retval); } 
     121                 : 
     122                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     123                 : #define NS_FORWARD_SAFE_NSIDIRECTORYSERVICEPROVIDER2(_to) \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetFiles(const char * prop, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFiles(prop, _retval); } 
     125                 : 
     126                 : #if 0
     127                 : /* Use the code below as a template for the implementation class for this interface. */
     128                 : 
     129                 : /* Header file */
     130                 : class nsDirectoryServiceProvider2 : public nsIDirectoryServiceProvider2
     131                 : {
     132                 : public:
     133                 :   NS_DECL_ISUPPORTS
     134                 :   NS_DECL_NSIDIRECTORYSERVICEPROVIDER2
     135                 : 
     136                 :   nsDirectoryServiceProvider2();
     137                 : 
     138                 : private:
     139                 :   ~nsDirectoryServiceProvider2();
     140                 : 
     141                 : protected:
     142                 :   /* additional members */
     143                 : };
     144                 : 
     145                 : /* Implementation file */
     146                 : NS_IMPL_ISUPPORTS1(nsDirectoryServiceProvider2, nsIDirectoryServiceProvider2)
     147                 : 
     148                 : nsDirectoryServiceProvider2::nsDirectoryServiceProvider2()
     149                 : {
     150                 :   /* member initializers and constructor code */
     151                 : }
     152                 : 
     153                 : nsDirectoryServiceProvider2::~nsDirectoryServiceProvider2()
     154                 : {
     155                 :   /* destructor code */
     156                 : }
     157                 : 
     158                 : /* nsISimpleEnumerator getFiles (in string prop); */
     159                 : NS_IMETHODIMP nsDirectoryServiceProvider2::GetFiles(const char * prop, nsISimpleEnumerator * *_retval NS_OUTPARAM)
     160                 : {
     161                 :     return NS_ERROR_NOT_IMPLEMENTED;
     162                 : }
     163                 : 
     164                 : /* End of implementation class template. */
     165                 : #endif
     166                 : 
     167                 : 
     168                 : /* starting interface:    nsIDirectoryService */
     169                 : #define NS_IDIRECTORYSERVICE_IID_STR "57a66a60-d43a-11d3-8cc2-00609792278c"
     170                 : 
     171                 : #define NS_IDIRECTORYSERVICE_IID \
     172                 :   {0x57a66a60, 0xd43a, 0x11d3, \
     173                 :     { 0x8c, 0xc2, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c }}
     174                 : 
     175            1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDirectoryService : public nsISupports {
     176                 :  public: 
     177                 : 
     178                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRECTORYSERVICE_IID)
     179                 : 
     180                 :   /* void init (); */
     181                 :   NS_SCRIPTABLE NS_IMETHOD Init(void) = 0;
     182                 : 
     183                 :   /* void registerProvider (in nsIDirectoryServiceProvider prov); */
     184                 :   NS_SCRIPTABLE NS_IMETHOD RegisterProvider(nsIDirectoryServiceProvider *prov) = 0;
     185                 : 
     186                 :   /* void unregisterProvider (in nsIDirectoryServiceProvider prov); */
     187                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterProvider(nsIDirectoryServiceProvider *prov) = 0;
     188                 : 
     189                 : };
     190                 : 
     191                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirectoryService, NS_IDIRECTORYSERVICE_IID)
     192                 : 
     193                 : /* Use this macro when declaring classes that implement this interface. */
     194                 : #define NS_DECL_NSIDIRECTORYSERVICE \
     195                 :   NS_SCRIPTABLE NS_IMETHOD Init(void); \
     196                 :   NS_SCRIPTABLE NS_IMETHOD RegisterProvider(nsIDirectoryServiceProvider *prov); \
     197                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterProvider(nsIDirectoryServiceProvider *prov); 
     198                 : 
     199                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     200                 : #define NS_FORWARD_NSIDIRECTORYSERVICE(_to) \
     201                 :   NS_SCRIPTABLE NS_IMETHOD Init(void) { return _to Init(); } \
     202                 :   NS_SCRIPTABLE NS_IMETHOD RegisterProvider(nsIDirectoryServiceProvider *prov) { return _to RegisterProvider(prov); } \
     203                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterProvider(nsIDirectoryServiceProvider *prov) { return _to UnregisterProvider(prov); } 
     204                 : 
     205                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     206                 : #define NS_FORWARD_SAFE_NSIDIRECTORYSERVICE(_to) \
     207                 :   NS_SCRIPTABLE NS_IMETHOD Init(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
     208                 :   NS_SCRIPTABLE NS_IMETHOD RegisterProvider(nsIDirectoryServiceProvider *prov) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterProvider(prov); } \
     209                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterProvider(nsIDirectoryServiceProvider *prov) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterProvider(prov); } 
     210                 : 
     211                 : #if 0
     212                 : /* Use the code below as a template for the implementation class for this interface. */
     213                 : 
     214                 : /* Header file */
     215                 : class nsDirectoryService : public nsIDirectoryService
     216                 : {
     217                 : public:
     218                 :   NS_DECL_ISUPPORTS
     219                 :   NS_DECL_NSIDIRECTORYSERVICE
     220                 : 
     221                 :   nsDirectoryService();
     222                 : 
     223                 : private:
     224                 :   ~nsDirectoryService();
     225                 : 
     226                 : protected:
     227                 :   /* additional members */
     228                 : };
     229                 : 
     230                 : /* Implementation file */
     231                 : NS_IMPL_ISUPPORTS1(nsDirectoryService, nsIDirectoryService)
     232                 : 
     233                 : nsDirectoryService::nsDirectoryService()
     234                 : {
     235                 :   /* member initializers and constructor code */
     236                 : }
     237                 : 
     238                 : nsDirectoryService::~nsDirectoryService()
     239                 : {
     240                 :   /* destructor code */
     241                 : }
     242                 : 
     243                 : /* void init (); */
     244                 : NS_IMETHODIMP nsDirectoryService::Init()
     245                 : {
     246                 :     return NS_ERROR_NOT_IMPLEMENTED;
     247                 : }
     248                 : 
     249                 : /* void registerProvider (in nsIDirectoryServiceProvider prov); */
     250                 : NS_IMETHODIMP nsDirectoryService::RegisterProvider(nsIDirectoryServiceProvider *prov)
     251                 : {
     252                 :     return NS_ERROR_NOT_IMPLEMENTED;
     253                 : }
     254                 : 
     255                 : /* void unregisterProvider (in nsIDirectoryServiceProvider prov); */
     256                 : NS_IMETHODIMP nsDirectoryService::UnregisterProvider(nsIDirectoryServiceProvider *prov)
     257                 : {
     258                 :     return NS_ERROR_NOT_IMPLEMENTED;
     259                 : }
     260                 : 
     261                 : /* End of implementation class template. */
     262                 : #endif
     263                 : 
     264                 : 
     265                 : #endif /* __gen_nsIDirectoryService_h__ */

Generated by: LCOV version 1.7