1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/streamconv/public/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 NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) = 0;
39 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) = 0;
40 :
41 : /* attribute string contentType; */
42 : NS_SCRIPTABLE NS_IMETHOD GetContentType(char * *aContentType) = 0;
43 : NS_SCRIPTABLE NS_IMETHOD SetContentType(const char * aContentType) = 0;
44 :
45 : /* attribute string location; */
46 : NS_SCRIPTABLE NS_IMETHOD GetLocation(char * *aLocation) = 0;
47 : NS_SCRIPTABLE NS_IMETHOD SetLocation(const char * aLocation) = 0;
48 :
49 : /* attribute wstring description; */
50 : NS_SCRIPTABLE NS_IMETHOD GetDescription(PRUnichar * *aDescription) = 0;
51 : NS_SCRIPTABLE NS_IMETHOD SetDescription(const PRUnichar * aDescription) = 0;
52 :
53 : /* attribute long long size; */
54 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt64 *aSize) = 0;
55 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt64 aSize) = 0;
56 :
57 : /* attribute PRTime lastModified; */
58 : NS_SCRIPTABLE NS_IMETHOD GetLastModified(PRTime *aLastModified) = 0;
59 : NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType); \
68 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType); \
69 : NS_SCRIPTABLE NS_IMETHOD GetContentType(char * *aContentType); \
70 : NS_SCRIPTABLE NS_IMETHOD SetContentType(const char * aContentType); \
71 : NS_SCRIPTABLE NS_IMETHOD GetLocation(char * *aLocation); \
72 : NS_SCRIPTABLE NS_IMETHOD SetLocation(const char * aLocation); \
73 : NS_SCRIPTABLE NS_IMETHOD GetDescription(PRUnichar * *aDescription); \
74 : NS_SCRIPTABLE NS_IMETHOD SetDescription(const PRUnichar * aDescription); \
75 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt64 *aSize); \
76 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt64 aSize); \
77 : NS_SCRIPTABLE NS_IMETHOD GetLastModified(PRTime *aLastModified); \
78 : NS_SCRIPTABLE NS_IMETHOD SetLastModified(PRTime aLastModified);
79 :
80 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
81 : #define NS_FORWARD_NSIDIRINDEX(_to) \
82 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return _to GetType(aType); } \
83 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) { return _to SetType(aType); } \
84 : NS_SCRIPTABLE NS_IMETHOD GetContentType(char * *aContentType) { return _to GetContentType(aContentType); } \
85 : NS_SCRIPTABLE NS_IMETHOD SetContentType(const char * aContentType) { return _to SetContentType(aContentType); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetLocation(char * *aLocation) { return _to GetLocation(aLocation); } \
87 : NS_SCRIPTABLE NS_IMETHOD SetLocation(const char * aLocation) { return _to SetLocation(aLocation); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetDescription(PRUnichar * *aDescription) { return _to GetDescription(aDescription); } \
89 : NS_SCRIPTABLE NS_IMETHOD SetDescription(const PRUnichar * aDescription) { return _to SetDescription(aDescription); } \
90 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt64 *aSize) { return _to GetSize(aSize); } \
91 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt64 aSize) { return _to SetSize(aSize); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetLastModified(PRTime *aLastModified) { return _to GetLastModified(aLastModified); } \
93 : NS_SCRIPTABLE NS_IMETHOD SetLastModified(PRTime aLastModified) { return _to SetLastModified(aLastModified); }
94 :
95 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
96 : #define NS_FORWARD_SAFE_NSIDIRINDEX(_to) \
97 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
98 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
99 : NS_SCRIPTABLE NS_IMETHOD GetContentType(char * *aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
100 : NS_SCRIPTABLE NS_IMETHOD SetContentType(const char * aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
101 : NS_SCRIPTABLE NS_IMETHOD GetLocation(char * *aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
102 : NS_SCRIPTABLE NS_IMETHOD SetLocation(const char * aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocation(aLocation); } \
103 : NS_SCRIPTABLE NS_IMETHOD GetDescription(PRUnichar * *aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
104 : NS_SCRIPTABLE NS_IMETHOD SetDescription(const PRUnichar * aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt64 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
106 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt64 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetLastModified(PRTime *aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
108 : NS_SCRIPTABLE NS_IMETHOD SetLastModified(PRTime aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModified(aLastModified); }
109 :
110 : #if 0
111 : /* Use the code below as a template for the implementation class for this interface. */
112 :
113 : /* Header file */
114 : class nsDirIndex : public nsIDirIndex
115 : {
116 : public:
117 : NS_DECL_ISUPPORTS
118 : NS_DECL_NSIDIRINDEX
119 :
120 : nsDirIndex();
121 :
122 : private:
123 : ~nsDirIndex();
124 :
125 : protected:
126 : /* additional members */
127 : };
128 :
129 : /* Implementation file */
130 : NS_IMPL_ISUPPORTS1(nsDirIndex, nsIDirIndex)
131 :
132 : nsDirIndex::nsDirIndex()
133 : {
134 : /* member initializers and constructor code */
135 : }
136 :
137 : nsDirIndex::~nsDirIndex()
138 : {
139 : /* destructor code */
140 : }
141 :
142 : /* attribute unsigned long type; */
143 : NS_IMETHODIMP nsDirIndex::GetType(PRUint32 *aType)
144 : {
145 : return NS_ERROR_NOT_IMPLEMENTED;
146 : }
147 : NS_IMETHODIMP nsDirIndex::SetType(PRUint32 aType)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 :
152 : /* attribute string contentType; */
153 : NS_IMETHODIMP nsDirIndex::GetContentType(char * *aContentType)
154 : {
155 : return NS_ERROR_NOT_IMPLEMENTED;
156 : }
157 : NS_IMETHODIMP nsDirIndex::SetContentType(const char * aContentType)
158 : {
159 : return NS_ERROR_NOT_IMPLEMENTED;
160 : }
161 :
162 : /* attribute string location; */
163 : NS_IMETHODIMP nsDirIndex::GetLocation(char * *aLocation)
164 : {
165 : return NS_ERROR_NOT_IMPLEMENTED;
166 : }
167 : NS_IMETHODIMP nsDirIndex::SetLocation(const char * aLocation)
168 : {
169 : return NS_ERROR_NOT_IMPLEMENTED;
170 : }
171 :
172 : /* attribute wstring description; */
173 : NS_IMETHODIMP nsDirIndex::GetDescription(PRUnichar * *aDescription)
174 : {
175 : return NS_ERROR_NOT_IMPLEMENTED;
176 : }
177 : NS_IMETHODIMP nsDirIndex::SetDescription(const PRUnichar * aDescription)
178 : {
179 : return NS_ERROR_NOT_IMPLEMENTED;
180 : }
181 :
182 : /* attribute long long size; */
183 : NS_IMETHODIMP nsDirIndex::GetSize(PRInt64 *aSize)
184 : {
185 : return NS_ERROR_NOT_IMPLEMENTED;
186 : }
187 : NS_IMETHODIMP nsDirIndex::SetSize(PRInt64 aSize)
188 : {
189 : return NS_ERROR_NOT_IMPLEMENTED;
190 : }
191 :
192 : /* attribute PRTime lastModified; */
193 : NS_IMETHODIMP nsDirIndex::GetLastModified(PRTime *aLastModified)
194 : {
195 : return NS_ERROR_NOT_IMPLEMENTED;
196 : }
197 : NS_IMETHODIMP nsDirIndex::SetLastModified(PRTime aLastModified)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* End of implementation class template. */
203 : #endif
204 :
205 :
206 : #define NS_DIRINDEX_CID \
207 : /* { f6913e2e-1dd1-11b2-84be-f455dee342af } */ \
208 : { 0xf6913e2e, \
209 : 0x1dd1, \
210 : 0x11b2, \
211 : { 0x84, 0xbe, 0xf4, 0x55, 0xde, 0xe3, 0x42, 0xaf } \
212 : }
213 :
214 : #endif /* __gen_nsIDirIndex_h__ */
|