1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/ds/nsIArray.idl
3 : */
4 :
5 : #ifndef __gen_nsIArray_h__
6 : #define __gen_nsIArray_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 nsISimpleEnumerator; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIArray */
21 : #define NS_IARRAY_IID_STR "114744d9-c369-456e-b55a-52fe52880d2d"
22 :
23 : #define NS_IARRAY_IID \
24 : {0x114744d9, 0xc369, 0x456e, \
25 : { 0xb5, 0x5a, 0x52, 0xfe, 0x52, 0x88, 0x0d, 0x2d }}
26 :
27 1619 : class NS_NO_VTABLE NS_SCRIPTABLE nsIArray : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IARRAY_IID)
31 :
32 : /* readonly attribute unsigned long length; */
33 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
34 :
35 : /* void queryElementAt (in unsigned long index, in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result); */
36 : NS_SCRIPTABLE NS_IMETHOD QueryElementAt(PRUint32 index, const nsIID & uuid, void **result NS_OUTPARAM) = 0;
37 :
38 : /* unsigned long indexOf (in unsigned long startIndex, in nsISupports element); */
39 : NS_SCRIPTABLE NS_IMETHOD IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval NS_OUTPARAM) = 0;
40 :
41 : /* nsISimpleEnumerator enumerate (); */
42 : NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIArray, NS_IARRAY_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIARRAY \
50 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
51 : NS_SCRIPTABLE NS_IMETHOD QueryElementAt(PRUint32 index, const nsIID & uuid, void **result NS_OUTPARAM); \
52 : NS_SCRIPTABLE NS_IMETHOD IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval NS_OUTPARAM); \
53 : NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIARRAY(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
58 : NS_SCRIPTABLE NS_IMETHOD QueryElementAt(PRUint32 index, const nsIID & uuid, void **result NS_OUTPARAM) { return _to QueryElementAt(index, uuid, result); } \
59 : NS_SCRIPTABLE NS_IMETHOD IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval NS_OUTPARAM) { return _to IndexOf(startIndex, element, _retval); } \
60 : NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to Enumerate(_retval); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIARRAY(_to) \
64 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
65 : NS_SCRIPTABLE NS_IMETHOD QueryElementAt(PRUint32 index, const nsIID & uuid, void **result NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryElementAt(index, uuid, result); } \
66 : NS_SCRIPTABLE NS_IMETHOD IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOf(startIndex, element, _retval); } \
67 : NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Enumerate(_retval); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsArray : public nsIArray
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSIARRAY
78 :
79 : nsArray();
80 :
81 : private:
82 : ~nsArray();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsArray, nsIArray)
90 :
91 : nsArray::nsArray()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsArray::~nsArray()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* readonly attribute unsigned long length; */
102 : NS_IMETHODIMP nsArray::GetLength(PRUint32 *aLength)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* void queryElementAt (in unsigned long index, in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result); */
108 : NS_IMETHODIMP nsArray::QueryElementAt(PRUint32 index, const nsIID & uuid, void **result NS_OUTPARAM)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* unsigned long indexOf (in unsigned long startIndex, in nsISupports element); */
114 : NS_IMETHODIMP nsArray::IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval NS_OUTPARAM)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* nsISimpleEnumerator enumerate (); */
120 : NS_IMETHODIMP nsArray::Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* End of implementation class template. */
126 : #endif
127 :
128 :
129 : #endif /* __gen_nsIArray_h__ */
|