Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPrintStatusFeedback.idl
3 : */
4 :
5 : #ifndef __gen_nsIPrintStatusFeedback_h__
6 : #define __gen_nsIPrintStatusFeedback_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 : class nsIDocShell; /* forward declaration */
18 :
19 : class mozIDOMWindowProxy; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIPrintStatusFeedback */
23 : #define NS_IPRINTSTATUSFEEDBACK_IID_STR "8eb6ffc9-715c-487e-927c-c56139229548"
24 :
25 : #define NS_IPRINTSTATUSFEEDBACK_IID \
26 : {0x8eb6ffc9, 0x715c, 0x487e, \
27 : { 0x92, 0x7c, 0xc5, 0x61, 0x39, 0x22, 0x95, 0x48 }}
28 :
29 0 : class NS_NO_VTABLE nsIPrintStatusFeedback : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINTSTATUSFEEDBACK_IID)
33 :
34 : /* void showStatusString (in wstring status); */
35 : NS_IMETHOD ShowStatusString(const char16_t * status) = 0;
36 :
37 : /* void startMeteors (); */
38 : NS_IMETHOD StartMeteors(void) = 0;
39 :
40 : /* void stopMeteors (); */
41 : NS_IMETHOD StopMeteors(void) = 0;
42 :
43 : /* void showProgress (in long percent); */
44 : NS_IMETHOD ShowProgress(int32_t percent) = 0;
45 :
46 : /* [noscript] void setDocShell (in nsIDocShell shell, in mozIDOMWindowProxy window); */
47 : NS_IMETHOD SetDocShell(nsIDocShell *shell, mozIDOMWindowProxy *window) = 0;
48 :
49 : /* void closeWindow (); */
50 : NS_IMETHOD CloseWindow(void) = 0;
51 :
52 : };
53 :
54 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrintStatusFeedback, NS_IPRINTSTATUSFEEDBACK_IID)
55 :
56 : /* Use this macro when declaring classes that implement this interface. */
57 : #define NS_DECL_NSIPRINTSTATUSFEEDBACK \
58 : NS_IMETHOD ShowStatusString(const char16_t * status) override; \
59 : NS_IMETHOD StartMeteors(void) override; \
60 : NS_IMETHOD StopMeteors(void) override; \
61 : NS_IMETHOD ShowProgress(int32_t percent) override; \
62 : NS_IMETHOD SetDocShell(nsIDocShell *shell, mozIDOMWindowProxy *window) override; \
63 : NS_IMETHOD CloseWindow(void) override;
64 :
65 : /* Use this macro when declaring the members of this interface when the
66 : class doesn't implement the interface. This is useful for forwarding. */
67 : #define NS_DECL_NON_VIRTUAL_NSIPRINTSTATUSFEEDBACK \
68 : nsresult ShowStatusString(const char16_t * status); \
69 : nsresult StartMeteors(void); \
70 : nsresult StopMeteors(void); \
71 : nsresult ShowProgress(int32_t percent); \
72 : nsresult SetDocShell(nsIDocShell *shell, mozIDOMWindowProxy *window); \
73 : nsresult CloseWindow(void);
74 :
75 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
76 : #define NS_FORWARD_NSIPRINTSTATUSFEEDBACK(_to) \
77 : NS_IMETHOD ShowStatusString(const char16_t * status) override { return _to ShowStatusString(status); } \
78 : NS_IMETHOD StartMeteors(void) override { return _to StartMeteors(); } \
79 : NS_IMETHOD StopMeteors(void) override { return _to StopMeteors(); } \
80 : NS_IMETHOD ShowProgress(int32_t percent) override { return _to ShowProgress(percent); } \
81 : NS_IMETHOD SetDocShell(nsIDocShell *shell, mozIDOMWindowProxy *window) override { return _to SetDocShell(shell, window); } \
82 : NS_IMETHOD CloseWindow(void) override { return _to CloseWindow(); }
83 :
84 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
85 : #define NS_FORWARD_SAFE_NSIPRINTSTATUSFEEDBACK(_to) \
86 : NS_IMETHOD ShowStatusString(const char16_t * status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowStatusString(status); } \
87 : NS_IMETHOD StartMeteors(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartMeteors(); } \
88 : NS_IMETHOD StopMeteors(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopMeteors(); } \
89 : NS_IMETHOD ShowProgress(int32_t percent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowProgress(percent); } \
90 : NS_IMETHOD SetDocShell(nsIDocShell *shell, mozIDOMWindowProxy *window) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocShell(shell, window); } \
91 : NS_IMETHOD CloseWindow(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseWindow(); }
92 :
93 : #if 0
94 : /* Use the code below as a template for the implementation class for this interface. */
95 :
96 : /* Header file */
97 : class nsPrintStatusFeedback : public nsIPrintStatusFeedback
98 : {
99 : public:
100 : NS_DECL_ISUPPORTS
101 : NS_DECL_NSIPRINTSTATUSFEEDBACK
102 :
103 : nsPrintStatusFeedback();
104 :
105 : private:
106 : ~nsPrintStatusFeedback();
107 :
108 : protected:
109 : /* additional members */
110 : };
111 :
112 : /* Implementation file */
113 : NS_IMPL_ISUPPORTS(nsPrintStatusFeedback, nsIPrintStatusFeedback)
114 :
115 : nsPrintStatusFeedback::nsPrintStatusFeedback()
116 : {
117 : /* member initializers and constructor code */
118 : }
119 :
120 : nsPrintStatusFeedback::~nsPrintStatusFeedback()
121 : {
122 : /* destructor code */
123 : }
124 :
125 : /* void showStatusString (in wstring status); */
126 : NS_IMETHODIMP nsPrintStatusFeedback::ShowStatusString(const char16_t * status)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* void startMeteors (); */
132 : NS_IMETHODIMP nsPrintStatusFeedback::StartMeteors()
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* void stopMeteors (); */
138 : NS_IMETHODIMP nsPrintStatusFeedback::StopMeteors()
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* void showProgress (in long percent); */
144 : NS_IMETHODIMP nsPrintStatusFeedback::ShowProgress(int32_t percent)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* [noscript] void setDocShell (in nsIDocShell shell, in mozIDOMWindowProxy window); */
150 : NS_IMETHODIMP nsPrintStatusFeedback::SetDocShell(nsIDocShell *shell, mozIDOMWindowProxy *window)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void closeWindow (); */
156 : NS_IMETHODIMP nsPrintStatusFeedback::CloseWindow()
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* End of implementation class template. */
162 : #endif
163 :
164 :
165 : #endif /* __gen_nsIPrintStatusFeedback_h__ */
|