Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 6 : class NS_NO_VTABLE nsIControllerContext : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTROLLERCONTEXT_IID)
33 :
34 : /* void init (in nsIControllerCommandTable aCommandTable); */
35 : NS_IMETHOD Init(nsIControllerCommandTable *aCommandTable) = 0;
36 :
37 : /* void setCommandContext (in nsISupports aCommandContext); */
38 : 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_IMETHOD Init(nsIControllerCommandTable *aCommandTable) override; \
47 : NS_IMETHOD SetCommandContext(nsISupports *aCommandContext) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSICONTROLLERCONTEXT \
52 : nsresult Init(nsIControllerCommandTable *aCommandTable); \
53 : nsresult SetCommandContext(nsISupports *aCommandContext);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSICONTROLLERCONTEXT(_to) \
57 : NS_IMETHOD Init(nsIControllerCommandTable *aCommandTable) override { return _to Init(aCommandTable); } \
58 : NS_IMETHOD SetCommandContext(nsISupports *aCommandContext) override { return _to SetCommandContext(aCommandContext); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSICONTROLLERCONTEXT(_to) \
62 : NS_IMETHOD Init(nsIControllerCommandTable *aCommandTable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aCommandTable); } \
63 : NS_IMETHOD SetCommandContext(nsISupports *aCommandContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCommandContext(aCommandContext); }
64 :
65 : #if 0
66 : /* Use the code below as a template for the implementation class for this interface. */
67 :
68 : /* Header file */
69 : class nsControllerContext : public nsIControllerContext
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSICONTROLLERCONTEXT
74 :
75 : nsControllerContext();
76 :
77 : private:
78 : ~nsControllerContext();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS(nsControllerContext, nsIControllerContext)
86 :
87 : nsControllerContext::nsControllerContext()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsControllerContext::~nsControllerContext()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* void init (in nsIControllerCommandTable aCommandTable); */
98 : NS_IMETHODIMP nsControllerContext::Init(nsIControllerCommandTable *aCommandTable)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* void setCommandContext (in nsISupports aCommandContext); */
104 : NS_IMETHODIMP nsControllerContext::SetCommandContext(nsISupports *aCommandContext)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* End of implementation class template. */
110 : #endif
111 :
112 :
113 : #endif /* __gen_nsIControllerContext_h__ */
|