LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsICategoryManager.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/nsICategoryManager.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsICategoryManager_h__
       6             : #define __gen_nsICategoryManager_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 nsISimpleEnumerator; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsICategoryManager */
      21             : #define NS_ICATEGORYMANAGER_IID_STR "3275b2cd-af6d-429a-80d7-f0c5120342ac"
      22             : 
      23             : #define NS_ICATEGORYMANAGER_IID \
      24             :   {0x3275b2cd, 0xaf6d, 0x429a, \
      25             :     { 0x80, 0xd7, 0xf0, 0xc5, 0x12, 0x03, 0x42, 0xac }}
      26             : 
      27           3 : class NS_NO_VTABLE nsICategoryManager : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICATEGORYMANAGER_IID)
      31             : 
      32             :   /* string getCategoryEntry (in string aCategory, in string aEntry); */
      33             :   NS_IMETHOD GetCategoryEntry(const char * aCategory, const char * aEntry, char * *_retval) = 0;
      34             : 
      35             :   /* string addCategoryEntry (in string aCategory, in string aEntry, in string aValue, in boolean aPersist, in boolean aReplace); */
      36             :   NS_IMETHOD AddCategoryEntry(const char * aCategory, const char * aEntry, const char * aValue, bool aPersist, bool aReplace, char * *_retval) = 0;
      37             : 
      38             :   /* void deleteCategoryEntry (in string aCategory, in string aEntry, in boolean aPersist); */
      39             :   NS_IMETHOD DeleteCategoryEntry(const char * aCategory, const char * aEntry, bool aPersist) = 0;
      40             : 
      41             :   /* void deleteCategory (in string aCategory); */
      42             :   NS_IMETHOD DeleteCategory(const char * aCategory) = 0;
      43             : 
      44             :   /* nsISimpleEnumerator enumerateCategory (in string aCategory); */
      45             :   NS_IMETHOD EnumerateCategory(const char * aCategory, nsISimpleEnumerator * *_retval) = 0;
      46             : 
      47             :   /* nsISimpleEnumerator enumerateCategories (); */
      48             :   NS_IMETHOD EnumerateCategories(nsISimpleEnumerator * *_retval) = 0;
      49             : 
      50             : };
      51             : 
      52             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICategoryManager, NS_ICATEGORYMANAGER_IID)
      53             : 
      54             : /* Use this macro when declaring classes that implement this interface. */
      55             : #define NS_DECL_NSICATEGORYMANAGER \
      56             :   NS_IMETHOD GetCategoryEntry(const char * aCategory, const char * aEntry, char * *_retval) override; \
      57             :   NS_IMETHOD AddCategoryEntry(const char * aCategory, const char * aEntry, const char * aValue, bool aPersist, bool aReplace, char * *_retval) override; \
      58             :   NS_IMETHOD DeleteCategoryEntry(const char * aCategory, const char * aEntry, bool aPersist) override; \
      59             :   NS_IMETHOD DeleteCategory(const char * aCategory) override; \
      60             :   NS_IMETHOD EnumerateCategory(const char * aCategory, nsISimpleEnumerator * *_retval) override; \
      61             :   NS_IMETHOD EnumerateCategories(nsISimpleEnumerator * *_retval) override; 
      62             : 
      63             : /* Use this macro when declaring the members of this interface when the
      64             :    class doesn't implement the interface. This is useful for forwarding. */
      65             : #define NS_DECL_NON_VIRTUAL_NSICATEGORYMANAGER \
      66             :   nsresult GetCategoryEntry(const char * aCategory, const char * aEntry, char * *_retval); \
      67             :   nsresult AddCategoryEntry(const char * aCategory, const char * aEntry, const char * aValue, bool aPersist, bool aReplace, char * *_retval); \
      68             :   nsresult DeleteCategoryEntry(const char * aCategory, const char * aEntry, bool aPersist); \
      69             :   nsresult DeleteCategory(const char * aCategory); \
      70             :   nsresult EnumerateCategory(const char * aCategory, nsISimpleEnumerator * *_retval); \
      71             :   nsresult EnumerateCategories(nsISimpleEnumerator * *_retval); 
      72             : 
      73             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      74             : #define NS_FORWARD_NSICATEGORYMANAGER(_to) \
      75             :   NS_IMETHOD GetCategoryEntry(const char * aCategory, const char * aEntry, char * *_retval) override { return _to GetCategoryEntry(aCategory, aEntry, _retval); } \
      76             :   NS_IMETHOD AddCategoryEntry(const char * aCategory, const char * aEntry, const char * aValue, bool aPersist, bool aReplace, char * *_retval) override { return _to AddCategoryEntry(aCategory, aEntry, aValue, aPersist, aReplace, _retval); } \
      77             :   NS_IMETHOD DeleteCategoryEntry(const char * aCategory, const char * aEntry, bool aPersist) override { return _to DeleteCategoryEntry(aCategory, aEntry, aPersist); } \
      78             :   NS_IMETHOD DeleteCategory(const char * aCategory) override { return _to DeleteCategory(aCategory); } \
      79             :   NS_IMETHOD EnumerateCategory(const char * aCategory, nsISimpleEnumerator * *_retval) override { return _to EnumerateCategory(aCategory, _retval); } \
      80             :   NS_IMETHOD EnumerateCategories(nsISimpleEnumerator * *_retval) override { return _to EnumerateCategories(_retval); } 
      81             : 
      82             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      83             : #define NS_FORWARD_SAFE_NSICATEGORYMANAGER(_to) \
      84             :   NS_IMETHOD GetCategoryEntry(const char * aCategory, const char * aEntry, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategoryEntry(aCategory, aEntry, _retval); } \
      85             :   NS_IMETHOD AddCategoryEntry(const char * aCategory, const char * aEntry, const char * aValue, bool aPersist, bool aReplace, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCategoryEntry(aCategory, aEntry, aValue, aPersist, aReplace, _retval); } \
      86             :   NS_IMETHOD DeleteCategoryEntry(const char * aCategory, const char * aEntry, bool aPersist) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCategoryEntry(aCategory, aEntry, aPersist); } \
      87             :   NS_IMETHOD DeleteCategory(const char * aCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCategory(aCategory); } \
      88             :   NS_IMETHOD EnumerateCategory(const char * aCategory, nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCategory(aCategory, _retval); } \
      89             :   NS_IMETHOD EnumerateCategories(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCategories(_retval); } 
      90             : 
      91             : #if 0
      92             : /* Use the code below as a template for the implementation class for this interface. */
      93             : 
      94             : /* Header file */
      95             : class nsCategoryManager : public nsICategoryManager
      96             : {
      97             : public:
      98             :   NS_DECL_ISUPPORTS
      99             :   NS_DECL_NSICATEGORYMANAGER
     100             : 
     101             :   nsCategoryManager();
     102             : 
     103             : private:
     104             :   ~nsCategoryManager();
     105             : 
     106             : protected:
     107             :   /* additional members */
     108             : };
     109             : 
     110             : /* Implementation file */
     111             : NS_IMPL_ISUPPORTS(nsCategoryManager, nsICategoryManager)
     112             : 
     113             : nsCategoryManager::nsCategoryManager()
     114             : {
     115             :   /* member initializers and constructor code */
     116             : }
     117             : 
     118             : nsCategoryManager::~nsCategoryManager()
     119             : {
     120             :   /* destructor code */
     121             : }
     122             : 
     123             : /* string getCategoryEntry (in string aCategory, in string aEntry); */
     124             : NS_IMETHODIMP nsCategoryManager::GetCategoryEntry(const char * aCategory, const char * aEntry, char * *_retval)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* string addCategoryEntry (in string aCategory, in string aEntry, in string aValue, in boolean aPersist, in boolean aReplace); */
     130             : NS_IMETHODIMP nsCategoryManager::AddCategoryEntry(const char * aCategory, const char * aEntry, const char * aValue, bool aPersist, bool aReplace, char * *_retval)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* void deleteCategoryEntry (in string aCategory, in string aEntry, in boolean aPersist); */
     136             : NS_IMETHODIMP nsCategoryManager::DeleteCategoryEntry(const char * aCategory, const char * aEntry, bool aPersist)
     137             : {
     138             :     return NS_ERROR_NOT_IMPLEMENTED;
     139             : }
     140             : 
     141             : /* void deleteCategory (in string aCategory); */
     142             : NS_IMETHODIMP nsCategoryManager::DeleteCategory(const char * aCategory)
     143             : {
     144             :     return NS_ERROR_NOT_IMPLEMENTED;
     145             : }
     146             : 
     147             : /* nsISimpleEnumerator enumerateCategory (in string aCategory); */
     148             : NS_IMETHODIMP nsCategoryManager::EnumerateCategory(const char * aCategory, nsISimpleEnumerator * *_retval)
     149             : {
     150             :     return NS_ERROR_NOT_IMPLEMENTED;
     151             : }
     152             : 
     153             : /* nsISimpleEnumerator enumerateCategories (); */
     154             : NS_IMETHODIMP nsCategoryManager::EnumerateCategories(nsISimpleEnumerator * *_retval)
     155             : {
     156             :     return NS_ERROR_NOT_IMPLEMENTED;
     157             : }
     158             : 
     159             : /* End of implementation class template. */
     160             : #endif
     161             : 
     162             : 
     163             : #endif /* __gen_nsICategoryManager_h__ */

Generated by: LCOV version 1.13