Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIScriptChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIScriptChannel_h__
6 : #define __gen_nsIScriptChannel_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsIScriptChannel */
19 : #define NS_ISCRIPTCHANNEL_IID_STR "33234b99-9588-4c7d-9da6-86b8b7cba565"
20 :
21 : #define NS_ISCRIPTCHANNEL_IID \
22 : {0x33234b99, 0x9588, 0x4c7d, \
23 : { 0x9d, 0xa6, 0x86, 0xb8, 0xb7, 0xcb, 0xa5, 0x65 }}
24 :
25 0 : class NS_NO_VTABLE nsIScriptChannel : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTCHANNEL_IID)
29 :
30 : enum {
31 : NO_EXECUTION = 0U,
32 : EXECUTE_NORMAL = 2U
33 : };
34 :
35 : /* attribute unsigned long executionPolicy; */
36 : NS_IMETHOD GetExecutionPolicy(uint32_t *aExecutionPolicy) = 0;
37 : NS_IMETHOD SetExecutionPolicy(uint32_t aExecutionPolicy) = 0;
38 :
39 : /* attribute boolean executeAsync; */
40 : NS_IMETHOD GetExecuteAsync(bool *aExecuteAsync) = 0;
41 : NS_IMETHOD SetExecuteAsync(bool aExecuteAsync) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptChannel, NS_ISCRIPTCHANNEL_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSISCRIPTCHANNEL \
49 : NS_IMETHOD GetExecutionPolicy(uint32_t *aExecutionPolicy) override; \
50 : NS_IMETHOD SetExecutionPolicy(uint32_t aExecutionPolicy) override; \
51 : NS_IMETHOD GetExecuteAsync(bool *aExecuteAsync) override; \
52 : NS_IMETHOD SetExecuteAsync(bool aExecuteAsync) override;
53 :
54 : /* Use this macro when declaring the members of this interface when the
55 : class doesn't implement the interface. This is useful for forwarding. */
56 : #define NS_DECL_NON_VIRTUAL_NSISCRIPTCHANNEL \
57 : nsresult GetExecutionPolicy(uint32_t *aExecutionPolicy); \
58 : nsresult SetExecutionPolicy(uint32_t aExecutionPolicy); \
59 : nsresult GetExecuteAsync(bool *aExecuteAsync); \
60 : nsresult SetExecuteAsync(bool aExecuteAsync);
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
63 : #define NS_FORWARD_NSISCRIPTCHANNEL(_to) \
64 : NS_IMETHOD GetExecutionPolicy(uint32_t *aExecutionPolicy) override { return _to GetExecutionPolicy(aExecutionPolicy); } \
65 : NS_IMETHOD SetExecutionPolicy(uint32_t aExecutionPolicy) override { return _to SetExecutionPolicy(aExecutionPolicy); } \
66 : NS_IMETHOD GetExecuteAsync(bool *aExecuteAsync) override { return _to GetExecuteAsync(aExecuteAsync); } \
67 : NS_IMETHOD SetExecuteAsync(bool aExecuteAsync) override { return _to SetExecuteAsync(aExecuteAsync); }
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
70 : #define NS_FORWARD_SAFE_NSISCRIPTCHANNEL(_to) \
71 : NS_IMETHOD GetExecutionPolicy(uint32_t *aExecutionPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecutionPolicy(aExecutionPolicy); } \
72 : NS_IMETHOD SetExecutionPolicy(uint32_t aExecutionPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExecutionPolicy(aExecutionPolicy); } \
73 : NS_IMETHOD GetExecuteAsync(bool *aExecuteAsync) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecuteAsync(aExecuteAsync); } \
74 : NS_IMETHOD SetExecuteAsync(bool aExecuteAsync) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExecuteAsync(aExecuteAsync); }
75 :
76 : #if 0
77 : /* Use the code below as a template for the implementation class for this interface. */
78 :
79 : /* Header file */
80 : class nsScriptChannel : public nsIScriptChannel
81 : {
82 : public:
83 : NS_DECL_ISUPPORTS
84 : NS_DECL_NSISCRIPTCHANNEL
85 :
86 : nsScriptChannel();
87 :
88 : private:
89 : ~nsScriptChannel();
90 :
91 : protected:
92 : /* additional members */
93 : };
94 :
95 : /* Implementation file */
96 : NS_IMPL_ISUPPORTS(nsScriptChannel, nsIScriptChannel)
97 :
98 : nsScriptChannel::nsScriptChannel()
99 : {
100 : /* member initializers and constructor code */
101 : }
102 :
103 : nsScriptChannel::~nsScriptChannel()
104 : {
105 : /* destructor code */
106 : }
107 :
108 : /* attribute unsigned long executionPolicy; */
109 : NS_IMETHODIMP nsScriptChannel::GetExecutionPolicy(uint32_t *aExecutionPolicy)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 : NS_IMETHODIMP nsScriptChannel::SetExecutionPolicy(uint32_t aExecutionPolicy)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* attribute boolean executeAsync; */
119 : NS_IMETHODIMP nsScriptChannel::GetExecuteAsync(bool *aExecuteAsync)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 : NS_IMETHODIMP nsScriptChannel::SetExecuteAsync(bool aExecuteAsync)
124 : {
125 : return NS_ERROR_NOT_IMPLEMENTED;
126 : }
127 :
128 : /* End of implementation class template. */
129 : #endif
130 :
131 :
132 : #endif /* __gen_nsIScriptChannel_h__ */
|