1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/rdf/base/idl/rdfIDataSource.idl
3 : */
4 :
5 : #ifndef __gen_rdfIDataSource_h__
6 : #define __gen_rdfIDataSource_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 : class rdfITripleVisitor; /* forward declaration */
18 :
19 :
20 : /* starting interface: rdfIDataSource */
21 : #define RDFIDATASOURCE_IID_STR "ebce86bd-1568-4a34-a808-9ccf9cde8087"
22 :
23 : #define RDFIDATASOURCE_IID \
24 : {0xebce86bd, 0x1568, 0x4a34, \
25 : { 0xa8, 0x08, 0x9c, 0xcf, 0x9c, 0xde, 0x80, 0x87 }}
26 :
27 2082 : class NS_NO_VTABLE NS_SCRIPTABLE rdfIDataSource : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(RDFIDATASOURCE_IID)
31 :
32 : /* void visitAllSubjects (in rdfITripleVisitor aVisitor); */
33 : NS_SCRIPTABLE NS_IMETHOD VisitAllSubjects(rdfITripleVisitor *aVisitor) = 0;
34 :
35 : /* void visitAllTriples (in rdfITripleVisitor aVisitor); */
36 : NS_SCRIPTABLE NS_IMETHOD VisitAllTriples(rdfITripleVisitor *aVisitor) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(rdfIDataSource, RDFIDATASOURCE_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_RDFIDATASOURCE \
44 : NS_SCRIPTABLE NS_IMETHOD VisitAllSubjects(rdfITripleVisitor *aVisitor); \
45 : NS_SCRIPTABLE NS_IMETHOD VisitAllTriples(rdfITripleVisitor *aVisitor);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_RDFIDATASOURCE(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD VisitAllSubjects(rdfITripleVisitor *aVisitor) { return _to VisitAllSubjects(aVisitor); } \
50 : NS_SCRIPTABLE NS_IMETHOD VisitAllTriples(rdfITripleVisitor *aVisitor) { return _to VisitAllTriples(aVisitor); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_RDFIDATASOURCE(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD VisitAllSubjects(rdfITripleVisitor *aVisitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitAllSubjects(aVisitor); } \
55 : NS_SCRIPTABLE NS_IMETHOD VisitAllTriples(rdfITripleVisitor *aVisitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitAllTriples(aVisitor); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class _MYCLASS_ : public rdfIDataSource
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_RDFIDATASOURCE
66 :
67 : _MYCLASS_();
68 :
69 : private:
70 : ~_MYCLASS_();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(_MYCLASS_, rdfIDataSource)
78 :
79 : _MYCLASS_::_MYCLASS_()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : _MYCLASS_::~_MYCLASS_()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* void visitAllSubjects (in rdfITripleVisitor aVisitor); */
90 : NS_IMETHODIMP _MYCLASS_::VisitAllSubjects(rdfITripleVisitor *aVisitor)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* void visitAllTriples (in rdfITripleVisitor aVisitor); */
96 : NS_IMETHODIMP _MYCLASS_::VisitAllTriples(rdfITripleVisitor *aVisitor)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_rdfIDataSource_h__ */
|