Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDirIndex.idl
3 : */
4 :
5 : #ifndef __gen_nsIDirIndex_h__
6 : #define __gen_nsIDirIndex_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: nsIDirIndex */
19 : #define NS_IDIRINDEX_IID_STR "23bbabd0-1dd2-11b2-86b7-aad68ae7d7e0"
20 :
21 : #define NS_IDIRINDEX_IID \
22 : {0x23bbabd0, 0x1dd2, 0x11b2, \
23 : { 0x86, 0xb7, 0xaa, 0xd6, 0x8a, 0xe7, 0xd7, 0xe0 }}
24 :
25 0 : class NS_NO_VTABLE nsIDirIndex : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRINDEX_IID)
29 :
30 : enum {
31 : TYPE_UNKNOWN = 0U,
32 : TYPE_DIRECTORY = 1U,
33 : TYPE_FILE = 2U,
34 : TYPE_SYMLINK = 3U
35 : };
36 :
37 : /* attribute unsigned long type; */
38 : NS_IMETHOD GetType(uint32_t *aType) = 0;
39 : NS_IMETHOD SetType(uint32_t aType) = 0;
40 :
41 : /* attribute string contentType; */
42 : NS_IMETHOD GetContentType(char * *aContentType) = 0;
43 : NS_IMETHOD SetContentType(const char * aContentType) = 0;
44 :
45 : /* attribute string location; */
46 : NS_IMETHOD GetLocation(char * *aLocation) = 0;
47 : NS_IMETHOD SetLocation(const char * aLocation) = 0;
48 :
49 : /* attribute wstring description; */
50 : NS_IMETHOD GetDescription(char16_t * *aDescription) = 0;
51 : NS_IMETHOD SetDescription(const char16_t * aDescription) = 0;
52 :
53 : /* attribute long long size; */
54 : NS_IMETHOD GetSize(int64_t *aSize) = 0;
55 : NS_IMETHOD SetSize(int64_t aSize) = 0;
56 :
57 : /* attribute PRTime lastModified; */
58 : NS_IMETHOD GetLastModified(PRTime *aLastModified) = 0;
59 : NS_IMETHOD SetLastModified(PRTime aLastModified) = 0;
60 :
61 : };
62 :
63 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirIndex, NS_IDIRINDEX_IID)
64 :
65 : /* Use this macro when declaring classes that implement this interface. */
66 : #define NS_DECL_NSIDIRINDEX \
67 : NS_IMETHOD GetType(uint32_t *aType) override; \
68 : NS_IMETHOD SetType(uint32_t aType) override; \
69 : NS_IMETHOD GetContentType(char * *aContentType) override; \
70 : NS_IMETHOD SetContentType(const char * aContentType) override; \
71 : NS_IMETHOD GetLocation(char * *aLocation) override; \
72 : NS_IMETHOD SetLocation(const char * aLocation) override; \
73 : NS_IMETHOD GetDescription(char16_t * *aDescription) override; \
74 : NS_IMETHOD SetDescription(const char16_t * aDescription) override; \
75 : NS_IMETHOD GetSize(int64_t *aSize) override; \
76 : NS_IMETHOD SetSize(int64_t aSize) override; \
77 : NS_IMETHOD GetLastModified(PRTime *aLastModified) override; \
78 : NS_IMETHOD SetLastModified(PRTime aLastModified) override;
79 :
80 : /* Use this macro when declaring the members of this interface when the
81 : class doesn't implement the interface. This is useful for forwarding. */
82 : #define NS_DECL_NON_VIRTUAL_NSIDIRINDEX \
83 : nsresult GetType(uint32_t *aType); \
84 : nsresult SetType(uint32_t aType); \
85 : nsresult GetContentType(char * *aContentType); \
86 : nsresult SetContentType(const char * aContentType); \
87 : nsresult GetLocation(char * *aLocation); \
88 : nsresult SetLocation(const char * aLocation); \
89 : nsresult GetDescription(char16_t * *aDescription); \
90 : nsresult SetDescription(const char16_t * aDescription); \
91 : nsresult GetSize(int64_t *aSize); \
92 : nsresult SetSize(int64_t aSize); \
93 : nsresult GetLastModified(PRTime *aLastModified); \
94 : nsresult SetLastModified(PRTime aLastModified);
95 :
96 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
97 : #define NS_FORWARD_NSIDIRINDEX(_to) \
98 : NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); } \
99 : NS_IMETHOD SetType(uint32_t aType) override { return _to SetType(aType); } \
100 : NS_IMETHOD GetContentType(char * *aContentType) override { return _to GetContentType(aContentType); } \
101 : NS_IMETHOD SetContentType(const char * aContentType) override { return _to SetContentType(aContentType); } \
102 : NS_IMETHOD GetLocation(char * *aLocation) override { return _to GetLocation(aLocation); } \
103 : NS_IMETHOD SetLocation(const char * aLocation) override { return _to SetLocation(aLocation); } \
104 : NS_IMETHOD GetDescription(char16_t * *aDescription) override { return _to GetDescription(aDescription); } \
105 : NS_IMETHOD SetDescription(const char16_t * aDescription) override { return _to SetDescription(aDescription); } \
106 : NS_IMETHOD GetSize(int64_t *aSize) override { return _to GetSize(aSize); } \
107 : NS_IMETHOD SetSize(int64_t aSize) override { return _to SetSize(aSize); } \
108 : NS_IMETHOD GetLastModified(PRTime *aLastModified) override { return _to GetLastModified(aLastModified); } \
109 : NS_IMETHOD SetLastModified(PRTime aLastModified) override { return _to SetLastModified(aLastModified); }
110 :
111 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
112 : #define NS_FORWARD_SAFE_NSIDIRINDEX(_to) \
113 : NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
114 : NS_IMETHOD SetType(uint32_t aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
115 : NS_IMETHOD GetContentType(char * *aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
116 : NS_IMETHOD SetContentType(const char * aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
117 : NS_IMETHOD GetLocation(char * *aLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
118 : NS_IMETHOD SetLocation(const char * aLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocation(aLocation); } \
119 : NS_IMETHOD GetDescription(char16_t * *aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
120 : NS_IMETHOD SetDescription(const char16_t * aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
121 : NS_IMETHOD GetSize(int64_t *aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
122 : NS_IMETHOD SetSize(int64_t aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
123 : NS_IMETHOD GetLastModified(PRTime *aLastModified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
124 : NS_IMETHOD SetLastModified(PRTime aLastModified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModified(aLastModified); }
125 :
126 : #if 0
127 : /* Use the code below as a template for the implementation class for this interface. */
128 :
129 : /* Header file */
130 : class nsDirIndex : public nsIDirIndex
131 : {
132 : public:
133 : NS_DECL_ISUPPORTS
134 : NS_DECL_NSIDIRINDEX
135 :
136 : nsDirIndex();
137 :
138 : private:
139 : ~nsDirIndex();
140 :
141 : protected:
142 : /* additional members */
143 : };
144 :
145 : /* Implementation file */
146 : NS_IMPL_ISUPPORTS(nsDirIndex, nsIDirIndex)
147 :
148 : nsDirIndex::nsDirIndex()
149 : {
150 : /* member initializers and constructor code */
151 : }
152 :
153 : nsDirIndex::~nsDirIndex()
154 : {
155 : /* destructor code */
156 : }
157 :
158 : /* attribute unsigned long type; */
159 : NS_IMETHODIMP nsDirIndex::GetType(uint32_t *aType)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 : NS_IMETHODIMP nsDirIndex::SetType(uint32_t aType)
164 : {
165 : return NS_ERROR_NOT_IMPLEMENTED;
166 : }
167 :
168 : /* attribute string contentType; */
169 : NS_IMETHODIMP nsDirIndex::GetContentType(char * *aContentType)
170 : {
171 : return NS_ERROR_NOT_IMPLEMENTED;
172 : }
173 : NS_IMETHODIMP nsDirIndex::SetContentType(const char * aContentType)
174 : {
175 : return NS_ERROR_NOT_IMPLEMENTED;
176 : }
177 :
178 : /* attribute string location; */
179 : NS_IMETHODIMP nsDirIndex::GetLocation(char * *aLocation)
180 : {
181 : return NS_ERROR_NOT_IMPLEMENTED;
182 : }
183 : NS_IMETHODIMP nsDirIndex::SetLocation(const char * aLocation)
184 : {
185 : return NS_ERROR_NOT_IMPLEMENTED;
186 : }
187 :
188 : /* attribute wstring description; */
189 : NS_IMETHODIMP nsDirIndex::GetDescription(char16_t * *aDescription)
190 : {
191 : return NS_ERROR_NOT_IMPLEMENTED;
192 : }
193 : NS_IMETHODIMP nsDirIndex::SetDescription(const char16_t * aDescription)
194 : {
195 : return NS_ERROR_NOT_IMPLEMENTED;
196 : }
197 :
198 : /* attribute long long size; */
199 : NS_IMETHODIMP nsDirIndex::GetSize(int64_t *aSize)
200 : {
201 : return NS_ERROR_NOT_IMPLEMENTED;
202 : }
203 : NS_IMETHODIMP nsDirIndex::SetSize(int64_t aSize)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 :
208 : /* attribute PRTime lastModified; */
209 : NS_IMETHODIMP nsDirIndex::GetLastModified(PRTime *aLastModified)
210 : {
211 : return NS_ERROR_NOT_IMPLEMENTED;
212 : }
213 : NS_IMETHODIMP nsDirIndex::SetLastModified(PRTime aLastModified)
214 : {
215 : return NS_ERROR_NOT_IMPLEMENTED;
216 : }
217 :
218 : /* End of implementation class template. */
219 : #endif
220 :
221 :
222 : #define NS_DIRINDEX_CID \
223 : /* { f6913e2e-1dd1-11b2-84be-f455dee342af } */ \
224 : { 0xf6913e2e, \
225 : 0x1dd1, \
226 : 0x11b2, \
227 : { 0x84, 0xbe, 0xf4, 0x55, 0xde, 0xe3, 0x42, 0xaf } \
228 : }
229 :
230 : #endif /* __gen_nsIDirIndex_h__ */
|