Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIControllerCommand.idl
3 : */
4 :
5 : #ifndef __gen_nsIControllerCommand_h__
6 : #define __gen_nsIControllerCommand_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsICommandParams_h__
14 : #include "nsICommandParams.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsIControllerCommand */
23 : #define NS_ICONTROLLERCOMMAND_IID_STR "0eae9a46-1dd2-11b2-aca0-9176f05fe9db"
24 :
25 : #define NS_ICONTROLLERCOMMAND_IID \
26 : {0x0eae9a46, 0x1dd2, 0x11b2, \
27 : { 0xac, 0xa0, 0x91, 0x76, 0xf0, 0x5f, 0xe9, 0xdb }}
28 :
29 46 : class NS_NO_VTABLE nsIControllerCommand : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTROLLERCOMMAND_IID)
33 :
34 : /* boolean isCommandEnabled (in string aCommandName, in nsISupports aCommandContext); */
35 : NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval) = 0;
36 :
37 : /* void getCommandStateParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext); */
38 : NS_IMETHOD GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) = 0;
39 :
40 : /* void doCommand (in string aCommandName, in nsISupports aCommandContext); */
41 : NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandContext) = 0;
42 :
43 : /* void doCommandParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext); */
44 : NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) = 0;
45 :
46 : };
47 :
48 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIControllerCommand, NS_ICONTROLLERCOMMAND_IID)
49 :
50 : /* Use this macro when declaring classes that implement this interface. */
51 : #define NS_DECL_NSICONTROLLERCOMMAND \
52 : NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval) override; \
53 : NS_IMETHOD GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) override; \
54 : NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandContext) override; \
55 : NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) override;
56 :
57 : /* Use this macro when declaring the members of this interface when the
58 : class doesn't implement the interface. This is useful for forwarding. */
59 : #define NS_DECL_NON_VIRTUAL_NSICONTROLLERCOMMAND \
60 : nsresult IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval); \
61 : nsresult GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext); \
62 : nsresult DoCommand(const char * aCommandName, nsISupports *aCommandContext); \
63 : nsresult DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext);
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
66 : #define NS_FORWARD_NSICONTROLLERCOMMAND(_to) \
67 : NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval) override { return _to IsCommandEnabled(aCommandName, aCommandContext, _retval); } \
68 : NS_IMETHOD GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) override { return _to GetCommandStateParams(aCommandName, aParams, aCommandContext); } \
69 : NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandContext) override { return _to DoCommand(aCommandName, aCommandContext); } \
70 : NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) override { return _to DoCommandParams(aCommandName, aParams, aCommandContext); }
71 :
72 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
73 : #define NS_FORWARD_SAFE_NSICONTROLLERCOMMAND(_to) \
74 : NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(aCommandName, aCommandContext, _retval); } \
75 : NS_IMETHOD GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandStateParams(aCommandName, aParams, aCommandContext); } \
76 : NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aCommandName, aCommandContext); } \
77 : NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandParams(aCommandName, aParams, aCommandContext); }
78 :
79 : #if 0
80 : /* Use the code below as a template for the implementation class for this interface. */
81 :
82 : /* Header file */
83 : class nsControllerCommand : public nsIControllerCommand
84 : {
85 : public:
86 : NS_DECL_ISUPPORTS
87 : NS_DECL_NSICONTROLLERCOMMAND
88 :
89 : nsControllerCommand();
90 :
91 : private:
92 : ~nsControllerCommand();
93 :
94 : protected:
95 : /* additional members */
96 : };
97 :
98 : /* Implementation file */
99 : NS_IMPL_ISUPPORTS(nsControllerCommand, nsIControllerCommand)
100 :
101 : nsControllerCommand::nsControllerCommand()
102 : {
103 : /* member initializers and constructor code */
104 : }
105 :
106 : nsControllerCommand::~nsControllerCommand()
107 : {
108 : /* destructor code */
109 : }
110 :
111 : /* boolean isCommandEnabled (in string aCommandName, in nsISupports aCommandContext); */
112 : NS_IMETHODIMP nsControllerCommand::IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* void getCommandStateParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext); */
118 : NS_IMETHODIMP nsControllerCommand::GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* void doCommand (in string aCommandName, in nsISupports aCommandContext); */
124 : NS_IMETHODIMP nsControllerCommand::DoCommand(const char * aCommandName, nsISupports *aCommandContext)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* void doCommandParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext); */
130 : NS_IMETHODIMP nsControllerCommand::DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsIControllerCommand_h__ */
|