Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIControllerCommandTable.idl
3 : */
4 :
5 : #ifndef __gen_nsIControllerCommandTable_h__
6 : #define __gen_nsIControllerCommandTable_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIControllerCommand_h__
14 : #include "nsIControllerCommand.h"
15 : #endif
16 :
17 : #ifndef __gen_nsICommandParams_h__
18 : #include "nsICommandParams.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: nsIControllerCommandTable */
27 : #define NS_ICONTROLLERCOMMANDTABLE_IID_STR "c847f90e-b8f3-49db-a4df-8867831f2800"
28 :
29 : #define NS_ICONTROLLERCOMMANDTABLE_IID \
30 : {0xc847f90e, 0xb8f3, 0x49db, \
31 : { 0xa4, 0xdf, 0x88, 0x67, 0x83, 0x1f, 0x28, 0x00 }}
32 :
33 4 : class NS_NO_VTABLE nsIControllerCommandTable : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTROLLERCOMMANDTABLE_IID)
37 :
38 : /* void makeImmutable (); */
39 : NS_IMETHOD MakeImmutable(void) = 0;
40 :
41 : /* void registerCommand (in string aCommandName, in nsIControllerCommand aCommand); */
42 : NS_IMETHOD RegisterCommand(const char * aCommandName, nsIControllerCommand *aCommand) = 0;
43 :
44 : /* void unregisterCommand (in string aCommandName, in nsIControllerCommand aCommand); */
45 : NS_IMETHOD UnregisterCommand(const char * aCommandName, nsIControllerCommand *aCommand) = 0;
46 :
47 : /* nsIControllerCommand findCommandHandler (in string aCommandName); */
48 : NS_IMETHOD FindCommandHandler(const char * aCommandName, nsIControllerCommand * *_retval) = 0;
49 :
50 : /* boolean isCommandEnabled (in string aCommandName, in nsISupports aCommandRefCon); */
51 : NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval) = 0;
52 :
53 : /* void updateCommandState (in string aCommandName, in nsISupports aCommandRefCon); */
54 : NS_IMETHOD UpdateCommandState(const char * aCommandName, nsISupports *aCommandRefCon) = 0;
55 :
56 : /* boolean supportsCommand (in string aCommandName, in nsISupports aCommandRefCon); */
57 : NS_IMETHOD SupportsCommand(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval) = 0;
58 :
59 : /* void doCommand (in string aCommandName, in nsISupports aCommandRefCon); */
60 : NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandRefCon) = 0;
61 :
62 : /* void doCommandParams (in string aCommandName, in nsICommandParams aParam, in nsISupports aCommandRefCon); */
63 : NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) = 0;
64 :
65 : /* void getCommandState (in string aCommandName, in nsICommandParams aParam, in nsISupports aCommandRefCon); */
66 : NS_IMETHOD GetCommandState(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) = 0;
67 :
68 : /* void getSupportedCommands (out unsigned long count, [array, size_is (count), retval] out string commands); */
69 : NS_IMETHOD GetSupportedCommands(uint32_t *count, char * **commands) = 0;
70 :
71 : };
72 :
73 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIControllerCommandTable, NS_ICONTROLLERCOMMANDTABLE_IID)
74 :
75 : /* Use this macro when declaring classes that implement this interface. */
76 : #define NS_DECL_NSICONTROLLERCOMMANDTABLE \
77 : NS_IMETHOD MakeImmutable(void) override; \
78 : NS_IMETHOD RegisterCommand(const char * aCommandName, nsIControllerCommand *aCommand) override; \
79 : NS_IMETHOD UnregisterCommand(const char * aCommandName, nsIControllerCommand *aCommand) override; \
80 : NS_IMETHOD FindCommandHandler(const char * aCommandName, nsIControllerCommand * *_retval) override; \
81 : NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval) override; \
82 : NS_IMETHOD UpdateCommandState(const char * aCommandName, nsISupports *aCommandRefCon) override; \
83 : NS_IMETHOD SupportsCommand(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval) override; \
84 : NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandRefCon) override; \
85 : NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) override; \
86 : NS_IMETHOD GetCommandState(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) override; \
87 : NS_IMETHOD GetSupportedCommands(uint32_t *count, char * **commands) override;
88 :
89 : /* Use this macro when declaring the members of this interface when the
90 : class doesn't implement the interface. This is useful for forwarding. */
91 : #define NS_DECL_NON_VIRTUAL_NSICONTROLLERCOMMANDTABLE \
92 : nsresult MakeImmutable(void); \
93 : nsresult RegisterCommand(const char * aCommandName, nsIControllerCommand *aCommand); \
94 : nsresult UnregisterCommand(const char * aCommandName, nsIControllerCommand *aCommand); \
95 : nsresult FindCommandHandler(const char * aCommandName, nsIControllerCommand * *_retval); \
96 : nsresult IsCommandEnabled(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval); \
97 : nsresult UpdateCommandState(const char * aCommandName, nsISupports *aCommandRefCon); \
98 : nsresult SupportsCommand(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval); \
99 : nsresult DoCommand(const char * aCommandName, nsISupports *aCommandRefCon); \
100 : nsresult DoCommandParams(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon); \
101 : nsresult GetCommandState(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon); \
102 : nsresult GetSupportedCommands(uint32_t *count, char * **commands);
103 :
104 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
105 : #define NS_FORWARD_NSICONTROLLERCOMMANDTABLE(_to) \
106 : NS_IMETHOD MakeImmutable(void) override { return _to MakeImmutable(); } \
107 : NS_IMETHOD RegisterCommand(const char * aCommandName, nsIControllerCommand *aCommand) override { return _to RegisterCommand(aCommandName, aCommand); } \
108 : NS_IMETHOD UnregisterCommand(const char * aCommandName, nsIControllerCommand *aCommand) override { return _to UnregisterCommand(aCommandName, aCommand); } \
109 : NS_IMETHOD FindCommandHandler(const char * aCommandName, nsIControllerCommand * *_retval) override { return _to FindCommandHandler(aCommandName, _retval); } \
110 : NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval) override { return _to IsCommandEnabled(aCommandName, aCommandRefCon, _retval); } \
111 : NS_IMETHOD UpdateCommandState(const char * aCommandName, nsISupports *aCommandRefCon) override { return _to UpdateCommandState(aCommandName, aCommandRefCon); } \
112 : NS_IMETHOD SupportsCommand(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval) override { return _to SupportsCommand(aCommandName, aCommandRefCon, _retval); } \
113 : NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandRefCon) override { return _to DoCommand(aCommandName, aCommandRefCon); } \
114 : NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) override { return _to DoCommandParams(aCommandName, aParam, aCommandRefCon); } \
115 : NS_IMETHOD GetCommandState(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) override { return _to GetCommandState(aCommandName, aParam, aCommandRefCon); } \
116 : NS_IMETHOD GetSupportedCommands(uint32_t *count, char * **commands) override { return _to GetSupportedCommands(count, commands); }
117 :
118 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
119 : #define NS_FORWARD_SAFE_NSICONTROLLERCOMMANDTABLE(_to) \
120 : NS_IMETHOD MakeImmutable(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeImmutable(); } \
121 : NS_IMETHOD RegisterCommand(const char * aCommandName, nsIControllerCommand *aCommand) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterCommand(aCommandName, aCommand); } \
122 : NS_IMETHOD UnregisterCommand(const char * aCommandName, nsIControllerCommand *aCommand) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterCommand(aCommandName, aCommand); } \
123 : NS_IMETHOD FindCommandHandler(const char * aCommandName, nsIControllerCommand * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCommandHandler(aCommandName, _retval); } \
124 : NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(aCommandName, aCommandRefCon, _retval); } \
125 : NS_IMETHOD UpdateCommandState(const char * aCommandName, nsISupports *aCommandRefCon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommandState(aCommandName, aCommandRefCon); } \
126 : NS_IMETHOD SupportsCommand(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(aCommandName, aCommandRefCon, _retval); } \
127 : NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandRefCon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aCommandName, aCommandRefCon); } \
128 : NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandParams(aCommandName, aParam, aCommandRefCon); } \
129 : NS_IMETHOD GetCommandState(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandState(aCommandName, aParam, aCommandRefCon); } \
130 : NS_IMETHOD GetSupportedCommands(uint32_t *count, char * **commands) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedCommands(count, commands); }
131 :
132 : #if 0
133 : /* Use the code below as a template for the implementation class for this interface. */
134 :
135 : /* Header file */
136 : class nsControllerCommandTable : public nsIControllerCommandTable
137 : {
138 : public:
139 : NS_DECL_ISUPPORTS
140 : NS_DECL_NSICONTROLLERCOMMANDTABLE
141 :
142 : nsControllerCommandTable();
143 :
144 : private:
145 : ~nsControllerCommandTable();
146 :
147 : protected:
148 : /* additional members */
149 : };
150 :
151 : /* Implementation file */
152 : NS_IMPL_ISUPPORTS(nsControllerCommandTable, nsIControllerCommandTable)
153 :
154 : nsControllerCommandTable::nsControllerCommandTable()
155 : {
156 : /* member initializers and constructor code */
157 : }
158 :
159 : nsControllerCommandTable::~nsControllerCommandTable()
160 : {
161 : /* destructor code */
162 : }
163 :
164 : /* void makeImmutable (); */
165 : NS_IMETHODIMP nsControllerCommandTable::MakeImmutable()
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* void registerCommand (in string aCommandName, in nsIControllerCommand aCommand); */
171 : NS_IMETHODIMP nsControllerCommandTable::RegisterCommand(const char * aCommandName, nsIControllerCommand *aCommand)
172 : {
173 : return NS_ERROR_NOT_IMPLEMENTED;
174 : }
175 :
176 : /* void unregisterCommand (in string aCommandName, in nsIControllerCommand aCommand); */
177 : NS_IMETHODIMP nsControllerCommandTable::UnregisterCommand(const char * aCommandName, nsIControllerCommand *aCommand)
178 : {
179 : return NS_ERROR_NOT_IMPLEMENTED;
180 : }
181 :
182 : /* nsIControllerCommand findCommandHandler (in string aCommandName); */
183 : NS_IMETHODIMP nsControllerCommandTable::FindCommandHandler(const char * aCommandName, nsIControllerCommand * *_retval)
184 : {
185 : return NS_ERROR_NOT_IMPLEMENTED;
186 : }
187 :
188 : /* boolean isCommandEnabled (in string aCommandName, in nsISupports aCommandRefCon); */
189 : NS_IMETHODIMP nsControllerCommandTable::IsCommandEnabled(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval)
190 : {
191 : return NS_ERROR_NOT_IMPLEMENTED;
192 : }
193 :
194 : /* void updateCommandState (in string aCommandName, in nsISupports aCommandRefCon); */
195 : NS_IMETHODIMP nsControllerCommandTable::UpdateCommandState(const char * aCommandName, nsISupports *aCommandRefCon)
196 : {
197 : return NS_ERROR_NOT_IMPLEMENTED;
198 : }
199 :
200 : /* boolean supportsCommand (in string aCommandName, in nsISupports aCommandRefCon); */
201 : NS_IMETHODIMP nsControllerCommandTable::SupportsCommand(const char * aCommandName, nsISupports *aCommandRefCon, bool *_retval)
202 : {
203 : return NS_ERROR_NOT_IMPLEMENTED;
204 : }
205 :
206 : /* void doCommand (in string aCommandName, in nsISupports aCommandRefCon); */
207 : NS_IMETHODIMP nsControllerCommandTable::DoCommand(const char * aCommandName, nsISupports *aCommandRefCon)
208 : {
209 : return NS_ERROR_NOT_IMPLEMENTED;
210 : }
211 :
212 : /* void doCommandParams (in string aCommandName, in nsICommandParams aParam, in nsISupports aCommandRefCon); */
213 : NS_IMETHODIMP nsControllerCommandTable::DoCommandParams(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon)
214 : {
215 : return NS_ERROR_NOT_IMPLEMENTED;
216 : }
217 :
218 : /* void getCommandState (in string aCommandName, in nsICommandParams aParam, in nsISupports aCommandRefCon); */
219 : NS_IMETHODIMP nsControllerCommandTable::GetCommandState(const char * aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon)
220 : {
221 : return NS_ERROR_NOT_IMPLEMENTED;
222 : }
223 :
224 : /* void getSupportedCommands (out unsigned long count, [array, size_is (count), retval] out string commands); */
225 : NS_IMETHODIMP nsControllerCommandTable::GetSupportedCommands(uint32_t *count, char * **commands)
226 : {
227 : return NS_ERROR_NOT_IMPLEMENTED;
228 : }
229 :
230 : /* End of implementation class template. */
231 : #endif
232 :
233 : // {670ee5da-6ad5-11d7-9950-000393636592}
234 : #define NS_CONTROLLERCOMMANDTABLE_CID \
235 : {0x670ee5da, 0x6ad5, 0x11d7, \
236 : { 0x99, 0x50, 0x00, 0x03, 0x93, 0x63, 0x65, 0x92 }}
237 : #define NS_CONTROLLERCOMMANDTABLE_CONTRACTID \
238 : "@mozilla.org/embedcomp/controller-command-table;1"
239 :
240 : #endif /* __gen_nsIControllerCommandTable_h__ */
|