Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIParentalControlsService.idl
3 : */
4 :
5 : #ifndef __gen_nsIParentalControlsService_h__
6 : #define __gen_nsIParentalControlsService_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 nsIURI; /* forward declaration */
18 :
19 : class nsIFile; /* forward declaration */
20 :
21 : class nsIInterfaceRequestor; /* forward declaration */
22 :
23 : class nsIArray; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIParentalControlsService */
27 : #define NS_IPARENTALCONTROLSSERVICE_IID_STR "2e97e5dd-467b-4aea-a1bb-6773c0f2beb0"
28 :
29 : #define NS_IPARENTALCONTROLSSERVICE_IID \
30 : {0x2e97e5dd, 0x467b, 0x4aea, \
31 : { 0xa1, 0xbb, 0x67, 0x73, 0xc0, 0xf2, 0xbe, 0xb0 }}
32 :
33 2 : class NS_NO_VTABLE nsIParentalControlsService : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPARENTALCONTROLSSERVICE_IID)
37 :
38 : enum {
39 : DOWNLOAD = 1,
40 : INSTALL_EXTENSION = 2,
41 : INSTALL_APP = 3,
42 : BROWSE = 4,
43 : SHARE = 5,
44 : BOOKMARK = 6,
45 : ADD_CONTACT = 7,
46 : SET_IMAGE = 8,
47 : MODIFY_ACCOUNTS = 9,
48 : REMOTE_DEBUGGING = 10,
49 : IMPORT_SETTINGS = 11,
50 : PRIVATE_BROWSING = 12,
51 : DATA_CHOICES = 13,
52 : CLEAR_HISTORY = 14,
53 : MASTER_PASSWORD = 15,
54 : GUEST_BROWSING = 16,
55 : ADVANCED_SETTINGS = 17,
56 : CAMERA_MICROPHONE = 18,
57 : BLOCK_LIST = 19,
58 : TELEMETRY = 20,
59 : HEALTH_REPORT = 21,
60 : DEFAULT_THEME = 22
61 : };
62 :
63 : /* readonly attribute boolean parentalControlsEnabled; */
64 : NS_IMETHOD GetParentalControlsEnabled(bool *aParentalControlsEnabled) = 0;
65 :
66 : /* readonly attribute boolean blockFileDownloadsEnabled; */
67 : NS_IMETHOD GetBlockFileDownloadsEnabled(bool *aBlockFileDownloadsEnabled) = 0;
68 :
69 : /* boolean isAllowed (in short aAction, [optional] in nsIURI aUri); */
70 : NS_IMETHOD IsAllowed(int16_t aAction, nsIURI *aUri, bool *_retval) = 0;
71 :
72 : /* boolean requestURIOverride (in nsIURI aTarget, [optional] in nsIInterfaceRequestor aWindowContext); */
73 : NS_IMETHOD RequestURIOverride(nsIURI *aTarget, nsIInterfaceRequestor *aWindowContext, bool *_retval) = 0;
74 :
75 : /* boolean requestURIOverrides (in nsIArray aTargets, [optional] in nsIInterfaceRequestor aWindowContext); */
76 : NS_IMETHOD RequestURIOverrides(nsIArray *aTargets, nsIInterfaceRequestor *aWindowContext, bool *_retval) = 0;
77 :
78 : /* readonly attribute boolean loggingEnabled; */
79 : NS_IMETHOD GetLoggingEnabled(bool *aLoggingEnabled) = 0;
80 :
81 : enum {
82 : ePCLog_URIVisit = 1,
83 : ePCLog_FileDownload = 2
84 : };
85 :
86 : /* void log (in short aEntryType, in boolean aFlag, in nsIURI aSource, [optional] in nsIFile aTarget); */
87 : NS_IMETHOD Log(int16_t aEntryType, bool aFlag, nsIURI *aSource, nsIFile *aTarget) = 0;
88 :
89 : };
90 :
91 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIParentalControlsService, NS_IPARENTALCONTROLSSERVICE_IID)
92 :
93 : /* Use this macro when declaring classes that implement this interface. */
94 : #define NS_DECL_NSIPARENTALCONTROLSSERVICE \
95 : NS_IMETHOD GetParentalControlsEnabled(bool *aParentalControlsEnabled) override; \
96 : NS_IMETHOD GetBlockFileDownloadsEnabled(bool *aBlockFileDownloadsEnabled) override; \
97 : NS_IMETHOD IsAllowed(int16_t aAction, nsIURI *aUri, bool *_retval) override; \
98 : NS_IMETHOD RequestURIOverride(nsIURI *aTarget, nsIInterfaceRequestor *aWindowContext, bool *_retval) override; \
99 : NS_IMETHOD RequestURIOverrides(nsIArray *aTargets, nsIInterfaceRequestor *aWindowContext, bool *_retval) override; \
100 : NS_IMETHOD GetLoggingEnabled(bool *aLoggingEnabled) override; \
101 : NS_IMETHOD Log(int16_t aEntryType, bool aFlag, nsIURI *aSource, nsIFile *aTarget) override;
102 :
103 : /* Use this macro when declaring the members of this interface when the
104 : class doesn't implement the interface. This is useful for forwarding. */
105 : #define NS_DECL_NON_VIRTUAL_NSIPARENTALCONTROLSSERVICE \
106 : nsresult GetParentalControlsEnabled(bool *aParentalControlsEnabled); \
107 : nsresult GetBlockFileDownloadsEnabled(bool *aBlockFileDownloadsEnabled); \
108 : nsresult IsAllowed(int16_t aAction, nsIURI *aUri, bool *_retval); \
109 : nsresult RequestURIOverride(nsIURI *aTarget, nsIInterfaceRequestor *aWindowContext, bool *_retval); \
110 : nsresult RequestURIOverrides(nsIArray *aTargets, nsIInterfaceRequestor *aWindowContext, bool *_retval); \
111 : nsresult GetLoggingEnabled(bool *aLoggingEnabled); \
112 : nsresult Log(int16_t aEntryType, bool aFlag, nsIURI *aSource, nsIFile *aTarget);
113 :
114 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
115 : #define NS_FORWARD_NSIPARENTALCONTROLSSERVICE(_to) \
116 : NS_IMETHOD GetParentalControlsEnabled(bool *aParentalControlsEnabled) override { return _to GetParentalControlsEnabled(aParentalControlsEnabled); } \
117 : NS_IMETHOD GetBlockFileDownloadsEnabled(bool *aBlockFileDownloadsEnabled) override { return _to GetBlockFileDownloadsEnabled(aBlockFileDownloadsEnabled); } \
118 : NS_IMETHOD IsAllowed(int16_t aAction, nsIURI *aUri, bool *_retval) override { return _to IsAllowed(aAction, aUri, _retval); } \
119 : NS_IMETHOD RequestURIOverride(nsIURI *aTarget, nsIInterfaceRequestor *aWindowContext, bool *_retval) override { return _to RequestURIOverride(aTarget, aWindowContext, _retval); } \
120 : NS_IMETHOD RequestURIOverrides(nsIArray *aTargets, nsIInterfaceRequestor *aWindowContext, bool *_retval) override { return _to RequestURIOverrides(aTargets, aWindowContext, _retval); } \
121 : NS_IMETHOD GetLoggingEnabled(bool *aLoggingEnabled) override { return _to GetLoggingEnabled(aLoggingEnabled); } \
122 : NS_IMETHOD Log(int16_t aEntryType, bool aFlag, nsIURI *aSource, nsIFile *aTarget) override { return _to Log(aEntryType, aFlag, aSource, aTarget); }
123 :
124 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
125 : #define NS_FORWARD_SAFE_NSIPARENTALCONTROLSSERVICE(_to) \
126 : NS_IMETHOD GetParentalControlsEnabled(bool *aParentalControlsEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentalControlsEnabled(aParentalControlsEnabled); } \
127 : NS_IMETHOD GetBlockFileDownloadsEnabled(bool *aBlockFileDownloadsEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlockFileDownloadsEnabled(aBlockFileDownloadsEnabled); } \
128 : NS_IMETHOD IsAllowed(int16_t aAction, nsIURI *aUri, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAllowed(aAction, aUri, _retval); } \
129 : NS_IMETHOD RequestURIOverride(nsIURI *aTarget, nsIInterfaceRequestor *aWindowContext, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestURIOverride(aTarget, aWindowContext, _retval); } \
130 : NS_IMETHOD RequestURIOverrides(nsIArray *aTargets, nsIInterfaceRequestor *aWindowContext, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestURIOverrides(aTargets, aWindowContext, _retval); } \
131 : NS_IMETHOD GetLoggingEnabled(bool *aLoggingEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoggingEnabled(aLoggingEnabled); } \
132 : NS_IMETHOD Log(int16_t aEntryType, bool aFlag, nsIURI *aSource, nsIFile *aTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Log(aEntryType, aFlag, aSource, aTarget); }
133 :
134 : #if 0
135 : /* Use the code below as a template for the implementation class for this interface. */
136 :
137 : /* Header file */
138 : class nsParentalControlsService : public nsIParentalControlsService
139 : {
140 : public:
141 : NS_DECL_ISUPPORTS
142 : NS_DECL_NSIPARENTALCONTROLSSERVICE
143 :
144 : nsParentalControlsService();
145 :
146 : private:
147 : ~nsParentalControlsService();
148 :
149 : protected:
150 : /* additional members */
151 : };
152 :
153 : /* Implementation file */
154 : NS_IMPL_ISUPPORTS(nsParentalControlsService, nsIParentalControlsService)
155 :
156 : nsParentalControlsService::nsParentalControlsService()
157 : {
158 : /* member initializers and constructor code */
159 : }
160 :
161 : nsParentalControlsService::~nsParentalControlsService()
162 : {
163 : /* destructor code */
164 : }
165 :
166 : /* readonly attribute boolean parentalControlsEnabled; */
167 : NS_IMETHODIMP nsParentalControlsService::GetParentalControlsEnabled(bool *aParentalControlsEnabled)
168 : {
169 : return NS_ERROR_NOT_IMPLEMENTED;
170 : }
171 :
172 : /* readonly attribute boolean blockFileDownloadsEnabled; */
173 : NS_IMETHODIMP nsParentalControlsService::GetBlockFileDownloadsEnabled(bool *aBlockFileDownloadsEnabled)
174 : {
175 : return NS_ERROR_NOT_IMPLEMENTED;
176 : }
177 :
178 : /* boolean isAllowed (in short aAction, [optional] in nsIURI aUri); */
179 : NS_IMETHODIMP nsParentalControlsService::IsAllowed(int16_t aAction, nsIURI *aUri, bool *_retval)
180 : {
181 : return NS_ERROR_NOT_IMPLEMENTED;
182 : }
183 :
184 : /* boolean requestURIOverride (in nsIURI aTarget, [optional] in nsIInterfaceRequestor aWindowContext); */
185 : NS_IMETHODIMP nsParentalControlsService::RequestURIOverride(nsIURI *aTarget, nsIInterfaceRequestor *aWindowContext, bool *_retval)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* boolean requestURIOverrides (in nsIArray aTargets, [optional] in nsIInterfaceRequestor aWindowContext); */
191 : NS_IMETHODIMP nsParentalControlsService::RequestURIOverrides(nsIArray *aTargets, nsIInterfaceRequestor *aWindowContext, bool *_retval)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* readonly attribute boolean loggingEnabled; */
197 : NS_IMETHODIMP nsParentalControlsService::GetLoggingEnabled(bool *aLoggingEnabled)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* void log (in short aEntryType, in boolean aFlag, in nsIURI aSource, [optional] in nsIFile aTarget); */
203 : NS_IMETHODIMP nsParentalControlsService::Log(int16_t aEntryType, bool aFlag, nsIURI *aSource, nsIFile *aTarget)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 :
208 : /* End of implementation class template. */
209 : #endif
210 :
211 :
212 : #endif /* __gen_nsIParentalControlsService_h__ */
|