Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIShellService.idl
3 : */
4 :
5 : #ifndef __gen_nsIShellService_h__
6 : #define __gen_nsIShellService_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 nsIDOMElement; /* forward declaration */
18 :
19 : class nsIFile; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIShellService */
23 : #define NS_ISHELLSERVICE_IID_STR "2d1a95e4-5bd8-4eeb-b0a8-c1455fd2a357"
24 :
25 : #define NS_ISHELLSERVICE_IID \
26 : {0x2d1a95e4, 0x5bd8, 0x4eeb, \
27 : { 0xb0, 0xa8, 0xc1, 0x45, 0x5f, 0xd2, 0xa3, 0x57 }}
28 :
29 0 : class NS_NO_VTABLE nsIShellService : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHELLSERVICE_IID)
33 :
34 : /* boolean isDefaultBrowser (in boolean aStartupCheck, [optional] in boolean aForAllTypes); */
35 : NS_IMETHOD IsDefaultBrowser(bool aStartupCheck, bool aForAllTypes, bool *_retval) = 0;
36 :
37 : /* void setDefaultBrowser (in boolean aClaimAllTypes, in boolean aForAllUsers); */
38 : NS_IMETHOD SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers) = 0;
39 :
40 : enum {
41 : BACKGROUND_TILE = 1,
42 : BACKGROUND_STRETCH = 2,
43 : BACKGROUND_CENTER = 3,
44 : BACKGROUND_FILL = 4,
45 : BACKGROUND_FIT = 5
46 : };
47 :
48 : /* void setDesktopBackground (in nsIDOMElement aElement, in long aPosition); */
49 : NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, int32_t aPosition) = 0;
50 :
51 : enum {
52 : APPLICATION_MAIL = 0,
53 : APPLICATION_NEWS = 1
54 : };
55 :
56 : /* void openApplication (in long aApplication); */
57 : NS_IMETHOD OpenApplication(int32_t aApplication) = 0;
58 :
59 : /* attribute unsigned long desktopBackgroundColor; */
60 : NS_IMETHOD GetDesktopBackgroundColor(uint32_t *aDesktopBackgroundColor) = 0;
61 : NS_IMETHOD SetDesktopBackgroundColor(uint32_t aDesktopBackgroundColor) = 0;
62 :
63 : /* void openApplicationWithURI (in nsIFile aApplication, in ACString aURI); */
64 : NS_IMETHOD OpenApplicationWithURI(nsIFile *aApplication, const nsACString & aURI) = 0;
65 :
66 : /* readonly attribute nsIFile defaultFeedReader; */
67 : NS_IMETHOD GetDefaultFeedReader(nsIFile * *aDefaultFeedReader) = 0;
68 :
69 : };
70 :
71 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIShellService, NS_ISHELLSERVICE_IID)
72 :
73 : /* Use this macro when declaring classes that implement this interface. */
74 : #define NS_DECL_NSISHELLSERVICE \
75 : NS_IMETHOD IsDefaultBrowser(bool aStartupCheck, bool aForAllTypes, bool *_retval) override; \
76 : NS_IMETHOD SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers) override; \
77 : NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, int32_t aPosition) override; \
78 : NS_IMETHOD OpenApplication(int32_t aApplication) override; \
79 : NS_IMETHOD GetDesktopBackgroundColor(uint32_t *aDesktopBackgroundColor) override; \
80 : NS_IMETHOD SetDesktopBackgroundColor(uint32_t aDesktopBackgroundColor) override; \
81 : NS_IMETHOD OpenApplicationWithURI(nsIFile *aApplication, const nsACString & aURI) override; \
82 : NS_IMETHOD GetDefaultFeedReader(nsIFile * *aDefaultFeedReader) override;
83 :
84 : /* Use this macro when declaring the members of this interface when the
85 : class doesn't implement the interface. This is useful for forwarding. */
86 : #define NS_DECL_NON_VIRTUAL_NSISHELLSERVICE \
87 : nsresult IsDefaultBrowser(bool aStartupCheck, bool aForAllTypes, bool *_retval); \
88 : nsresult SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers); \
89 : nsresult SetDesktopBackground(nsIDOMElement *aElement, int32_t aPosition); \
90 : nsresult OpenApplication(int32_t aApplication); \
91 : nsresult GetDesktopBackgroundColor(uint32_t *aDesktopBackgroundColor); \
92 : nsresult SetDesktopBackgroundColor(uint32_t aDesktopBackgroundColor); \
93 : nsresult OpenApplicationWithURI(nsIFile *aApplication, const nsACString & aURI); \
94 : nsresult GetDefaultFeedReader(nsIFile * *aDefaultFeedReader);
95 :
96 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
97 : #define NS_FORWARD_NSISHELLSERVICE(_to) \
98 : NS_IMETHOD IsDefaultBrowser(bool aStartupCheck, bool aForAllTypes, bool *_retval) override { return _to IsDefaultBrowser(aStartupCheck, aForAllTypes, _retval); } \
99 : NS_IMETHOD SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers) override { return _to SetDefaultBrowser(aClaimAllTypes, aForAllUsers); } \
100 : NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, int32_t aPosition) override { return _to SetDesktopBackground(aElement, aPosition); } \
101 : NS_IMETHOD OpenApplication(int32_t aApplication) override { return _to OpenApplication(aApplication); } \
102 : NS_IMETHOD GetDesktopBackgroundColor(uint32_t *aDesktopBackgroundColor) override { return _to GetDesktopBackgroundColor(aDesktopBackgroundColor); } \
103 : NS_IMETHOD SetDesktopBackgroundColor(uint32_t aDesktopBackgroundColor) override { return _to SetDesktopBackgroundColor(aDesktopBackgroundColor); } \
104 : NS_IMETHOD OpenApplicationWithURI(nsIFile *aApplication, const nsACString & aURI) override { return _to OpenApplicationWithURI(aApplication, aURI); } \
105 : NS_IMETHOD GetDefaultFeedReader(nsIFile * *aDefaultFeedReader) override { return _to GetDefaultFeedReader(aDefaultFeedReader); }
106 :
107 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
108 : #define NS_FORWARD_SAFE_NSISHELLSERVICE(_to) \
109 : NS_IMETHOD IsDefaultBrowser(bool aStartupCheck, bool aForAllTypes, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDefaultBrowser(aStartupCheck, aForAllTypes, _retval); } \
110 : NS_IMETHOD SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultBrowser(aClaimAllTypes, aForAllUsers); } \
111 : NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, int32_t aPosition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesktopBackground(aElement, aPosition); } \
112 : NS_IMETHOD OpenApplication(int32_t aApplication) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenApplication(aApplication); } \
113 : NS_IMETHOD GetDesktopBackgroundColor(uint32_t *aDesktopBackgroundColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesktopBackgroundColor(aDesktopBackgroundColor); } \
114 : NS_IMETHOD SetDesktopBackgroundColor(uint32_t aDesktopBackgroundColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesktopBackgroundColor(aDesktopBackgroundColor); } \
115 : NS_IMETHOD OpenApplicationWithURI(nsIFile *aApplication, const nsACString & aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenApplicationWithURI(aApplication, aURI); } \
116 : NS_IMETHOD GetDefaultFeedReader(nsIFile * *aDefaultFeedReader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultFeedReader(aDefaultFeedReader); }
117 :
118 : #if 0
119 : /* Use the code below as a template for the implementation class for this interface. */
120 :
121 : /* Header file */
122 : class nsShellService : public nsIShellService
123 : {
124 : public:
125 : NS_DECL_ISUPPORTS
126 : NS_DECL_NSISHELLSERVICE
127 :
128 : nsShellService();
129 :
130 : private:
131 : ~nsShellService();
132 :
133 : protected:
134 : /* additional members */
135 : };
136 :
137 : /* Implementation file */
138 : NS_IMPL_ISUPPORTS(nsShellService, nsIShellService)
139 :
140 : nsShellService::nsShellService()
141 : {
142 : /* member initializers and constructor code */
143 : }
144 :
145 : nsShellService::~nsShellService()
146 : {
147 : /* destructor code */
148 : }
149 :
150 : /* boolean isDefaultBrowser (in boolean aStartupCheck, [optional] in boolean aForAllTypes); */
151 : NS_IMETHODIMP nsShellService::IsDefaultBrowser(bool aStartupCheck, bool aForAllTypes, bool *_retval)
152 : {
153 : return NS_ERROR_NOT_IMPLEMENTED;
154 : }
155 :
156 : /* void setDefaultBrowser (in boolean aClaimAllTypes, in boolean aForAllUsers); */
157 : NS_IMETHODIMP nsShellService::SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers)
158 : {
159 : return NS_ERROR_NOT_IMPLEMENTED;
160 : }
161 :
162 : /* void setDesktopBackground (in nsIDOMElement aElement, in long aPosition); */
163 : NS_IMETHODIMP nsShellService::SetDesktopBackground(nsIDOMElement *aElement, int32_t aPosition)
164 : {
165 : return NS_ERROR_NOT_IMPLEMENTED;
166 : }
167 :
168 : /* void openApplication (in long aApplication); */
169 : NS_IMETHODIMP nsShellService::OpenApplication(int32_t aApplication)
170 : {
171 : return NS_ERROR_NOT_IMPLEMENTED;
172 : }
173 :
174 : /* attribute unsigned long desktopBackgroundColor; */
175 : NS_IMETHODIMP nsShellService::GetDesktopBackgroundColor(uint32_t *aDesktopBackgroundColor)
176 : {
177 : return NS_ERROR_NOT_IMPLEMENTED;
178 : }
179 : NS_IMETHODIMP nsShellService::SetDesktopBackgroundColor(uint32_t aDesktopBackgroundColor)
180 : {
181 : return NS_ERROR_NOT_IMPLEMENTED;
182 : }
183 :
184 : /* void openApplicationWithURI (in nsIFile aApplication, in ACString aURI); */
185 : NS_IMETHODIMP nsShellService::OpenApplicationWithURI(nsIFile *aApplication, const nsACString & aURI)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* readonly attribute nsIFile defaultFeedReader; */
191 : NS_IMETHODIMP nsShellService::GetDefaultFeedReader(nsIFile * *aDefaultFeedReader)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* End of implementation class template. */
197 : #endif
198 :
199 :
200 : #endif /* __gen_nsIShellService_h__ */
|