Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRDFCompositeDataSource.idl
3 : */
4 :
5 : #ifndef __gen_nsIRDFCompositeDataSource_h__
6 : #define __gen_nsIRDFCompositeDataSource_h__
7 :
8 :
9 : #ifndef __gen_nsIRDFDataSource_h__
10 : #include "nsIRDFDataSource.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: nsIRDFCompositeDataSource */
21 : #define NS_IRDFCOMPOSITEDATASOURCE_IID_STR "96343820-307c-11d2-bc15-00805f912fe7"
22 :
23 : #define NS_IRDFCOMPOSITEDATASOURCE_IID \
24 : {0x96343820, 0x307c, 0x11d2, \
25 : { 0xbc, 0x15, 0x00, 0x80, 0x5f, 0x91, 0x2f, 0xe7 }}
26 :
27 0 : class NS_NO_VTABLE nsIRDFCompositeDataSource : public nsIRDFDataSource {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFCOMPOSITEDATASOURCE_IID)
31 :
32 : /* attribute boolean allowNegativeAssertions; */
33 : NS_IMETHOD GetAllowNegativeAssertions(bool *aAllowNegativeAssertions) = 0;
34 : NS_IMETHOD SetAllowNegativeAssertions(bool aAllowNegativeAssertions) = 0;
35 :
36 : /* attribute boolean coalesceDuplicateArcs; */
37 : NS_IMETHOD GetCoalesceDuplicateArcs(bool *aCoalesceDuplicateArcs) = 0;
38 : NS_IMETHOD SetCoalesceDuplicateArcs(bool aCoalesceDuplicateArcs) = 0;
39 :
40 : /* void AddDataSource (in nsIRDFDataSource aDataSource); */
41 : NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource) = 0;
42 :
43 : /* void RemoveDataSource (in nsIRDFDataSource aDataSource); */
44 : NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource) = 0;
45 :
46 : /* nsISimpleEnumerator GetDataSources (); */
47 : NS_IMETHOD GetDataSources(nsISimpleEnumerator * *_retval) = 0;
48 :
49 : };
50 :
51 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFCompositeDataSource, NS_IRDFCOMPOSITEDATASOURCE_IID)
52 :
53 : /* Use this macro when declaring classes that implement this interface. */
54 : #define NS_DECL_NSIRDFCOMPOSITEDATASOURCE \
55 : NS_IMETHOD GetAllowNegativeAssertions(bool *aAllowNegativeAssertions) override; \
56 : NS_IMETHOD SetAllowNegativeAssertions(bool aAllowNegativeAssertions) override; \
57 : NS_IMETHOD GetCoalesceDuplicateArcs(bool *aCoalesceDuplicateArcs) override; \
58 : NS_IMETHOD SetCoalesceDuplicateArcs(bool aCoalesceDuplicateArcs) override; \
59 : NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource) override; \
60 : NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource) override; \
61 : NS_IMETHOD GetDataSources(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_NSIRDFCOMPOSITEDATASOURCE \
66 : nsresult GetAllowNegativeAssertions(bool *aAllowNegativeAssertions); \
67 : nsresult SetAllowNegativeAssertions(bool aAllowNegativeAssertions); \
68 : nsresult GetCoalesceDuplicateArcs(bool *aCoalesceDuplicateArcs); \
69 : nsresult SetCoalesceDuplicateArcs(bool aCoalesceDuplicateArcs); \
70 : nsresult AddDataSource(nsIRDFDataSource *aDataSource); \
71 : nsresult RemoveDataSource(nsIRDFDataSource *aDataSource); \
72 : nsresult GetDataSources(nsISimpleEnumerator * *_retval);
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
75 : #define NS_FORWARD_NSIRDFCOMPOSITEDATASOURCE(_to) \
76 : NS_IMETHOD GetAllowNegativeAssertions(bool *aAllowNegativeAssertions) override { return _to GetAllowNegativeAssertions(aAllowNegativeAssertions); } \
77 : NS_IMETHOD SetAllowNegativeAssertions(bool aAllowNegativeAssertions) override { return _to SetAllowNegativeAssertions(aAllowNegativeAssertions); } \
78 : NS_IMETHOD GetCoalesceDuplicateArcs(bool *aCoalesceDuplicateArcs) override { return _to GetCoalesceDuplicateArcs(aCoalesceDuplicateArcs); } \
79 : NS_IMETHOD SetCoalesceDuplicateArcs(bool aCoalesceDuplicateArcs) override { return _to SetCoalesceDuplicateArcs(aCoalesceDuplicateArcs); } \
80 : NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource) override { return _to AddDataSource(aDataSource); } \
81 : NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource) override { return _to RemoveDataSource(aDataSource); } \
82 : NS_IMETHOD GetDataSources(nsISimpleEnumerator * *_retval) override { return _to GetDataSources(_retval); }
83 :
84 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
85 : #define NS_FORWARD_SAFE_NSIRDFCOMPOSITEDATASOURCE(_to) \
86 : NS_IMETHOD GetAllowNegativeAssertions(bool *aAllowNegativeAssertions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowNegativeAssertions(aAllowNegativeAssertions); } \
87 : NS_IMETHOD SetAllowNegativeAssertions(bool aAllowNegativeAssertions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowNegativeAssertions(aAllowNegativeAssertions); } \
88 : NS_IMETHOD GetCoalesceDuplicateArcs(bool *aCoalesceDuplicateArcs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCoalesceDuplicateArcs(aCoalesceDuplicateArcs); } \
89 : NS_IMETHOD SetCoalesceDuplicateArcs(bool aCoalesceDuplicateArcs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCoalesceDuplicateArcs(aCoalesceDuplicateArcs); } \
90 : NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDataSource(aDataSource); } \
91 : NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDataSource(aDataSource); } \
92 : NS_IMETHOD GetDataSources(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataSources(_retval); }
93 :
94 : #if 0
95 : /* Use the code below as a template for the implementation class for this interface. */
96 :
97 : /* Header file */
98 : class nsRDFCompositeDataSource : public nsIRDFCompositeDataSource
99 : {
100 : public:
101 : NS_DECL_ISUPPORTS
102 : NS_DECL_NSIRDFCOMPOSITEDATASOURCE
103 :
104 : nsRDFCompositeDataSource();
105 :
106 : private:
107 : ~nsRDFCompositeDataSource();
108 :
109 : protected:
110 : /* additional members */
111 : };
112 :
113 : /* Implementation file */
114 : NS_IMPL_ISUPPORTS(nsRDFCompositeDataSource, nsIRDFCompositeDataSource)
115 :
116 : nsRDFCompositeDataSource::nsRDFCompositeDataSource()
117 : {
118 : /* member initializers and constructor code */
119 : }
120 :
121 : nsRDFCompositeDataSource::~nsRDFCompositeDataSource()
122 : {
123 : /* destructor code */
124 : }
125 :
126 : /* attribute boolean allowNegativeAssertions; */
127 : NS_IMETHODIMP nsRDFCompositeDataSource::GetAllowNegativeAssertions(bool *aAllowNegativeAssertions)
128 : {
129 : return NS_ERROR_NOT_IMPLEMENTED;
130 : }
131 : NS_IMETHODIMP nsRDFCompositeDataSource::SetAllowNegativeAssertions(bool aAllowNegativeAssertions)
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* attribute boolean coalesceDuplicateArcs; */
137 : NS_IMETHODIMP nsRDFCompositeDataSource::GetCoalesceDuplicateArcs(bool *aCoalesceDuplicateArcs)
138 : {
139 : return NS_ERROR_NOT_IMPLEMENTED;
140 : }
141 : NS_IMETHODIMP nsRDFCompositeDataSource::SetCoalesceDuplicateArcs(bool aCoalesceDuplicateArcs)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* void AddDataSource (in nsIRDFDataSource aDataSource); */
147 : NS_IMETHODIMP nsRDFCompositeDataSource::AddDataSource(nsIRDFDataSource *aDataSource)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 :
152 : /* void RemoveDataSource (in nsIRDFDataSource aDataSource); */
153 : NS_IMETHODIMP nsRDFCompositeDataSource::RemoveDataSource(nsIRDFDataSource *aDataSource)
154 : {
155 : return NS_ERROR_NOT_IMPLEMENTED;
156 : }
157 :
158 : /* nsISimpleEnumerator GetDataSources (); */
159 : NS_IMETHODIMP nsRDFCompositeDataSource::GetDataSources(nsISimpleEnumerator * *_retval)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 :
164 : /* End of implementation class template. */
165 : #endif
166 :
167 : extern nsresult
168 : NS_NewRDFCompositeDataSource(nsIRDFCompositeDataSource** result);
169 :
170 : #endif /* __gen_nsIRDFCompositeDataSource_h__ */
|