1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/io/nsIDirectoryEnumerator.idl
3 : */
4 :
5 : #ifndef __gen_nsIDirectoryEnumerator_h__
6 : #define __gen_nsIDirectoryEnumerator_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 : class nsIFile; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDirectoryEnumerator */
21 : #define NS_IDIRECTORYENUMERATOR_IID_STR "31f7f4ae-6916-4f2d-a81e-926a4e3022ee"
22 :
23 : #define NS_IDIRECTORYENUMERATOR_IID \
24 : {0x31f7f4ae, 0x6916, 0x4f2d, \
25 : { 0xa8, 0x1e, 0x92, 0x6a, 0x4e, 0x30, 0x22, 0xee }}
26 :
27 12472 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDirectoryEnumerator : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRECTORYENUMERATOR_IID)
31 :
32 : /* readonly attribute nsIFile nextFile; */
33 : NS_SCRIPTABLE NS_IMETHOD GetNextFile(nsIFile * *aNextFile) = 0;
34 :
35 : /* void close (); */
36 : NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirectoryEnumerator, NS_IDIRECTORYENUMERATOR_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIDIRECTORYENUMERATOR \
44 : NS_SCRIPTABLE NS_IMETHOD GetNextFile(nsIFile * *aNextFile); \
45 : NS_SCRIPTABLE NS_IMETHOD Close(void);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIDIRECTORYENUMERATOR(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD GetNextFile(nsIFile * *aNextFile) { return _to GetNextFile(aNextFile); } \
50 : NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NSIDIRECTORYENUMERATOR(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD GetNextFile(nsIFile * *aNextFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextFile(aNextFile); } \
55 : NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class nsDirectoryEnumerator : public nsIDirectoryEnumerator
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_NSIDIRECTORYENUMERATOR
66 :
67 : nsDirectoryEnumerator();
68 :
69 : private:
70 : ~nsDirectoryEnumerator();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(nsDirectoryEnumerator, nsIDirectoryEnumerator)
78 :
79 : nsDirectoryEnumerator::nsDirectoryEnumerator()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : nsDirectoryEnumerator::~nsDirectoryEnumerator()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* readonly attribute nsIFile nextFile; */
90 : NS_IMETHODIMP nsDirectoryEnumerator::GetNextFile(nsIFile * *aNextFile)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* void close (); */
96 : NS_IMETHODIMP nsDirectoryEnumerator::Close()
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_nsIDirectoryEnumerator_h__ */
|