Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIProperties.idl
3 : */
4 :
5 : #ifndef __gen_nsIProperties_h__
6 : #define __gen_nsIProperties_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 :
18 : /* starting interface: nsIProperties */
19 : #define NS_IPROPERTIES_IID_STR "78650582-4e93-4b60-8e85-26ebd3eb14ca"
20 :
21 : #define NS_IPROPERTIES_IID \
22 : {0x78650582, 0x4e93, 0x4b60, \
23 : { 0x8e, 0x85, 0x26, 0xeb, 0xd3, 0xeb, 0x14, 0xca }}
24 :
25 85 : class NS_NO_VTABLE nsIProperties : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROPERTIES_IID)
29 :
30 : /* void get (in string prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
31 : NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result) = 0;
32 :
33 : /* void set (in string prop, in nsISupports value); */
34 : NS_IMETHOD Set(const char * prop, nsISupports *value) = 0;
35 :
36 : /* boolean has (in string prop); */
37 : NS_IMETHOD Has(const char * prop, bool *_retval) = 0;
38 :
39 : /* void undefine (in string prop); */
40 : NS_IMETHOD Undefine(const char * prop) = 0;
41 :
42 : /* void getKeys (out uint32_t count, [array, size_is (count), retval] out string keys); */
43 : NS_IMETHOD GetKeys(uint32_t *count, char * **keys) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProperties, NS_IPROPERTIES_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIPROPERTIES \
51 : NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result) override; \
52 : NS_IMETHOD Set(const char * prop, nsISupports *value) override; \
53 : NS_IMETHOD Has(const char * prop, bool *_retval) override; \
54 : NS_IMETHOD Undefine(const char * prop) override; \
55 : NS_IMETHOD GetKeys(uint32_t *count, char * **keys) override;
56 :
57 : /* Use this macro when declaring the members of this interface when the
58 : class doesn't implement the interface. This is useful for forwarding. */
59 : #define NS_DECL_NON_VIRTUAL_NSIPROPERTIES \
60 : nsresult Get(const char * prop, const nsIID & iid, void **result); \
61 : nsresult Set(const char * prop, nsISupports *value); \
62 : nsresult Has(const char * prop, bool *_retval); \
63 : nsresult Undefine(const char * prop); \
64 : nsresult GetKeys(uint32_t *count, char * **keys);
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
67 : #define NS_FORWARD_NSIPROPERTIES(_to) \
68 : NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result) override { return _to Get(prop, iid, result); } \
69 : NS_IMETHOD Set(const char * prop, nsISupports *value) override { return _to Set(prop, value); } \
70 : NS_IMETHOD Has(const char * prop, bool *_retval) override { return _to Has(prop, _retval); } \
71 : NS_IMETHOD Undefine(const char * prop) override { return _to Undefine(prop); } \
72 : NS_IMETHOD GetKeys(uint32_t *count, char * **keys) override { return _to GetKeys(count, keys); }
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
75 : #define NS_FORWARD_SAFE_NSIPROPERTIES(_to) \
76 : NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(prop, iid, result); } \
77 : NS_IMETHOD Set(const char * prop, nsISupports *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Set(prop, value); } \
78 : NS_IMETHOD Has(const char * prop, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Has(prop, _retval); } \
79 : NS_IMETHOD Undefine(const char * prop) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Undefine(prop); } \
80 : NS_IMETHOD GetKeys(uint32_t *count, char * **keys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeys(count, keys); }
81 :
82 : #if 0
83 : /* Use the code below as a template for the implementation class for this interface. */
84 :
85 : /* Header file */
86 : class nsProperties : public nsIProperties
87 : {
88 : public:
89 : NS_DECL_ISUPPORTS
90 : NS_DECL_NSIPROPERTIES
91 :
92 : nsProperties();
93 :
94 : private:
95 : ~nsProperties();
96 :
97 : protected:
98 : /* additional members */
99 : };
100 :
101 : /* Implementation file */
102 : NS_IMPL_ISUPPORTS(nsProperties, nsIProperties)
103 :
104 : nsProperties::nsProperties()
105 : {
106 : /* member initializers and constructor code */
107 : }
108 :
109 : nsProperties::~nsProperties()
110 : {
111 : /* destructor code */
112 : }
113 :
114 : /* void get (in string prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
115 : NS_IMETHODIMP nsProperties::Get(const char * prop, const nsIID & iid, void **result)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* void set (in string prop, in nsISupports value); */
121 : NS_IMETHODIMP nsProperties::Set(const char * prop, nsISupports *value)
122 : {
123 : return NS_ERROR_NOT_IMPLEMENTED;
124 : }
125 :
126 : /* boolean has (in string prop); */
127 : NS_IMETHODIMP nsProperties::Has(const char * prop, bool *_retval)
128 : {
129 : return NS_ERROR_NOT_IMPLEMENTED;
130 : }
131 :
132 : /* void undefine (in string prop); */
133 : NS_IMETHODIMP nsProperties::Undefine(const char * prop)
134 : {
135 : return NS_ERROR_NOT_IMPLEMENTED;
136 : }
137 :
138 : /* void getKeys (out uint32_t count, [array, size_is (count), retval] out string keys); */
139 : NS_IMETHODIMP nsProperties::GetKeys(uint32_t *count, char * **keys)
140 : {
141 : return NS_ERROR_NOT_IMPLEMENTED;
142 : }
143 :
144 : /* End of implementation class template. */
145 : #endif
146 :
147 :
148 : #endif /* __gen_nsIProperties_h__ */
|