Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 : /* 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 nsISHEntry; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsISHContainer */
21 : #define NS_ISHCONTAINER_IID_STR "67dd0357-8372-4122-bff6-217435e8b7e4"
22 :
23 : #define NS_ISHCONTAINER_IID \
24 : {0x67dd0357, 0x8372, 0x4122, \
25 : { 0xbf, 0xf6, 0x21, 0x74, 0x35, 0xe8, 0xb7, 0xe4 }}
26 :
27 1 : class NS_NO_VTABLE nsISHContainer : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHCONTAINER_IID)
31 :
32 : /* readonly attribute long childCount; */
33 : NS_IMETHOD GetChildCount(int32_t *aChildCount) = 0;
34 :
35 : /* void AddChild (in nsISHEntry child, in long offset); */
36 : NS_IMETHOD AddChild(nsISHEntry *child, int32_t offset) = 0;
37 :
38 : /* void RemoveChild (in nsISHEntry child); */
39 : NS_IMETHOD RemoveChild(nsISHEntry *child) = 0;
40 :
41 : /* nsISHEntry GetChildAt (in long index); */
42 : NS_IMETHOD GetChildAt(int32_t index, nsISHEntry * *_retval) = 0;
43 :
44 : /* void ReplaceChild (in nsISHEntry aNewChild); */
45 : NS_IMETHOD ReplaceChild(nsISHEntry *aNewChild) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISHContainer, NS_ISHCONTAINER_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSISHCONTAINER \
53 : NS_IMETHOD GetChildCount(int32_t *aChildCount) override; \
54 : NS_IMETHOD AddChild(nsISHEntry *child, int32_t offset) override; \
55 : NS_IMETHOD RemoveChild(nsISHEntry *child) override; \
56 : NS_IMETHOD GetChildAt(int32_t index, nsISHEntry * *_retval) override; \
57 : NS_IMETHOD ReplaceChild(nsISHEntry *aNewChild) override;
58 :
59 : /* Use this macro when declaring the members of this interface when the
60 : class doesn't implement the interface. This is useful for forwarding. */
61 : #define NS_DECL_NON_VIRTUAL_NSISHCONTAINER \
62 : nsresult GetChildCount(int32_t *aChildCount); \
63 : nsresult AddChild(nsISHEntry *child, int32_t offset); \
64 : nsresult RemoveChild(nsISHEntry *child); \
65 : nsresult GetChildAt(int32_t index, nsISHEntry * *_retval); \
66 : nsresult ReplaceChild(nsISHEntry *aNewChild);
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
69 : #define NS_FORWARD_NSISHCONTAINER(_to) \
70 : NS_IMETHOD GetChildCount(int32_t *aChildCount) override { return _to GetChildCount(aChildCount); } \
71 : NS_IMETHOD AddChild(nsISHEntry *child, int32_t offset) override { return _to AddChild(child, offset); } \
72 : NS_IMETHOD RemoveChild(nsISHEntry *child) override { return _to RemoveChild(child); } \
73 : NS_IMETHOD GetChildAt(int32_t index, nsISHEntry * *_retval) override { return _to GetChildAt(index, _retval); } \
74 : NS_IMETHOD ReplaceChild(nsISHEntry *aNewChild) override { return _to ReplaceChild(aNewChild); }
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
77 : #define NS_FORWARD_SAFE_NSISHCONTAINER(_to) \
78 : NS_IMETHOD GetChildCount(int32_t *aChildCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
79 : NS_IMETHOD AddChild(nsISHEntry *child, int32_t offset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChild(child, offset); } \
80 : NS_IMETHOD RemoveChild(nsISHEntry *child) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChild(child); } \
81 : NS_IMETHOD GetChildAt(int32_t index, nsISHEntry * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildAt(index, _retval); } \
82 : NS_IMETHOD ReplaceChild(nsISHEntry *aNewChild) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceChild(aNewChild); }
83 :
84 : #if 0
85 : /* Use the code below as a template for the implementation class for this interface. */
86 :
87 : /* Header file */
88 : class nsSHContainer : public nsISHContainer
89 : {
90 : public:
91 : NS_DECL_ISUPPORTS
92 : NS_DECL_NSISHCONTAINER
93 :
94 : nsSHContainer();
95 :
96 : private:
97 : ~nsSHContainer();
98 :
99 : protected:
100 : /* additional members */
101 : };
102 :
103 : /* Implementation file */
104 : NS_IMPL_ISUPPORTS(nsSHContainer, nsISHContainer)
105 :
106 : nsSHContainer::nsSHContainer()
107 : {
108 : /* member initializers and constructor code */
109 : }
110 :
111 : nsSHContainer::~nsSHContainer()
112 : {
113 : /* destructor code */
114 : }
115 :
116 : /* readonly attribute long childCount; */
117 : NS_IMETHODIMP nsSHContainer::GetChildCount(int32_t *aChildCount)
118 : {
119 : return NS_ERROR_NOT_IMPLEMENTED;
120 : }
121 :
122 : /* void AddChild (in nsISHEntry child, in long offset); */
123 : NS_IMETHODIMP nsSHContainer::AddChild(nsISHEntry *child, int32_t offset)
124 : {
125 : return NS_ERROR_NOT_IMPLEMENTED;
126 : }
127 :
128 : /* void RemoveChild (in nsISHEntry child); */
129 : NS_IMETHODIMP nsSHContainer::RemoveChild(nsISHEntry *child)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* nsISHEntry GetChildAt (in long index); */
135 : NS_IMETHODIMP nsSHContainer::GetChildAt(int32_t index, nsISHEntry * *_retval)
136 : {
137 : return NS_ERROR_NOT_IMPLEMENTED;
138 : }
139 :
140 : /* void ReplaceChild (in nsISHEntry aNewChild); */
141 : NS_IMETHODIMP nsSHContainer::ReplaceChild(nsISHEntry *aNewChild)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* End of implementation class template. */
147 : #endif
148 :
149 :
150 : #endif /* __gen_nsISHContainer_h__ */
|