Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRDFRemoteDataSource.idl
3 : */
4 :
5 : #ifndef __gen_nsIRDFRemoteDataSource_h__
6 : #define __gen_nsIRDFRemoteDataSource_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: nsIRDFRemoteDataSource */
19 : #define NS_IRDFREMOTEDATASOURCE_IID_STR "1d297320-27f7-11d3-be01-000064657374"
20 :
21 : #define NS_IRDFREMOTEDATASOURCE_IID \
22 : {0x1d297320, 0x27f7, 0x11d3, \
23 : { 0xbe, 0x01, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
24 :
25 0 : class NS_NO_VTABLE nsIRDFRemoteDataSource : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFREMOTEDATASOURCE_IID)
29 :
30 : /* readonly attribute boolean loaded; */
31 : NS_IMETHOD GetLoaded(bool *aLoaded) = 0;
32 :
33 : /* void Init (in string aURI); */
34 : NS_IMETHOD Init(const char * aURI) = 0;
35 :
36 : /* void Refresh (in boolean aBlocking); */
37 : NS_IMETHOD Refresh(bool aBlocking) = 0;
38 :
39 : /* void Flush (); */
40 : NS_IMETHOD Flush(void) = 0;
41 :
42 : /* void FlushTo (in string aURI); */
43 : NS_IMETHOD FlushTo(const char * aURI) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFRemoteDataSource, NS_IRDFREMOTEDATASOURCE_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIRDFREMOTEDATASOURCE \
51 : NS_IMETHOD GetLoaded(bool *aLoaded) override; \
52 : NS_IMETHOD Init(const char * aURI) override; \
53 : NS_IMETHOD Refresh(bool aBlocking) override; \
54 : NS_IMETHOD Flush(void) override; \
55 : NS_IMETHOD FlushTo(const char * aURI) 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_NSIRDFREMOTEDATASOURCE \
60 : nsresult GetLoaded(bool *aLoaded); \
61 : nsresult Init(const char * aURI); \
62 : nsresult Refresh(bool aBlocking); \
63 : nsresult Flush(void); \
64 : nsresult FlushTo(const char * aURI);
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
67 : #define NS_FORWARD_NSIRDFREMOTEDATASOURCE(_to) \
68 : NS_IMETHOD GetLoaded(bool *aLoaded) override { return _to GetLoaded(aLoaded); } \
69 : NS_IMETHOD Init(const char * aURI) override { return _to Init(aURI); } \
70 : NS_IMETHOD Refresh(bool aBlocking) override { return _to Refresh(aBlocking); } \
71 : NS_IMETHOD Flush(void) override { return _to Flush(); } \
72 : NS_IMETHOD FlushTo(const char * aURI) override { return _to FlushTo(aURI); }
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_NSIRDFREMOTEDATASOURCE(_to) \
76 : NS_IMETHOD GetLoaded(bool *aLoaded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoaded(aLoaded); } \
77 : NS_IMETHOD Init(const char * aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aURI); } \
78 : NS_IMETHOD Refresh(bool aBlocking) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Refresh(aBlocking); } \
79 : NS_IMETHOD Flush(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Flush(); } \
80 : NS_IMETHOD FlushTo(const char * aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushTo(aURI); }
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 nsRDFRemoteDataSource : public nsIRDFRemoteDataSource
87 : {
88 : public:
89 : NS_DECL_ISUPPORTS
90 : NS_DECL_NSIRDFREMOTEDATASOURCE
91 :
92 : nsRDFRemoteDataSource();
93 :
94 : private:
95 : ~nsRDFRemoteDataSource();
96 :
97 : protected:
98 : /* additional members */
99 : };
100 :
101 : /* Implementation file */
102 : NS_IMPL_ISUPPORTS(nsRDFRemoteDataSource, nsIRDFRemoteDataSource)
103 :
104 : nsRDFRemoteDataSource::nsRDFRemoteDataSource()
105 : {
106 : /* member initializers and constructor code */
107 : }
108 :
109 : nsRDFRemoteDataSource::~nsRDFRemoteDataSource()
110 : {
111 : /* destructor code */
112 : }
113 :
114 : /* readonly attribute boolean loaded; */
115 : NS_IMETHODIMP nsRDFRemoteDataSource::GetLoaded(bool *aLoaded)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* void Init (in string aURI); */
121 : NS_IMETHODIMP nsRDFRemoteDataSource::Init(const char * aURI)
122 : {
123 : return NS_ERROR_NOT_IMPLEMENTED;
124 : }
125 :
126 : /* void Refresh (in boolean aBlocking); */
127 : NS_IMETHODIMP nsRDFRemoteDataSource::Refresh(bool aBlocking)
128 : {
129 : return NS_ERROR_NOT_IMPLEMENTED;
130 : }
131 :
132 : /* void Flush (); */
133 : NS_IMETHODIMP nsRDFRemoteDataSource::Flush()
134 : {
135 : return NS_ERROR_NOT_IMPLEMENTED;
136 : }
137 :
138 : /* void FlushTo (in string aURI); */
139 : NS_IMETHODIMP nsRDFRemoteDataSource::FlushTo(const char * aURI)
140 : {
141 : return NS_ERROR_NOT_IMPLEMENTED;
142 : }
143 :
144 : /* End of implementation class template. */
145 : #endif
146 :
147 :
148 : #endif /* __gen_nsIRDFRemoteDataSource_h__ */
|