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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/ds/nsIINIParser.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIINIParser_h__
       6                 : #define __gen_nsIINIParser_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 nsIUTF8StringEnumerator; /* forward declaration */
      18                 : 
      19                 : class nsILocalFile; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIINIParser */
      23                 : #define NS_IINIPARSER_IID_STR "7eb955f6-3e78-4d39-b72f-c1bf12a94bce"
      24                 : 
      25                 : #define NS_IINIPARSER_IID \
      26                 :   {0x7eb955f6, 0x3e78, 0x4d39, \
      27                 :     { 0xb7, 0x2f, 0xc1, 0xbf, 0x12, 0xa9, 0x4b, 0xce }}
      28                 : 
      29            1213 : class NS_NO_VTABLE NS_SCRIPTABLE nsIINIParser : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINIPARSER_IID)
      33                 : 
      34                 :   /* nsIUTF8StringEnumerator getSections (); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD GetSections(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) = 0;
      36                 : 
      37                 :   /* nsIUTF8StringEnumerator getKeys (in AUTF8String aSection); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) = 0;
      39                 : 
      40                 :   /* AUTF8String getString (in AUTF8String aSection, in AUTF8String aKey); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval NS_OUTPARAM) = 0;
      42                 : 
      43                 : };
      44                 : 
      45                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIINIParser, NS_IINIPARSER_IID)
      46                 : 
      47                 : /* Use this macro when declaring classes that implement this interface. */
      48                 : #define NS_DECL_NSIINIPARSER \
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetSections(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _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_NSIINIPARSER(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetSections(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return _to GetSections(_retval); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return _to GetKeys(aSection, _retval); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval NS_OUTPARAM) { return _to GetString(aSection, aKey, _retval); } 
      58                 : 
      59                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      60                 : #define NS_FORWARD_SAFE_NSIINIPARSER(_to) \
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetSections(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSections(_retval); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeys(aSection, _retval); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetString(aSection, aKey, _retval); } 
      64                 : 
      65                 : #if 0
      66                 : /* Use the code below as a template for the implementation class for this interface. */
      67                 : 
      68                 : /* Header file */
      69                 : class nsINIParser : public nsIINIParser
      70                 : {
      71                 : public:
      72                 :   NS_DECL_ISUPPORTS
      73                 :   NS_DECL_NSIINIPARSER
      74                 : 
      75                 :   nsINIParser();
      76                 : 
      77                 : private:
      78                 :   ~nsINIParser();
      79                 : 
      80                 : protected:
      81                 :   /* additional members */
      82                 : };
      83                 : 
      84                 : /* Implementation file */
      85                 : NS_IMPL_ISUPPORTS1(nsINIParser, nsIINIParser)
      86                 : 
      87                 : nsINIParser::nsINIParser()
      88                 : {
      89                 :   /* member initializers and constructor code */
      90                 : }
      91                 : 
      92                 : nsINIParser::~nsINIParser()
      93                 : {
      94                 :   /* destructor code */
      95                 : }
      96                 : 
      97                 : /* nsIUTF8StringEnumerator getSections (); */
      98                 : NS_IMETHODIMP nsINIParser::GetSections(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM)
      99                 : {
     100                 :     return NS_ERROR_NOT_IMPLEMENTED;
     101                 : }
     102                 : 
     103                 : /* nsIUTF8StringEnumerator getKeys (in AUTF8String aSection); */
     104                 : NS_IMETHODIMP nsINIParser::GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM)
     105                 : {
     106                 :     return NS_ERROR_NOT_IMPLEMENTED;
     107                 : }
     108                 : 
     109                 : /* AUTF8String getString (in AUTF8String aSection, in AUTF8String aKey); */
     110                 : NS_IMETHODIMP nsINIParser::GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval NS_OUTPARAM)
     111                 : {
     112                 :     return NS_ERROR_NOT_IMPLEMENTED;
     113                 : }
     114                 : 
     115                 : /* End of implementation class template. */
     116                 : #endif
     117                 : 
     118                 : 
     119                 : /* starting interface:    nsIINIParserWriter */
     120                 : #define NS_IINIPARSERWRITER_IID_STR "712dc5da-8d09-45d0-ba2e-de27eb384c4c"
     121                 : 
     122                 : #define NS_IINIPARSERWRITER_IID \
     123                 :   {0x712dc5da, 0x8d09, 0x45d0, \
     124                 :     { 0xba, 0x2e, 0xde, 0x27, 0xeb, 0x38, 0x4c, 0x4c }}
     125                 : 
     126                 : class NS_NO_VTABLE NS_SCRIPTABLE nsIINIParserWriter : public nsISupports {
     127                 :  public: 
     128                 : 
     129                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINIPARSERWRITER_IID)
     130                 : 
     131                 :   /* void setString (in AUTF8String aSection, in AUTF8String aKey, in AUTF8String aValue); */
     132                 :   NS_SCRIPTABLE NS_IMETHOD SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue) = 0;
     133                 : 
     134                 :   /* void writeFile ([optional] in nsILocalFile aINIFile); */
     135                 :   NS_SCRIPTABLE NS_IMETHOD WriteFile(nsILocalFile *aINIFile) = 0;
     136                 : 
     137                 : };
     138                 : 
     139                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIINIParserWriter, NS_IINIPARSERWRITER_IID)
     140                 : 
     141                 : /* Use this macro when declaring classes that implement this interface. */
     142                 : #define NS_DECL_NSIINIPARSERWRITER \
     143                 :   NS_SCRIPTABLE NS_IMETHOD SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue); \
     144                 :   NS_SCRIPTABLE NS_IMETHOD WriteFile(nsILocalFile *aINIFile); 
     145                 : 
     146                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     147                 : #define NS_FORWARD_NSIINIPARSERWRITER(_to) \
     148                 :   NS_SCRIPTABLE NS_IMETHOD SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue) { return _to SetString(aSection, aKey, aValue); } \
     149                 :   NS_SCRIPTABLE NS_IMETHOD WriteFile(nsILocalFile *aINIFile) { return _to WriteFile(aINIFile); } 
     150                 : 
     151                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     152                 : #define NS_FORWARD_SAFE_NSIINIPARSERWRITER(_to) \
     153                 :   NS_SCRIPTABLE NS_IMETHOD SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetString(aSection, aKey, aValue); } \
     154                 :   NS_SCRIPTABLE NS_IMETHOD WriteFile(nsILocalFile *aINIFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteFile(aINIFile); } 
     155                 : 
     156                 : #if 0
     157                 : /* Use the code below as a template for the implementation class for this interface. */
     158                 : 
     159                 : /* Header file */
     160                 : class nsINIParserWriter : public nsIINIParserWriter
     161                 : {
     162                 : public:
     163                 :   NS_DECL_ISUPPORTS
     164                 :   NS_DECL_NSIINIPARSERWRITER
     165                 : 
     166                 :   nsINIParserWriter();
     167                 : 
     168                 : private:
     169                 :   ~nsINIParserWriter();
     170                 : 
     171                 : protected:
     172                 :   /* additional members */
     173                 : };
     174                 : 
     175                 : /* Implementation file */
     176                 : NS_IMPL_ISUPPORTS1(nsINIParserWriter, nsIINIParserWriter)
     177                 : 
     178                 : nsINIParserWriter::nsINIParserWriter()
     179                 : {
     180                 :   /* member initializers and constructor code */
     181                 : }
     182                 : 
     183                 : nsINIParserWriter::~nsINIParserWriter()
     184                 : {
     185                 :   /* destructor code */
     186                 : }
     187                 : 
     188                 : /* void setString (in AUTF8String aSection, in AUTF8String aKey, in AUTF8String aValue); */
     189                 : NS_IMETHODIMP nsINIParserWriter::SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue)
     190                 : {
     191                 :     return NS_ERROR_NOT_IMPLEMENTED;
     192                 : }
     193                 : 
     194                 : /* void writeFile ([optional] in nsILocalFile aINIFile); */
     195                 : NS_IMETHODIMP nsINIParserWriter::WriteFile(nsILocalFile *aINIFile)
     196                 : {
     197                 :     return NS_ERROR_NOT_IMPLEMENTED;
     198                 : }
     199                 : 
     200                 : /* End of implementation class template. */
     201                 : #endif
     202                 : 
     203                 : 
     204                 : /* starting interface:    nsIINIParserFactory */
     205                 : #define NS_IINIPARSERFACTORY_IID_STR "ccae7ea5-1218-4b51-aecb-c2d8ecd46af9"
     206                 : 
     207                 : #define NS_IINIPARSERFACTORY_IID \
     208                 :   {0xccae7ea5, 0x1218, 0x4b51, \
     209                 :     { 0xae, 0xcb, 0xc2, 0xd8, 0xec, 0xd4, 0x6a, 0xf9 }}
     210                 : 
     211             147 : class NS_NO_VTABLE NS_SCRIPTABLE nsIINIParserFactory : public nsISupports {
     212                 :  public: 
     213                 : 
     214                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINIPARSERFACTORY_IID)
     215                 : 
     216                 :   /* nsIINIParser createINIParser (in nsILocalFile aINIFile); */
     217                 :   NS_SCRIPTABLE NS_IMETHOD CreateINIParser(nsILocalFile *aINIFile, nsIINIParser * *_retval NS_OUTPARAM) = 0;
     218                 : 
     219                 : };
     220                 : 
     221                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIINIParserFactory, NS_IINIPARSERFACTORY_IID)
     222                 : 
     223                 : /* Use this macro when declaring classes that implement this interface. */
     224                 : #define NS_DECL_NSIINIPARSERFACTORY \
     225                 :   NS_SCRIPTABLE NS_IMETHOD CreateINIParser(nsILocalFile *aINIFile, nsIINIParser * *_retval NS_OUTPARAM); 
     226                 : 
     227                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     228                 : #define NS_FORWARD_NSIINIPARSERFACTORY(_to) \
     229                 :   NS_SCRIPTABLE NS_IMETHOD CreateINIParser(nsILocalFile *aINIFile, nsIINIParser * *_retval NS_OUTPARAM) { return _to CreateINIParser(aINIFile, _retval); } 
     230                 : 
     231                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     232                 : #define NS_FORWARD_SAFE_NSIINIPARSERFACTORY(_to) \
     233                 :   NS_SCRIPTABLE NS_IMETHOD CreateINIParser(nsILocalFile *aINIFile, nsIINIParser * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateINIParser(aINIFile, _retval); } 
     234                 : 
     235                 : #if 0
     236                 : /* Use the code below as a template for the implementation class for this interface. */
     237                 : 
     238                 : /* Header file */
     239                 : class nsINIParserFactory : public nsIINIParserFactory
     240                 : {
     241                 : public:
     242                 :   NS_DECL_ISUPPORTS
     243                 :   NS_DECL_NSIINIPARSERFACTORY
     244                 : 
     245                 :   nsINIParserFactory();
     246                 : 
     247                 : private:
     248                 :   ~nsINIParserFactory();
     249                 : 
     250                 : protected:
     251                 :   /* additional members */
     252                 : };
     253                 : 
     254                 : /* Implementation file */
     255                 : NS_IMPL_ISUPPORTS1(nsINIParserFactory, nsIINIParserFactory)
     256                 : 
     257                 : nsINIParserFactory::nsINIParserFactory()
     258                 : {
     259                 :   /* member initializers and constructor code */
     260                 : }
     261                 : 
     262                 : nsINIParserFactory::~nsINIParserFactory()
     263                 : {
     264                 :   /* destructor code */
     265                 : }
     266                 : 
     267                 : /* nsIINIParser createINIParser (in nsILocalFile aINIFile); */
     268                 : NS_IMETHODIMP nsINIParserFactory::CreateINIParser(nsILocalFile *aINIFile, nsIINIParser * *_retval NS_OUTPARAM)
     269                 : {
     270                 :     return NS_ERROR_NOT_IMPLEMENTED;
     271                 : }
     272                 : 
     273                 : /* End of implementation class template. */
     274                 : #endif
     275                 : 
     276                 : 
     277                 : #endif /* __gen_nsIINIParser_h__ */

Generated by: LCOV version 1.7