1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/alerts/nsIAlertsService.idl
3 : */
4 :
5 : #ifndef __gen_nsIAlertsService_h__
6 : #define __gen_nsIAlertsService_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIObserver_h__
14 : #include "nsIObserver.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: nsIAlertsService */
23 : #define NS_IALERTSSERVICE_IID_STR "e177399e-2e31-4019-aed3-cba63ce9fa99"
24 :
25 : #define NS_IALERTSSERVICE_IID \
26 : {0xe177399e, 0x2e31, 0x4019, \
27 : { 0xae, 0xd3, 0xcb, 0xa6, 0x3c, 0xe9, 0xfa, 0x99 }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAlertsService : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTSSERVICE_IID)
33 :
34 : /* void showAlertNotification (in AString imageUrl, in AString title, in AString text, [optional] in boolean textClickable, [optional] in AString cookie, [optional] in nsIObserver alertListener, [optional] in AString name); */
35 : NS_SCRIPTABLE NS_IMETHOD ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertsService, NS_IALERTSSERVICE_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSIALERTSSERVICE \
43 : NS_SCRIPTABLE NS_IMETHOD ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name);
44 :
45 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
46 : #define NS_FORWARD_NSIALERTSSERVICE(_to) \
47 : NS_SCRIPTABLE NS_IMETHOD ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name) { return _to ShowAlertNotification(imageUrl, title, text, textClickable, cookie, alertListener, name); }
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
50 : #define NS_FORWARD_SAFE_NSIALERTSSERVICE(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowAlertNotification(imageUrl, title, text, textClickable, cookie, alertListener, name); }
52 :
53 : #if 0
54 : /* Use the code below as a template for the implementation class for this interface. */
55 :
56 : /* Header file */
57 : class nsAlertsService : public nsIAlertsService
58 : {
59 : public:
60 : NS_DECL_ISUPPORTS
61 : NS_DECL_NSIALERTSSERVICE
62 :
63 : nsAlertsService();
64 :
65 : private:
66 : ~nsAlertsService();
67 :
68 : protected:
69 : /* additional members */
70 : };
71 :
72 : /* Implementation file */
73 : NS_IMPL_ISUPPORTS1(nsAlertsService, nsIAlertsService)
74 :
75 : nsAlertsService::nsAlertsService()
76 : {
77 : /* member initializers and constructor code */
78 : }
79 :
80 : nsAlertsService::~nsAlertsService()
81 : {
82 : /* destructor code */
83 : }
84 :
85 : /* void showAlertNotification (in AString imageUrl, in AString title, in AString text, [optional] in boolean textClickable, [optional] in AString cookie, [optional] in nsIObserver alertListener, [optional] in AString name); */
86 : NS_IMETHODIMP nsAlertsService::ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name)
87 : {
88 : return NS_ERROR_NOT_IMPLEMENTED;
89 : }
90 :
91 : /* End of implementation class template. */
92 : #endif
93 :
94 :
95 : /* starting interface: nsIAlertsProgressListener */
96 : #define NS_IALERTSPROGRESSLISTENER_IID_STR "df1bd4b0-3a8c-40e6-806a-203f38b0bd9f"
97 :
98 : #define NS_IALERTSPROGRESSLISTENER_IID \
99 : {0xdf1bd4b0, 0x3a8c, 0x40e6, \
100 : { 0x80, 0x6a, 0x20, 0x3f, 0x38, 0xb0, 0xbd, 0x9f }}
101 :
102 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAlertsProgressListener : public nsISupports {
103 : public:
104 :
105 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTSPROGRESSLISTENER_IID)
106 :
107 : /* void onProgress (in AString name, in long long progress, in long long progressMax, [optional] in AString text); */
108 : NS_SCRIPTABLE NS_IMETHOD OnProgress(const nsAString & name, PRInt64 progress, PRInt64 progressMax, const nsAString & text) = 0;
109 :
110 : /* void onCancel (in AString name); */
111 : NS_SCRIPTABLE NS_IMETHOD OnCancel(const nsAString & name) = 0;
112 :
113 : };
114 :
115 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertsProgressListener, NS_IALERTSPROGRESSLISTENER_IID)
116 :
117 : /* Use this macro when declaring classes that implement this interface. */
118 : #define NS_DECL_NSIALERTSPROGRESSLISTENER \
119 : NS_SCRIPTABLE NS_IMETHOD OnProgress(const nsAString & name, PRInt64 progress, PRInt64 progressMax, const nsAString & text); \
120 : NS_SCRIPTABLE NS_IMETHOD OnCancel(const nsAString & name);
121 :
122 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
123 : #define NS_FORWARD_NSIALERTSPROGRESSLISTENER(_to) \
124 : NS_SCRIPTABLE NS_IMETHOD OnProgress(const nsAString & name, PRInt64 progress, PRInt64 progressMax, const nsAString & text) { return _to OnProgress(name, progress, progressMax, text); } \
125 : NS_SCRIPTABLE NS_IMETHOD OnCancel(const nsAString & name) { return _to OnCancel(name); }
126 :
127 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
128 : #define NS_FORWARD_SAFE_NSIALERTSPROGRESSLISTENER(_to) \
129 : NS_SCRIPTABLE NS_IMETHOD OnProgress(const nsAString & name, PRInt64 progress, PRInt64 progressMax, const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProgress(name, progress, progressMax, text); } \
130 : NS_SCRIPTABLE NS_IMETHOD OnCancel(const nsAString & name) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCancel(name); }
131 :
132 : #if 0
133 : /* Use the code below as a template for the implementation class for this interface. */
134 :
135 : /* Header file */
136 : class nsAlertsProgressListener : public nsIAlertsProgressListener
137 : {
138 : public:
139 : NS_DECL_ISUPPORTS
140 : NS_DECL_NSIALERTSPROGRESSLISTENER
141 :
142 : nsAlertsProgressListener();
143 :
144 : private:
145 : ~nsAlertsProgressListener();
146 :
147 : protected:
148 : /* additional members */
149 : };
150 :
151 : /* Implementation file */
152 : NS_IMPL_ISUPPORTS1(nsAlertsProgressListener, nsIAlertsProgressListener)
153 :
154 : nsAlertsProgressListener::nsAlertsProgressListener()
155 : {
156 : /* member initializers and constructor code */
157 : }
158 :
159 : nsAlertsProgressListener::~nsAlertsProgressListener()
160 : {
161 : /* destructor code */
162 : }
163 :
164 : /* void onProgress (in AString name, in long long progress, in long long progressMax, [optional] in AString text); */
165 : NS_IMETHODIMP nsAlertsProgressListener::OnProgress(const nsAString & name, PRInt64 progress, PRInt64 progressMax, const nsAString & text)
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* void onCancel (in AString name); */
171 : NS_IMETHODIMP nsAlertsProgressListener::OnCancel(const nsAString & name)
172 : {
173 : return NS_ERROR_NOT_IMPLEMENTED;
174 : }
175 :
176 : /* End of implementation class template. */
177 : #endif
178 :
179 :
180 : #endif /* __gen_nsIAlertsService_h__ */
|