1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/components/commandhandler/public/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 0 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval NS_OUTPARAM) = 0;
36 :
37 : /* void getCommandStateParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext); */
38 : NS_SCRIPTABLE NS_IMETHOD GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) = 0;
39 :
40 : /* void doCommand (in string aCommandName, in nsISupports aCommandContext); */
41 : NS_SCRIPTABLE NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandContext) = 0;
42 :
43 : /* void doCommandParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext); */
44 : NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval NS_OUTPARAM); \
53 : NS_SCRIPTABLE NS_IMETHOD GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext); \
54 : NS_SCRIPTABLE NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandContext); \
55 : NS_SCRIPTABLE NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSICONTROLLERCOMMAND(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval NS_OUTPARAM) { return _to IsCommandEnabled(aCommandName, aCommandContext, _retval); } \
60 : NS_SCRIPTABLE NS_IMETHOD GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) { return _to GetCommandStateParams(aCommandName, aParams, aCommandContext); } \
61 : NS_SCRIPTABLE NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandContext) { return _to DoCommand(aCommandName, aCommandContext); } \
62 : NS_SCRIPTABLE NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) { return _to DoCommandParams(aCommandName, aParams, aCommandContext); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSICONTROLLERCOMMAND(_to) \
66 : NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(aCommandName, aCommandContext, _retval); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandStateParams(aCommandName, aParams, aCommandContext); } \
68 : NS_SCRIPTABLE NS_IMETHOD DoCommand(const char * aCommandName, nsISupports *aCommandContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aCommandName, aCommandContext); } \
69 : NS_SCRIPTABLE NS_IMETHOD DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandParams(aCommandName, aParams, aCommandContext); }
70 :
71 : #if 0
72 : /* Use the code below as a template for the implementation class for this interface. */
73 :
74 : /* Header file */
75 : class nsControllerCommand : public nsIControllerCommand
76 : {
77 : public:
78 : NS_DECL_ISUPPORTS
79 : NS_DECL_NSICONTROLLERCOMMAND
80 :
81 : nsControllerCommand();
82 :
83 : private:
84 : ~nsControllerCommand();
85 :
86 : protected:
87 : /* additional members */
88 : };
89 :
90 : /* Implementation file */
91 : NS_IMPL_ISUPPORTS1(nsControllerCommand, nsIControllerCommand)
92 :
93 : nsControllerCommand::nsControllerCommand()
94 : {
95 : /* member initializers and constructor code */
96 : }
97 :
98 : nsControllerCommand::~nsControllerCommand()
99 : {
100 : /* destructor code */
101 : }
102 :
103 : /* boolean isCommandEnabled (in string aCommandName, in nsISupports aCommandContext); */
104 : NS_IMETHODIMP nsControllerCommand::IsCommandEnabled(const char * aCommandName, nsISupports *aCommandContext, bool *_retval NS_OUTPARAM)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* void getCommandStateParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext); */
110 : NS_IMETHODIMP nsControllerCommand::GetCommandStateParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* void doCommand (in string aCommandName, in nsISupports aCommandContext); */
116 : NS_IMETHODIMP nsControllerCommand::DoCommand(const char * aCommandName, nsISupports *aCommandContext)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* void doCommandParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext); */
122 : NS_IMETHODIMP nsControllerCommand::DoCommandParams(const char * aCommandName, nsICommandParams *aParams, nsISupports *aCommandContext)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* End of implementation class template. */
128 : #endif
129 :
130 :
131 : #endif /* __gen_nsIControllerCommand_h__ */
|