DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/xpcom/components/nsICategoryManager.idl
 */

#ifndef __gen_nsICategoryManager_h__
#define __gen_nsICategoryManager_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsISimpleEnumerator; /* forward declaration */

#include "nsString.h"

/* starting interface:    nsICategoryManager */
#define NS_ICATEGORYMANAGER_IID_STR "3275b2cd-af6d-429a-80d7-f0c5120342ac"

#define NS_ICATEGORYMANAGER_IID \
  {0x3275b2cd, 0xaf6d, 0x429a, \
    { 0x80, 0xd7, 0xf0, 0xc5, 0x12, 0x03, 0x42, 0xac }}

class nsICategoryManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICATEGORYMANAGER_IID)

  /* ACString getCategoryEntry (in ACString aCategory, in ACString aEntry); */
  NS_IMETHOD GetCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, nsACString& _retval) = 0;

  /* ACString addCategoryEntry (in ACString aCategory, in ACString aEntry, in ACString aValue, in boolean aPersist, in boolean aReplace); */
  NS_IMETHOD AddCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, const nsACString& aValue, bool aPersist, bool aReplace, nsACString& _retval) = 0;

  /* void deleteCategoryEntry (in ACString aCategory, in ACString aEntry, in boolean aPersist); */
  NS_IMETHOD DeleteCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, bool aPersist) = 0;

  /* void deleteCategory (in ACString aCategory); */
  NS_IMETHOD DeleteCategory(const nsACString& aCategory) = 0;

  /* nsISimpleEnumerator enumerateCategory (in ACString aCategory); */
  NS_IMETHOD EnumerateCategory(const nsACString& aCategory, nsISimpleEnumerator **_retval) = 0;

  /* nsISimpleEnumerator enumerateCategories (); */
  NS_IMETHOD EnumerateCategories(nsISimpleEnumerator **_retval) = 0;

     template<size_t N>
    nsresult
    GetCategoryEntry(const char (&aCategory)[N], const nsACString& aEntry,
                     nsACString& aResult)
    {
        return GetCategoryEntry(nsLiteralCString(aCategory),
                                aEntry, aResult);
    }
    template<size_t N, size_t M>
    nsresult
    GetCategoryEntry(const char (&aCategory)[N], const char (&aEntry)[M],
                     nsACString& aResult)
    {
        return GetCategoryEntry(nsLiteralCString(aCategory),
                                nsLiteralCString(aEntry),
                                aResult);
    }
    nsresult
    AddCategoryEntry(const nsACString& aCategory, const nsACString& aEntry,
                     const nsACString& aValue, bool aPersist, bool aReplace)
    {
        nsCString oldValue;
        return AddCategoryEntry(aCategory, aEntry, aValue, aPersist, aReplace,
                                oldValue);
    }
    template<size_t N>
    nsresult
    AddCategoryEntry(const char (&aCategory)[N], const nsACString& aEntry,
                     const nsACString& aValue, bool aPersist, bool aReplace)
    {
        nsCString oldValue;
        return AddCategoryEntry(nsLiteralCString(aCategory), aEntry, aValue,
                                aPersist, aReplace, oldValue);
    }
    template<size_t N>
    nsresult
    DeleteCategoryEntry(const char (&aCategory)[N], const nsACString& aEntry, bool aPersist)
    {
        return DeleteCategoryEntry(nsLiteralCString(aCategory), aEntry, aPersist);
    }
    template<size_t N>
    nsresult
    EnumerateCategory(const char (&aCategory)[N], nsISimpleEnumerator** aResult)
    {
        return EnumerateCategory(nsLiteralCString(aCategory), aResult);
    }
    };

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICategoryManager, NS_ICATEGORYMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICATEGORYMANAGER \
  NS_IMETHOD GetCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, nsACString& _retval) override; \
  NS_IMETHOD AddCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, const nsACString& aValue, bool aPersist, bool aReplace, nsACString& _retval) override; \
  NS_IMETHOD DeleteCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, bool aPersist) override; \
  NS_IMETHOD DeleteCategory(const nsACString& aCategory) override; \
  NS_IMETHOD EnumerateCategory(const nsACString& aCategory, nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD EnumerateCategories(nsISimpleEnumerator **_retval) override; \

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICATEGORYMANAGER \
  nsresult GetCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, nsACString& _retval); \
  nsresult AddCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, const nsACString& aValue, bool aPersist, bool aReplace, nsACString& _retval); \
  nsresult DeleteCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, bool aPersist); \
  nsresult DeleteCategory(const nsACString& aCategory); \
  nsresult EnumerateCategory(const nsACString& aCategory, nsISimpleEnumerator **_retval); \
  nsresult EnumerateCategories(nsISimpleEnumerator **_retval); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICATEGORYMANAGER(_to) \
  NS_IMETHOD GetCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, nsACString& _retval) override { return _to GetCategoryEntry(aCategory, aEntry, _retval); } \
  NS_IMETHOD AddCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, const nsACString& aValue, bool aPersist, bool aReplace, nsACString& _retval) override { return _to AddCategoryEntry(aCategory, aEntry, aValue, aPersist, aReplace, _retval); } \
  NS_IMETHOD DeleteCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, bool aPersist) override { return _to DeleteCategoryEntry(aCategory, aEntry, aPersist); } \
  NS_IMETHOD DeleteCategory(const nsACString& aCategory) override { return _to DeleteCategory(aCategory); } \
  NS_IMETHOD EnumerateCategory(const nsACString& aCategory, nsISimpleEnumerator **_retval) override { return _to EnumerateCategory(aCategory, _retval); } \
  NS_IMETHOD EnumerateCategories(nsISimpleEnumerator **_retval) override { return _to EnumerateCategories(_retval); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICATEGORYMANAGER(_to) \
  NS_IMETHOD GetCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategoryEntry(aCategory, aEntry, _retval); } \
  NS_IMETHOD AddCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, const nsACString& aValue, bool aPersist, bool aReplace, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCategoryEntry(aCategory, aEntry, aValue, aPersist, aReplace, _retval); } \
  NS_IMETHOD DeleteCategoryEntry(const nsACString& aCategory, const nsACString& aEntry, bool aPersist) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCategoryEntry(aCategory, aEntry, aPersist); } \
  NS_IMETHOD DeleteCategory(const nsACString& aCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCategory(aCategory); } \
  NS_IMETHOD EnumerateCategory(const nsACString& aCategory, nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCategory(aCategory, _retval); } \
  NS_IMETHOD EnumerateCategories(nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCategories(_retval); } \


#endif /* __gen_nsICategoryManager_h__ */