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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 nsIFile; /* 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           0 : class NS_NO_VTABLE nsIINIParser : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINIPARSER_IID)
      33             : 
      34             :   /* nsIUTF8StringEnumerator getSections (); */
      35             :   NS_IMETHOD GetSections(nsIUTF8StringEnumerator * *_retval) = 0;
      36             : 
      37             :   /* nsIUTF8StringEnumerator getKeys (in AUTF8String aSection); */
      38             :   NS_IMETHOD GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval) = 0;
      39             : 
      40             :   /* AUTF8String getString (in AUTF8String aSection, in AUTF8String aKey); */
      41             :   NS_IMETHOD GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval) = 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_IMETHOD GetSections(nsIUTF8StringEnumerator * *_retval) override; \
      50             :   NS_IMETHOD GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval) override; \
      51             :   NS_IMETHOD GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval) override; 
      52             : 
      53             : /* Use this macro when declaring the members of this interface when the
      54             :    class doesn't implement the interface. This is useful for forwarding. */
      55             : #define NS_DECL_NON_VIRTUAL_NSIINIPARSER \
      56             :   nsresult GetSections(nsIUTF8StringEnumerator * *_retval); \
      57             :   nsresult GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval); \
      58             :   nsresult GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval); 
      59             : 
      60             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      61             : #define NS_FORWARD_NSIINIPARSER(_to) \
      62             :   NS_IMETHOD GetSections(nsIUTF8StringEnumerator * *_retval) override { return _to GetSections(_retval); } \
      63             :   NS_IMETHOD GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval) override { return _to GetKeys(aSection, _retval); } \
      64             :   NS_IMETHOD GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval) override { return _to GetString(aSection, aKey, _retval); } 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      67             : #define NS_FORWARD_SAFE_NSIINIPARSER(_to) \
      68             :   NS_IMETHOD GetSections(nsIUTF8StringEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSections(_retval); } \
      69             :   NS_IMETHOD GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeys(aSection, _retval); } \
      70             :   NS_IMETHOD GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetString(aSection, aKey, _retval); } 
      71             : 
      72             : #if 0
      73             : /* Use the code below as a template for the implementation class for this interface. */
      74             : 
      75             : /* Header file */
      76             : class nsINIParser : public nsIINIParser
      77             : {
      78             : public:
      79             :   NS_DECL_ISUPPORTS
      80             :   NS_DECL_NSIINIPARSER
      81             : 
      82             :   nsINIParser();
      83             : 
      84             : private:
      85             :   ~nsINIParser();
      86             : 
      87             : protected:
      88             :   /* additional members */
      89             : };
      90             : 
      91             : /* Implementation file */
      92             : NS_IMPL_ISUPPORTS(nsINIParser, nsIINIParser)
      93             : 
      94             : nsINIParser::nsINIParser()
      95             : {
      96             :   /* member initializers and constructor code */
      97             : }
      98             : 
      99             : nsINIParser::~nsINIParser()
     100             : {
     101             :   /* destructor code */
     102             : }
     103             : 
     104             : /* nsIUTF8StringEnumerator getSections (); */
     105             : NS_IMETHODIMP nsINIParser::GetSections(nsIUTF8StringEnumerator * *_retval)
     106             : {
     107             :     return NS_ERROR_NOT_IMPLEMENTED;
     108             : }
     109             : 
     110             : /* nsIUTF8StringEnumerator getKeys (in AUTF8String aSection); */
     111             : NS_IMETHODIMP nsINIParser::GetKeys(const nsACString & aSection, nsIUTF8StringEnumerator * *_retval)
     112             : {
     113             :     return NS_ERROR_NOT_IMPLEMENTED;
     114             : }
     115             : 
     116             : /* AUTF8String getString (in AUTF8String aSection, in AUTF8String aKey); */
     117             : NS_IMETHODIMP nsINIParser::GetString(const nsACString & aSection, const nsACString & aKey, nsACString & _retval)
     118             : {
     119             :     return NS_ERROR_NOT_IMPLEMENTED;
     120             : }
     121             : 
     122             : /* End of implementation class template. */
     123             : #endif
     124             : 
     125             : 
     126             : /* starting interface:    nsIINIParserWriter */
     127             : #define NS_IINIPARSERWRITER_IID_STR "b67bb24b-31a3-4a6a-a5d9-0485c9af5a04"
     128             : 
     129             : #define NS_IINIPARSERWRITER_IID \
     130             :   {0xb67bb24b, 0x31a3, 0x4a6a, \
     131             :     { 0xa5, 0xd9, 0x04, 0x85, 0xc9, 0xaf, 0x5a, 0x04 }}
     132             : 
     133             : class NS_NO_VTABLE nsIINIParserWriter : public nsISupports {
     134             :  public:
     135             : 
     136             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINIPARSERWRITER_IID)
     137             : 
     138             :   enum {
     139             :     WRITE_UTF16 = 1U
     140             :   };
     141             : 
     142             :   /* void setString (in AUTF8String aSection, in AUTF8String aKey, in AUTF8String aValue); */
     143             :   NS_IMETHOD SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue) = 0;
     144             : 
     145             :   /* void writeFile ([optional] in nsIFile aINIFile, [optional] in unsigned long aFlags); */
     146             :   NS_IMETHOD WriteFile(nsIFile *aINIFile, uint32_t aFlags) = 0;
     147             : 
     148             : };
     149             : 
     150             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIINIParserWriter, NS_IINIPARSERWRITER_IID)
     151             : 
     152             : /* Use this macro when declaring classes that implement this interface. */
     153             : #define NS_DECL_NSIINIPARSERWRITER \
     154             :   NS_IMETHOD SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue) override; \
     155             :   NS_IMETHOD WriteFile(nsIFile *aINIFile, uint32_t aFlags) override; 
     156             : 
     157             : /* Use this macro when declaring the members of this interface when the
     158             :    class doesn't implement the interface. This is useful for forwarding. */
     159             : #define NS_DECL_NON_VIRTUAL_NSIINIPARSERWRITER \
     160             :   nsresult SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue); \
     161             :   nsresult WriteFile(nsIFile *aINIFile, uint32_t aFlags); 
     162             : 
     163             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     164             : #define NS_FORWARD_NSIINIPARSERWRITER(_to) \
     165             :   NS_IMETHOD SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue) override { return _to SetString(aSection, aKey, aValue); } \
     166             :   NS_IMETHOD WriteFile(nsIFile *aINIFile, uint32_t aFlags) override { return _to WriteFile(aINIFile, aFlags); } 
     167             : 
     168             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     169             : #define NS_FORWARD_SAFE_NSIINIPARSERWRITER(_to) \
     170             :   NS_IMETHOD SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetString(aSection, aKey, aValue); } \
     171             :   NS_IMETHOD WriteFile(nsIFile *aINIFile, uint32_t aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteFile(aINIFile, aFlags); } 
     172             : 
     173             : #if 0
     174             : /* Use the code below as a template for the implementation class for this interface. */
     175             : 
     176             : /* Header file */
     177             : class nsINIParserWriter : public nsIINIParserWriter
     178             : {
     179             : public:
     180             :   NS_DECL_ISUPPORTS
     181             :   NS_DECL_NSIINIPARSERWRITER
     182             : 
     183             :   nsINIParserWriter();
     184             : 
     185             : private:
     186             :   ~nsINIParserWriter();
     187             : 
     188             : protected:
     189             :   /* additional members */
     190             : };
     191             : 
     192             : /* Implementation file */
     193             : NS_IMPL_ISUPPORTS(nsINIParserWriter, nsIINIParserWriter)
     194             : 
     195             : nsINIParserWriter::nsINIParserWriter()
     196             : {
     197             :   /* member initializers and constructor code */
     198             : }
     199             : 
     200             : nsINIParserWriter::~nsINIParserWriter()
     201             : {
     202             :   /* destructor code */
     203             : }
     204             : 
     205             : /* void setString (in AUTF8String aSection, in AUTF8String aKey, in AUTF8String aValue); */
     206             : NS_IMETHODIMP nsINIParserWriter::SetString(const nsACString & aSection, const nsACString & aKey, const nsACString & aValue)
     207             : {
     208             :     return NS_ERROR_NOT_IMPLEMENTED;
     209             : }
     210             : 
     211             : /* void writeFile ([optional] in nsIFile aINIFile, [optional] in unsigned long aFlags); */
     212             : NS_IMETHODIMP nsINIParserWriter::WriteFile(nsIFile *aINIFile, uint32_t aFlags)
     213             : {
     214             :     return NS_ERROR_NOT_IMPLEMENTED;
     215             : }
     216             : 
     217             : /* End of implementation class template. */
     218             : #endif
     219             : 
     220             : 
     221             : /* starting interface:    nsIINIParserFactory */
     222             : #define NS_IINIPARSERFACTORY_IID_STR "ccae7ea5-1218-4b51-aecb-c2d8ecd46af9"
     223             : 
     224             : #define NS_IINIPARSERFACTORY_IID \
     225             :   {0xccae7ea5, 0x1218, 0x4b51, \
     226             :     { 0xae, 0xcb, 0xc2, 0xd8, 0xec, 0xd4, 0x6a, 0xf9 }}
     227             : 
     228           0 : class NS_NO_VTABLE nsIINIParserFactory : public nsISupports {
     229             :  public:
     230             : 
     231             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINIPARSERFACTORY_IID)
     232             : 
     233             :   /* nsIINIParser createINIParser (in nsIFile aINIFile); */
     234             :   NS_IMETHOD CreateINIParser(nsIFile *aINIFile, nsIINIParser * *_retval) = 0;
     235             : 
     236             : };
     237             : 
     238             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIINIParserFactory, NS_IINIPARSERFACTORY_IID)
     239             : 
     240             : /* Use this macro when declaring classes that implement this interface. */
     241             : #define NS_DECL_NSIINIPARSERFACTORY \
     242             :   NS_IMETHOD CreateINIParser(nsIFile *aINIFile, nsIINIParser * *_retval) override; 
     243             : 
     244             : /* Use this macro when declaring the members of this interface when the
     245             :    class doesn't implement the interface. This is useful for forwarding. */
     246             : #define NS_DECL_NON_VIRTUAL_NSIINIPARSERFACTORY \
     247             :   nsresult CreateINIParser(nsIFile *aINIFile, nsIINIParser * *_retval); 
     248             : 
     249             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     250             : #define NS_FORWARD_NSIINIPARSERFACTORY(_to) \
     251             :   NS_IMETHOD CreateINIParser(nsIFile *aINIFile, nsIINIParser * *_retval) override { return _to CreateINIParser(aINIFile, _retval); } 
     252             : 
     253             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     254             : #define NS_FORWARD_SAFE_NSIINIPARSERFACTORY(_to) \
     255             :   NS_IMETHOD CreateINIParser(nsIFile *aINIFile, nsIINIParser * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateINIParser(aINIFile, _retval); } 
     256             : 
     257             : #if 0
     258             : /* Use the code below as a template for the implementation class for this interface. */
     259             : 
     260             : /* Header file */
     261             : class nsINIParserFactory : public nsIINIParserFactory
     262             : {
     263             : public:
     264             :   NS_DECL_ISUPPORTS
     265             :   NS_DECL_NSIINIPARSERFACTORY
     266             : 
     267             :   nsINIParserFactory();
     268             : 
     269             : private:
     270             :   ~nsINIParserFactory();
     271             : 
     272             : protected:
     273             :   /* additional members */
     274             : };
     275             : 
     276             : /* Implementation file */
     277             : NS_IMPL_ISUPPORTS(nsINIParserFactory, nsIINIParserFactory)
     278             : 
     279             : nsINIParserFactory::nsINIParserFactory()
     280             : {
     281             :   /* member initializers and constructor code */
     282             : }
     283             : 
     284             : nsINIParserFactory::~nsINIParserFactory()
     285             : {
     286             :   /* destructor code */
     287             : }
     288             : 
     289             : /* nsIINIParser createINIParser (in nsIFile aINIFile); */
     290             : NS_IMETHODIMP nsINIParserFactory::CreateINIParser(nsIFile *aINIFile, nsIINIParser * *_retval)
     291             : {
     292             :     return NS_ERROR_NOT_IMPLEMENTED;
     293             : }
     294             : 
     295             : /* End of implementation class template. */
     296             : #endif
     297             : 
     298             : 
     299             : #endif /* __gen_nsIINIParser_h__ */

Generated by: LCOV version 1.13