1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/rdf/base/idl/nsIRDFResource.idl
3 : */
4 :
5 : #ifndef __gen_nsIRDFResource_h__
6 : #define __gen_nsIRDFResource_h__
7 :
8 :
9 : #ifndef __gen_nsrootidl_h__
10 : #include "nsrootidl.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIRDFNode_h__
14 : #include "nsIRDFNode.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsIRDFResource */
23 : #define NS_IRDFRESOURCE_IID_STR "fb9686a7-719a-49dc-9107-10dea5739341"
24 :
25 : #define NS_IRDFRESOURCE_IID \
26 : {0xfb9686a7, 0x719a, 0x49dc, \
27 : { 0x91, 0x07, 0x10, 0xde, 0xa5, 0x73, 0x93, 0x41 }}
28 :
29 56424 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFResource : public nsIRDFNode {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFRESOURCE_IID)
33 :
34 : /* readonly attribute string Value; */
35 : NS_SCRIPTABLE NS_IMETHOD GetValue(char * *aValue) = 0;
36 :
37 : /* readonly attribute AUTF8String ValueUTF8; */
38 : NS_SCRIPTABLE NS_IMETHOD GetValueUTF8(nsACString & aValueUTF8) = 0;
39 :
40 : /* [noscript] void GetValueConst ([shared] out string aConstValue); */
41 : NS_IMETHOD GetValueConst(const char * *aConstValue NS_OUTPARAM) = 0;
42 :
43 : /* void Init (in string uri); */
44 : NS_SCRIPTABLE NS_IMETHOD Init(const char * uri) = 0;
45 :
46 : /* boolean EqualsString (in string aURI); */
47 : NS_SCRIPTABLE NS_IMETHOD EqualsString(const char * aURI, bool *_retval NS_OUTPARAM) = 0;
48 :
49 : /* void GetDelegate (in string aKey, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult aResult); */
50 : NS_SCRIPTABLE NS_IMETHOD GetDelegate(const char * aKey, const nsIID & aIID, void **aResult NS_OUTPARAM) = 0;
51 :
52 : /* void ReleaseDelegate (in string aKey); */
53 : NS_SCRIPTABLE NS_IMETHOD ReleaseDelegate(const char * aKey) = 0;
54 :
55 : };
56 :
57 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFResource, NS_IRDFRESOURCE_IID)
58 :
59 : /* Use this macro when declaring classes that implement this interface. */
60 : #define NS_DECL_NSIRDFRESOURCE \
61 : NS_SCRIPTABLE NS_IMETHOD GetValue(char * *aValue); \
62 : NS_SCRIPTABLE NS_IMETHOD GetValueUTF8(nsACString & aValueUTF8); \
63 : NS_IMETHOD GetValueConst(const char * *aConstValue NS_OUTPARAM); \
64 : NS_SCRIPTABLE NS_IMETHOD Init(const char * uri); \
65 : NS_SCRIPTABLE NS_IMETHOD EqualsString(const char * aURI, bool *_retval NS_OUTPARAM); \
66 : NS_SCRIPTABLE NS_IMETHOD GetDelegate(const char * aKey, const nsIID & aIID, void **aResult NS_OUTPARAM); \
67 : NS_SCRIPTABLE NS_IMETHOD ReleaseDelegate(const char * aKey);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIRDFRESOURCE(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD GetValue(char * *aValue) { return _to GetValue(aValue); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetValueUTF8(nsACString & aValueUTF8) { return _to GetValueUTF8(aValueUTF8); } \
73 : NS_IMETHOD GetValueConst(const char * *aConstValue NS_OUTPARAM) { return _to GetValueConst(aConstValue); } \
74 : NS_SCRIPTABLE NS_IMETHOD Init(const char * uri) { return _to Init(uri); } \
75 : NS_SCRIPTABLE NS_IMETHOD EqualsString(const char * aURI, bool *_retval NS_OUTPARAM) { return _to EqualsString(aURI, _retval); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetDelegate(const char * aKey, const nsIID & aIID, void **aResult NS_OUTPARAM) { return _to GetDelegate(aKey, aIID, aResult); } \
77 : NS_SCRIPTABLE NS_IMETHOD ReleaseDelegate(const char * aKey) { return _to ReleaseDelegate(aKey); }
78 :
79 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
80 : #define NS_FORWARD_SAFE_NSIRDFRESOURCE(_to) \
81 : NS_SCRIPTABLE NS_IMETHOD GetValue(char * *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
82 : NS_SCRIPTABLE NS_IMETHOD GetValueUTF8(nsACString & aValueUTF8) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueUTF8(aValueUTF8); } \
83 : NS_IMETHOD GetValueConst(const char * *aConstValue NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueConst(aConstValue); } \
84 : NS_SCRIPTABLE NS_IMETHOD Init(const char * uri) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(uri); } \
85 : NS_SCRIPTABLE NS_IMETHOD EqualsString(const char * aURI, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EqualsString(aURI, _retval); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetDelegate(const char * aKey, const nsIID & aIID, void **aResult NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDelegate(aKey, aIID, aResult); } \
87 : NS_SCRIPTABLE NS_IMETHOD ReleaseDelegate(const char * aKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReleaseDelegate(aKey); }
88 :
89 : #if 0
90 : /* Use the code below as a template for the implementation class for this interface. */
91 :
92 : /* Header file */
93 : class nsRDFResource : public nsIRDFResource
94 : {
95 : public:
96 : NS_DECL_ISUPPORTS
97 : NS_DECL_NSIRDFRESOURCE
98 :
99 : nsRDFResource();
100 :
101 : private:
102 : ~nsRDFResource();
103 :
104 : protected:
105 : /* additional members */
106 : };
107 :
108 : /* Implementation file */
109 : NS_IMPL_ISUPPORTS1(nsRDFResource, nsIRDFResource)
110 :
111 : nsRDFResource::nsRDFResource()
112 : {
113 : /* member initializers and constructor code */
114 : }
115 :
116 : nsRDFResource::~nsRDFResource()
117 : {
118 : /* destructor code */
119 : }
120 :
121 : /* readonly attribute string Value; */
122 : NS_IMETHODIMP nsRDFResource::GetValue(char * *aValue)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* readonly attribute AUTF8String ValueUTF8; */
128 : NS_IMETHODIMP nsRDFResource::GetValueUTF8(nsACString & aValueUTF8)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* [noscript] void GetValueConst ([shared] out string aConstValue); */
134 : NS_IMETHODIMP nsRDFResource::GetValueConst(const char * *aConstValue NS_OUTPARAM)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* void Init (in string uri); */
140 : NS_IMETHODIMP nsRDFResource::Init(const char * uri)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* boolean EqualsString (in string aURI); */
146 : NS_IMETHODIMP nsRDFResource::EqualsString(const char * aURI, bool *_retval NS_OUTPARAM)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* void GetDelegate (in string aKey, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult aResult); */
152 : NS_IMETHODIMP nsRDFResource::GetDelegate(const char * aKey, const nsIID & aIID, void **aResult NS_OUTPARAM)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* void ReleaseDelegate (in string aKey); */
158 : NS_IMETHODIMP nsRDFResource::ReleaseDelegate(const char * aKey)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* End of implementation class template. */
164 : #endif
165 :
166 :
167 : #endif /* __gen_nsIRDFResource_h__ */
|