1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/shistory/public/nsISHContainer.idl
3 : */
4 :
5 : #ifndef __gen_nsISHContainer_h__
6 : #define __gen_nsISHContainer_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIEnumerator_h__
14 : #include "nsIEnumerator.h"
15 : #endif
16 :
17 : #ifndef __gen_nsISHEntry_h__
18 : #include "nsISHEntry.h"
19 : #endif
20 :
21 : /* For IDL files that don't want to include root IDL files. */
22 : #ifndef NS_NO_VTABLE
23 : #define NS_NO_VTABLE
24 : #endif
25 :
26 : /* starting interface: nsISHContainer */
27 : #define NS_ISHCONTAINER_IID_STR "65281ba2-988a-11d3-bdc7-0050040a9b44"
28 :
29 : #define NS_ISHCONTAINER_IID \
30 : {0x65281ba2, 0x988a, 0x11d3, \
31 : { 0xbd, 0xc7, 0x00, 0x50, 0x04, 0x0a, 0x9b, 0x44 }}
32 :
33 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISHContainer : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHCONTAINER_IID)
37 :
38 : /* readonly attribute long childCount; */
39 : NS_SCRIPTABLE NS_IMETHOD GetChildCount(PRInt32 *aChildCount) = 0;
40 :
41 : /* void AddChild (in nsISHEntry child, in long offset); */
42 : NS_SCRIPTABLE NS_IMETHOD AddChild(nsISHEntry *child, PRInt32 offset) = 0;
43 :
44 : /* void RemoveChild (in nsISHEntry child); */
45 : NS_SCRIPTABLE NS_IMETHOD RemoveChild(nsISHEntry *child) = 0;
46 :
47 : /* nsISHEntry GetChildAt (in long index); */
48 : NS_SCRIPTABLE NS_IMETHOD GetChildAt(PRInt32 index, nsISHEntry * *_retval NS_OUTPARAM) = 0;
49 :
50 : };
51 :
52 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISHContainer, NS_ISHCONTAINER_IID)
53 :
54 : /* Use this macro when declaring classes that implement this interface. */
55 : #define NS_DECL_NSISHCONTAINER \
56 : NS_SCRIPTABLE NS_IMETHOD GetChildCount(PRInt32 *aChildCount); \
57 : NS_SCRIPTABLE NS_IMETHOD AddChild(nsISHEntry *child, PRInt32 offset); \
58 : NS_SCRIPTABLE NS_IMETHOD RemoveChild(nsISHEntry *child); \
59 : NS_SCRIPTABLE NS_IMETHOD GetChildAt(PRInt32 index, nsISHEntry * *_retval NS_OUTPARAM);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSISHCONTAINER(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD GetChildCount(PRInt32 *aChildCount) { return _to GetChildCount(aChildCount); } \
64 : NS_SCRIPTABLE NS_IMETHOD AddChild(nsISHEntry *child, PRInt32 offset) { return _to AddChild(child, offset); } \
65 : NS_SCRIPTABLE NS_IMETHOD RemoveChild(nsISHEntry *child) { return _to RemoveChild(child); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetChildAt(PRInt32 index, nsISHEntry * *_retval NS_OUTPARAM) { return _to GetChildAt(index, _retval); }
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
69 : #define NS_FORWARD_SAFE_NSISHCONTAINER(_to) \
70 : NS_SCRIPTABLE NS_IMETHOD GetChildCount(PRInt32 *aChildCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
71 : NS_SCRIPTABLE NS_IMETHOD AddChild(nsISHEntry *child, PRInt32 offset) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChild(child, offset); } \
72 : NS_SCRIPTABLE NS_IMETHOD RemoveChild(nsISHEntry *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChild(child); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetChildAt(PRInt32 index, nsISHEntry * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildAt(index, _retval); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsSHContainer : public nsISHContainer
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSISHCONTAINER
84 :
85 : nsSHContainer();
86 :
87 : private:
88 : ~nsSHContainer();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS1(nsSHContainer, nsISHContainer)
96 :
97 : nsSHContainer::nsSHContainer()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsSHContainer::~nsSHContainer()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* readonly attribute long childCount; */
108 : NS_IMETHODIMP nsSHContainer::GetChildCount(PRInt32 *aChildCount)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* void AddChild (in nsISHEntry child, in long offset); */
114 : NS_IMETHODIMP nsSHContainer::AddChild(nsISHEntry *child, PRInt32 offset)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* void RemoveChild (in nsISHEntry child); */
120 : NS_IMETHODIMP nsSHContainer::RemoveChild(nsISHEntry *child)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* nsISHEntry GetChildAt (in long index); */
126 : NS_IMETHODIMP nsSHContainer::GetChildAt(PRInt32 index, nsISHEntry * *_retval NS_OUTPARAM)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* End of implementation class template. */
132 : #endif
133 :
134 :
135 : #endif /* __gen_nsISHContainer_h__ */
|