1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/url-classifier/nsIUrlClassifierPrefixSet.idl
3 : */
4 :
5 : #ifndef __gen_nsIUrlClassifierPrefixSet_h__
6 : #define __gen_nsIUrlClassifierPrefixSet_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIFile_h__
14 : #include "nsIFile.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 : class nsIArray; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIUrlClassifierPrefixSet */
25 : #define NS_IURLCLASSIFIERPREFIXSET_IID_STR "519c8519-0f30-426b-bb7b-c400ba0318e2"
26 :
27 : #define NS_IURLCLASSIFIERPREFIXSET_IID \
28 : {0x519c8519, 0x0f30, 0x426b, \
29 : { 0xbb, 0x7b, 0xc4, 0x00, 0xba, 0x03, 0x18, 0xe2 }}
30 :
31 14 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUrlClassifierPrefixSet : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERPREFIXSET_IID)
35 :
36 : /* void setPrefixes ([array, size_is (aLength), const] in unsigned long aPrefixes, in unsigned long aLength); */
37 : NS_SCRIPTABLE NS_IMETHOD SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength) = 0;
38 :
39 : /* boolean probe (in unsigned long aPrefix, in unsigned long aKey, inout boolean aReady); */
40 : NS_SCRIPTABLE NS_IMETHOD Probe(PRUint32 aPrefix, PRUint32 aKey, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM) = 0;
41 :
42 : /* PRUint32 getKey (); */
43 : NS_SCRIPTABLE NS_IMETHOD GetKey(PRUint32 *_retval NS_OUTPARAM) = 0;
44 :
45 : /* boolean isEmpty (); */
46 : NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) = 0;
47 :
48 : /* void loadFromFile (in nsIFile aFile); */
49 : NS_SCRIPTABLE NS_IMETHOD LoadFromFile(nsIFile *aFile) = 0;
50 :
51 : /* void storeToFile (in nsIFile aFile); */
52 : NS_SCRIPTABLE NS_IMETHOD StoreToFile(nsIFile *aFile) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierPrefixSet, NS_IURLCLASSIFIERPREFIXSET_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIURLCLASSIFIERPREFIXSET \
60 : NS_SCRIPTABLE NS_IMETHOD SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength); \
61 : NS_SCRIPTABLE NS_IMETHOD Probe(PRUint32 aPrefix, PRUint32 aKey, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM); \
62 : NS_SCRIPTABLE NS_IMETHOD GetKey(PRUint32 *_retval NS_OUTPARAM); \
63 : NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM); \
64 : NS_SCRIPTABLE NS_IMETHOD LoadFromFile(nsIFile *aFile); \
65 : NS_SCRIPTABLE NS_IMETHOD StoreToFile(nsIFile *aFile);
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
68 : #define NS_FORWARD_NSIURLCLASSIFIERPREFIXSET(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength) { return _to SetPrefixes(aPrefixes, aLength); } \
70 : NS_SCRIPTABLE NS_IMETHOD Probe(PRUint32 aPrefix, PRUint32 aKey, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM) { return _to Probe(aPrefix, aKey, aReady, _retval); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetKey(PRUint32 *_retval NS_OUTPARAM) { return _to GetKey(_retval); } \
72 : NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) { return _to IsEmpty(_retval); } \
73 : NS_SCRIPTABLE NS_IMETHOD LoadFromFile(nsIFile *aFile) { return _to LoadFromFile(aFile); } \
74 : NS_SCRIPTABLE NS_IMETHOD StoreToFile(nsIFile *aFile) { return _to StoreToFile(aFile); }
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
77 : #define NS_FORWARD_SAFE_NSIURLCLASSIFIERPREFIXSET(_to) \
78 : NS_SCRIPTABLE NS_IMETHOD SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrefixes(aPrefixes, aLength); } \
79 : NS_SCRIPTABLE NS_IMETHOD Probe(PRUint32 aPrefix, PRUint32 aKey, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Probe(aPrefix, aKey, aReady, _retval); } \
80 : NS_SCRIPTABLE NS_IMETHOD GetKey(PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(_retval); } \
81 : NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEmpty(_retval); } \
82 : NS_SCRIPTABLE NS_IMETHOD LoadFromFile(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadFromFile(aFile); } \
83 : NS_SCRIPTABLE NS_IMETHOD StoreToFile(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->StoreToFile(aFile); }
84 :
85 : #if 0
86 : /* Use the code below as a template for the implementation class for this interface. */
87 :
88 : /* Header file */
89 : class nsUrlClassifierPrefixSet : public nsIUrlClassifierPrefixSet
90 : {
91 : public:
92 : NS_DECL_ISUPPORTS
93 : NS_DECL_NSIURLCLASSIFIERPREFIXSET
94 :
95 : nsUrlClassifierPrefixSet();
96 :
97 : private:
98 : ~nsUrlClassifierPrefixSet();
99 :
100 : protected:
101 : /* additional members */
102 : };
103 :
104 : /* Implementation file */
105 : NS_IMPL_ISUPPORTS1(nsUrlClassifierPrefixSet, nsIUrlClassifierPrefixSet)
106 :
107 : nsUrlClassifierPrefixSet::nsUrlClassifierPrefixSet()
108 : {
109 : /* member initializers and constructor code */
110 : }
111 :
112 : nsUrlClassifierPrefixSet::~nsUrlClassifierPrefixSet()
113 : {
114 : /* destructor code */
115 : }
116 :
117 : /* void setPrefixes ([array, size_is (aLength), const] in unsigned long aPrefixes, in unsigned long aLength); */
118 : NS_IMETHODIMP nsUrlClassifierPrefixSet::SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* boolean probe (in unsigned long aPrefix, in unsigned long aKey, inout boolean aReady); */
124 : NS_IMETHODIMP nsUrlClassifierPrefixSet::Probe(PRUint32 aPrefix, PRUint32 aKey, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* PRUint32 getKey (); */
130 : NS_IMETHODIMP nsUrlClassifierPrefixSet::GetKey(PRUint32 *_retval NS_OUTPARAM)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* boolean isEmpty (); */
136 : NS_IMETHODIMP nsUrlClassifierPrefixSet::IsEmpty(bool *_retval NS_OUTPARAM)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void loadFromFile (in nsIFile aFile); */
142 : NS_IMETHODIMP nsUrlClassifierPrefixSet::LoadFromFile(nsIFile *aFile)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* void storeToFile (in nsIFile aFile); */
148 : NS_IMETHODIMP nsUrlClassifierPrefixSet::StoreToFile(nsIFile *aFile)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* End of implementation class template. */
154 : #endif
155 :
156 :
157 : #endif /* __gen_nsIUrlClassifierPrefixSet_h__ */
|