1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/rdf/base/idl/nsIRDFXMLParser.idl
3 : */
4 :
5 : #ifndef __gen_nsIRDFXMLParser_h__
6 : #define __gen_nsIRDFXMLParser_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIRDFDataSource_h__
14 : #include "nsIRDFDataSource.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIStreamListener_h__
18 : #include "nsIStreamListener.h"
19 : #endif
20 :
21 : #ifndef __gen_nsIURI_h__
22 : #include "nsIURI.h"
23 : #endif
24 :
25 : /* For IDL files that don't want to include root IDL files. */
26 : #ifndef NS_NO_VTABLE
27 : #define NS_NO_VTABLE
28 : #endif
29 :
30 : /* starting interface: nsIRDFXMLParser */
31 : #define NS_IRDFXMLPARSER_IID_STR "1831dd2e-1dd2-11b2-bdb3-86b7b50b70b5"
32 :
33 : #define NS_IRDFXMLPARSER_IID \
34 : {0x1831dd2e, 0x1dd2, 0x11b2, \
35 : { 0xbd, 0xb3, 0x86, 0xb7, 0xb5, 0x0b, 0x70, 0xb5 }}
36 :
37 2072 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRDFXMLParser : public nsISupports {
38 : public:
39 :
40 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLPARSER_IID)
41 :
42 : /* nsIStreamListener parseAsync (in nsIRDFDataSource aSink, in nsIURI aBaseURI); */
43 : NS_SCRIPTABLE NS_IMETHOD ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener * *_retval NS_OUTPARAM) = 0;
44 :
45 : /* void parseString (in nsIRDFDataSource aSink, in nsIURI aBaseURI, in AUTF8String aSource); */
46 : NS_SCRIPTABLE NS_IMETHOD ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLParser, NS_IRDFXMLPARSER_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSIRDFXMLPARSER \
54 : NS_SCRIPTABLE NS_IMETHOD ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener * *_retval NS_OUTPARAM); \
55 : NS_SCRIPTABLE NS_IMETHOD ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIRDFXMLPARSER(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener * *_retval NS_OUTPARAM) { return _to ParseAsync(aSink, aBaseURI, _retval); } \
60 : NS_SCRIPTABLE NS_IMETHOD ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource) { return _to ParseString(aSink, aBaseURI, aSource); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIRDFXMLPARSER(_to) \
64 : NS_SCRIPTABLE NS_IMETHOD ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseAsync(aSink, aBaseURI, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseString(aSink, aBaseURI, aSource); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsRDFXMLParser : public nsIRDFXMLParser
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIRDFXMLPARSER
76 :
77 : nsRDFXMLParser();
78 :
79 : private:
80 : ~nsRDFXMLParser();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsRDFXMLParser, nsIRDFXMLParser)
88 :
89 : nsRDFXMLParser::nsRDFXMLParser()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsRDFXMLParser::~nsRDFXMLParser()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* nsIStreamListener parseAsync (in nsIRDFDataSource aSink, in nsIURI aBaseURI); */
100 : NS_IMETHODIMP nsRDFXMLParser::ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener * *_retval NS_OUTPARAM)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* void parseString (in nsIRDFDataSource aSink, in nsIURI aBaseURI, in AUTF8String aSource); */
106 : NS_IMETHODIMP nsRDFXMLParser::ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* End of implementation class template. */
112 : #endif
113 :
114 :
115 : #endif /* __gen_nsIRDFXMLParser_h__ */
|