nsISupports
Last changed in Gecko 1.9 (Firefox 3)Implemented by: @mozilla.org/parental-controls-service;1
. To create an instance, use:
var parentalControlsService = Components.classes["@mozilla.org/parental-controls-service;1"] .createInstance(Components.interfaces.nsIParentalControlsService);
void log(in short aEntryType, in boolean aFlag, in nsIURI aSource, [optional] in nsIFile aTarget); |
boolean requestURIOverride(in nsIURI aTarget, [optional] in nsIInterfaceRequestor aWindowContext); |
boolean requestURIOverrides(in nsIArray aTargets, [optional] in nsIInterfaceRequestor aWindowContext); |
Attribute | Type | Description |
blockFileDownloadsEnabled |
boolean |
true if the current user account's parental controls restrictions include the blocking of all file downloads. Read only. |
loggingEnabled |
boolean |
true if the current user account has parental controls logging enabled. If this is true , applications should log relevant events using log() method. Read only. |
parentalControlsEnabled |
boolean |
true if the current user account has parental controls restrictions enabled. Read only. |
Constant | Value | Description |
ePCLog_URIVisit |
1 |
This log entry type represents an access to web content. |
ePCLog_FileDownload |
2 |
This log entry type represents a file download. |
Logs an application specific parental controls event.
void log(
in short aEntryType,
in boolean aFlag,
in nsIURI aSource,
in nsIFile aTarget Optional
);
aEntryType
aFlag
true
if the event was blocked or false
if it was allowed.aSource
aTarget
OptionalRequests that a blocked URI be allowed through parental control filters.
This method may block while the operating system presents user interface to handle the override request (such as an "enter an administrator's password" dialog box).
boolean requestURIOverride(
in nsIURI aTarget,
in nsIInterfaceRequestor aWindowContext Optional
);
aTarget
aWindowContext
Optionaltrue
if the block was successfully overridden, otherwise false
.
Requests that a set of URIs be allowed through the parental control filters.
This method may block while the operating system presents user interface to handle the override request (such as an "enter an administrator's password" dialog box).
boolean requestURIOverrides(
in nsIArray aTargets,
in nsIInterfaceRequestor aWindowContext Optional
);
aTargets
nsIURI
objects, each representing a URI for which an override is desired.aWindowContext
Optionaltrue
if the block was successfully overridden, otherwise false
.