1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/components/commandhandler/public/nsIControllerContext.idl
3 : */
4 :
5 : #ifndef __gen_nsIControllerContext_h__
6 : #define __gen_nsIControllerContext_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIControllerCommandTable_h__
14 : #include "nsIControllerCommandTable.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: nsIControllerContext */
23 : #define NS_ICONTROLLERCONTEXT_IID_STR "47b82b60-a36f-4167-8072-6f421151ed50"
24 :
25 : #define NS_ICONTROLLERCONTEXT_IID \
26 : {0x47b82b60, 0xa36f, 0x4167, \
27 : { 0x80, 0x72, 0x6f, 0x42, 0x11, 0x51, 0xed, 0x50 }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIControllerContext : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTROLLERCONTEXT_IID)
33 :
34 : /* void init (in nsIControllerCommandTable aCommandTable); */
35 : NS_SCRIPTABLE NS_IMETHOD Init(nsIControllerCommandTable *aCommandTable) = 0;
36 :
37 : /* void setCommandContext (in nsISupports aCommandContext); */
38 : NS_SCRIPTABLE NS_IMETHOD SetCommandContext(nsISupports *aCommandContext) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIControllerContext, NS_ICONTROLLERCONTEXT_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSICONTROLLERCONTEXT \
46 : NS_SCRIPTABLE NS_IMETHOD Init(nsIControllerCommandTable *aCommandTable); \
47 : NS_SCRIPTABLE NS_IMETHOD SetCommandContext(nsISupports *aCommandContext);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSICONTROLLERCONTEXT(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD Init(nsIControllerCommandTable *aCommandTable) { return _to Init(aCommandTable); } \
52 : NS_SCRIPTABLE NS_IMETHOD SetCommandContext(nsISupports *aCommandContext) { return _to SetCommandContext(aCommandContext); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSICONTROLLERCONTEXT(_to) \
56 : NS_SCRIPTABLE NS_IMETHOD Init(nsIControllerCommandTable *aCommandTable) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aCommandTable); } \
57 : NS_SCRIPTABLE NS_IMETHOD SetCommandContext(nsISupports *aCommandContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCommandContext(aCommandContext); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsControllerContext : public nsIControllerContext
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSICONTROLLERCONTEXT
68 :
69 : nsControllerContext();
70 :
71 : private:
72 : ~nsControllerContext();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsControllerContext, nsIControllerContext)
80 :
81 : nsControllerContext::nsControllerContext()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsControllerContext::~nsControllerContext()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* void init (in nsIControllerCommandTable aCommandTable); */
92 : NS_IMETHODIMP nsControllerContext::Init(nsIControllerCommandTable *aCommandTable)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* void setCommandContext (in nsISupports aCommandContext); */
98 : NS_IMETHODIMP nsControllerContext::SetCommandContext(nsISupports *aCommandContext)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* End of implementation class template. */
104 : #endif
105 :
106 :
107 : #endif /* __gen_nsIControllerContext_h__ */
|