1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/ds/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 3748 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result NS_OUTPARAM) = 0;
32 :
33 : /* void set (in string prop, in nsISupports value); */
34 : NS_SCRIPTABLE NS_IMETHOD Set(const char * prop, nsISupports *value) = 0;
35 :
36 : /* boolean has (in string prop); */
37 : NS_SCRIPTABLE NS_IMETHOD Has(const char * prop, bool *_retval NS_OUTPARAM) = 0;
38 :
39 : /* void undefine (in string prop); */
40 : NS_SCRIPTABLE NS_IMETHOD Undefine(const char * prop) = 0;
41 :
42 : /* void getKeys (out PRUint32 count, [array, size_is (count), retval] out string keys); */
43 : NS_SCRIPTABLE NS_IMETHOD GetKeys(PRUint32 *count NS_OUTPARAM, char * **keys NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result NS_OUTPARAM); \
52 : NS_SCRIPTABLE NS_IMETHOD Set(const char * prop, nsISupports *value); \
53 : NS_SCRIPTABLE NS_IMETHOD Has(const char * prop, bool *_retval NS_OUTPARAM); \
54 : NS_SCRIPTABLE NS_IMETHOD Undefine(const char * prop); \
55 : NS_SCRIPTABLE NS_IMETHOD GetKeys(PRUint32 *count NS_OUTPARAM, char * **keys NS_OUTPARAM);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIPROPERTIES(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result NS_OUTPARAM) { return _to Get(prop, iid, result); } \
60 : NS_SCRIPTABLE NS_IMETHOD Set(const char * prop, nsISupports *value) { return _to Set(prop, value); } \
61 : NS_SCRIPTABLE NS_IMETHOD Has(const char * prop, bool *_retval NS_OUTPARAM) { return _to Has(prop, _retval); } \
62 : NS_SCRIPTABLE NS_IMETHOD Undefine(const char * prop) { return _to Undefine(prop); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetKeys(PRUint32 *count NS_OUTPARAM, char * **keys NS_OUTPARAM) { return _to GetKeys(count, keys); }
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
66 : #define NS_FORWARD_SAFE_NSIPROPERTIES(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(prop, iid, result); } \
68 : NS_SCRIPTABLE NS_IMETHOD Set(const char * prop, nsISupports *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->Set(prop, value); } \
69 : NS_SCRIPTABLE NS_IMETHOD Has(const char * prop, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Has(prop, _retval); } \
70 : NS_SCRIPTABLE NS_IMETHOD Undefine(const char * prop) { return !_to ? NS_ERROR_NULL_POINTER : _to->Undefine(prop); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetKeys(PRUint32 *count NS_OUTPARAM, char * **keys NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeys(count, keys); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsProperties : public nsIProperties
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIPROPERTIES
82 :
83 : nsProperties();
84 :
85 : private:
86 : ~nsProperties();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(nsProperties, nsIProperties)
94 :
95 : nsProperties::nsProperties()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsProperties::~nsProperties()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* void get (in string prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
106 : NS_IMETHODIMP nsProperties::Get(const char * prop, const nsIID & iid, void **result NS_OUTPARAM)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* void set (in string prop, in nsISupports value); */
112 : NS_IMETHODIMP nsProperties::Set(const char * prop, nsISupports *value)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* boolean has (in string prop); */
118 : NS_IMETHODIMP nsProperties::Has(const char * prop, bool *_retval NS_OUTPARAM)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* void undefine (in string prop); */
124 : NS_IMETHODIMP nsProperties::Undefine(const char * prop)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* void getKeys (out PRUint32 count, [array, size_is (count), retval] out string keys); */
130 : NS_IMETHODIMP nsProperties::GetKeys(PRUint32 *count NS_OUTPARAM, char * **keys NS_OUTPARAM)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsIProperties_h__ */
|