1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-aurora-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 :
22 : /* starting interface: nsIUrlClassifierPrefixSet */
23 : #define NS_IURLCLASSIFIERPREFIXSET_IID_STR "b21b0fa1-20d2-422a-b2cc-b289c9325811"
24 :
25 : #define NS_IURLCLASSIFIERPREFIXSET_IID \
26 : {0xb21b0fa1, 0x20d2, 0x422a, \
27 : { 0xb2, 0xcc, 0xb2, 0x89, 0xc9, 0x32, 0x58, 0x11 }}
28 :
29 51 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUrlClassifierPrefixSet : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERPREFIXSET_IID)
33 :
34 : /* void init (in ACString aName); */
35 : NS_SCRIPTABLE NS_IMETHOD Init(const nsACString & aName) = 0;
36 :
37 : /* void setPrefixes ([array, size_is (aLength), const] in unsigned long aPrefixes, in unsigned long aLength); */
38 : NS_SCRIPTABLE NS_IMETHOD SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength) = 0;
39 :
40 : /* void getPrefixes (out unsigned long aCount, [array, size_is (aCount), retval] out unsigned long aPrefixes); */
41 : NS_SCRIPTABLE NS_IMETHOD GetPrefixes(PRUint32 *aCount NS_OUTPARAM, PRUint32 **aPrefixes NS_OUTPARAM) = 0;
42 :
43 : /* boolean probe (in unsigned long aPrefix, inout boolean aReady); */
44 : NS_SCRIPTABLE NS_IMETHOD Probe(PRUint32 aPrefix, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM) = 0;
45 :
46 : /* boolean isEmpty (); */
47 : NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) = 0;
48 :
49 : /* void loadFromFile (in nsIFile aFile); */
50 : NS_SCRIPTABLE NS_IMETHOD LoadFromFile(nsIFile *aFile) = 0;
51 :
52 : /* void storeToFile (in nsIFile aFile); */
53 : NS_SCRIPTABLE NS_IMETHOD StoreToFile(nsIFile *aFile) = 0;
54 :
55 : };
56 :
57 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierPrefixSet, NS_IURLCLASSIFIERPREFIXSET_IID)
58 :
59 : /* Use this macro when declaring classes that implement this interface. */
60 : #define NS_DECL_NSIURLCLASSIFIERPREFIXSET \
61 : NS_SCRIPTABLE NS_IMETHOD Init(const nsACString & aName); \
62 : NS_SCRIPTABLE NS_IMETHOD SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength); \
63 : NS_SCRIPTABLE NS_IMETHOD GetPrefixes(PRUint32 *aCount NS_OUTPARAM, PRUint32 **aPrefixes NS_OUTPARAM); \
64 : NS_SCRIPTABLE NS_IMETHOD Probe(PRUint32 aPrefix, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM); \
65 : NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM); \
66 : NS_SCRIPTABLE NS_IMETHOD LoadFromFile(nsIFile *aFile); \
67 : NS_SCRIPTABLE NS_IMETHOD StoreToFile(nsIFile *aFile);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIURLCLASSIFIERPREFIXSET(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD Init(const nsACString & aName) { return _to Init(aName); } \
72 : NS_SCRIPTABLE NS_IMETHOD SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength) { return _to SetPrefixes(aPrefixes, aLength); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetPrefixes(PRUint32 *aCount NS_OUTPARAM, PRUint32 **aPrefixes NS_OUTPARAM) { return _to GetPrefixes(aCount, aPrefixes); } \
74 : NS_SCRIPTABLE NS_IMETHOD Probe(PRUint32 aPrefix, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM) { return _to Probe(aPrefix, aReady, _retval); } \
75 : NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) { return _to IsEmpty(_retval); } \
76 : NS_SCRIPTABLE NS_IMETHOD LoadFromFile(nsIFile *aFile) { return _to LoadFromFile(aFile); } \
77 : NS_SCRIPTABLE NS_IMETHOD StoreToFile(nsIFile *aFile) { return _to StoreToFile(aFile); }
78 :
79 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
80 : #define NS_FORWARD_SAFE_NSIURLCLASSIFIERPREFIXSET(_to) \
81 : NS_SCRIPTABLE NS_IMETHOD Init(const nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aName); } \
82 : NS_SCRIPTABLE NS_IMETHOD SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrefixes(aPrefixes, aLength); } \
83 : NS_SCRIPTABLE NS_IMETHOD GetPrefixes(PRUint32 *aCount NS_OUTPARAM, PRUint32 **aPrefixes NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefixes(aCount, aPrefixes); } \
84 : NS_SCRIPTABLE NS_IMETHOD Probe(PRUint32 aPrefix, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Probe(aPrefix, aReady, _retval); } \
85 : NS_SCRIPTABLE NS_IMETHOD IsEmpty(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEmpty(_retval); } \
86 : NS_SCRIPTABLE NS_IMETHOD LoadFromFile(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadFromFile(aFile); } \
87 : NS_SCRIPTABLE NS_IMETHOD StoreToFile(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->StoreToFile(aFile); }
88 :
89 : #if 0
90 : /* Use the code below as a template for the implementation class for this interface. */
91 :
92 : /* Header file */
93 : class nsUrlClassifierPrefixSet : public nsIUrlClassifierPrefixSet
94 : {
95 : public:
96 : NS_DECL_ISUPPORTS
97 : NS_DECL_NSIURLCLASSIFIERPREFIXSET
98 :
99 : nsUrlClassifierPrefixSet();
100 :
101 : private:
102 : ~nsUrlClassifierPrefixSet();
103 :
104 : protected:
105 : /* additional members */
106 : };
107 :
108 : /* Implementation file */
109 : NS_IMPL_ISUPPORTS1(nsUrlClassifierPrefixSet, nsIUrlClassifierPrefixSet)
110 :
111 : nsUrlClassifierPrefixSet::nsUrlClassifierPrefixSet()
112 : {
113 : /* member initializers and constructor code */
114 : }
115 :
116 : nsUrlClassifierPrefixSet::~nsUrlClassifierPrefixSet()
117 : {
118 : /* destructor code */
119 : }
120 :
121 : /* void init (in ACString aName); */
122 : NS_IMETHODIMP nsUrlClassifierPrefixSet::Init(const nsACString & aName)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* void setPrefixes ([array, size_is (aLength), const] in unsigned long aPrefixes, in unsigned long aLength); */
128 : NS_IMETHODIMP nsUrlClassifierPrefixSet::SetPrefixes(const PRUint32 *aPrefixes, PRUint32 aLength)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* void getPrefixes (out unsigned long aCount, [array, size_is (aCount), retval] out unsigned long aPrefixes); */
134 : NS_IMETHODIMP nsUrlClassifierPrefixSet::GetPrefixes(PRUint32 *aCount NS_OUTPARAM, PRUint32 **aPrefixes NS_OUTPARAM)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* boolean probe (in unsigned long aPrefix, inout boolean aReady); */
140 : NS_IMETHODIMP nsUrlClassifierPrefixSet::Probe(PRUint32 aPrefix, bool *aReady NS_INOUTPARAM, bool *_retval NS_OUTPARAM)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* boolean isEmpty (); */
146 : NS_IMETHODIMP nsUrlClassifierPrefixSet::IsEmpty(bool *_retval NS_OUTPARAM)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* void loadFromFile (in nsIFile aFile); */
152 : NS_IMETHODIMP nsUrlClassifierPrefixSet::LoadFromFile(nsIFile *aFile)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* void storeToFile (in nsIFile aFile); */
158 : NS_IMETHODIMP nsUrlClassifierPrefixSet::StoreToFile(nsIFile *aFile)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* End of implementation class template. */
164 : #endif
165 :
166 :
167 : #endif /* __gen_nsIUrlClassifierPrefixSet_h__ */
|