Struct xpcom::interfaces::nsIParentalControlsService [] [src]

#[repr(C)]
pub struct nsIParentalControlsService { /* fields omitted */ }

interface nsIParentalControlsService : nsISupports

Methods

impl nsIParentalControlsService
[src]

[src]

Cast this nsIParentalControlsService to one of its base interfaces.

impl nsIParentalControlsService
[src]

DOWNLOAD: i64 = 1
/**
   * Action types that can be blocked for users.
   */

INSTALL_EXTENSION: i64 = 2

INSTALL_APP: i64 = 3

BROWSE: i64 = 4

SHARE: i64 = 5

BOOKMARK: i64 = 6

ADD_CONTACT: i64 = 7

SET_IMAGE: i64 = 8

MODIFY_ACCOUNTS: i64 = 9

REMOTE_DEBUGGING: i64 = 10

IMPORT_SETTINGS: i64 = 11

PRIVATE_BROWSING: i64 = 12

DATA_CHOICES: i64 = 13

CLEAR_HISTORY: i64 = 14

MASTER_PASSWORD: i64 = 15

GUEST_BROWSING: i64 = 16

ADVANCED_SETTINGS: i64 = 17

CAMERA_MICROPHONE: i64 = 18

BLOCK_LIST: i64 = 19

TELEMETRY: i64 = 20

HEALTH_REPORT: i64 = 21

DEFAULT_THEME: i64 = 22

ePCLog_URIVisit: i64 = 1
/**
   * Log entry types. Additional types can be defined and implemented
   * as needed. Other possible event types might include email events,
   * media related events, and IM events.
   */

ePCLog_FileDownload: i64 = 2

[src]

/**
   * @returns true if the current user account has parental controls
   * restrictions enabled.
   */

readonly attribute boolean parentalControlsEnabled;

[src]

/**
   * @returns true if the current user account parental controls
   * restrictions include the blocking of all file downloads.
   */

readonly attribute boolean blockFileDownloadsEnabled;

[src]

/**
   * Check if the user can do the prescibed action for this uri.
   *
   * @param aAction             Action being performed
   * @param aUri                The uri requesting this action
   * @param aWindow             The window generating this event.
   */

boolean isAllowed (in short aAction, [optional] in nsIURI aUri);

[src]

/**
   * Request that blocked URI(s) be allowed through parental
   * control filters. Returns true if the URI was successfully
   * overriden. Note, may block while native UI is shown.
   *
   * @param aTarget(s)          URI to be overridden. In the case of
   *                            multiple URI, the first URI in the array
   *                            should be the root URI of the site.
   * @param window              Window that generates the event.
   */

boolean requestURIOverride (in nsIURI aTarget, [optional] in nsIInterfaceRequestor aWindowContext);

[src]

boolean requestURIOverrides (in nsIArray aTargets, [optional] in nsIInterfaceRequestor aWindowContext);

[src]

/**
   * @returns true if the current user account has parental controls
   * logging enabled. If true, applications should log relevent events
   * using 'log'.
   */

readonly attribute boolean loggingEnabled;

[src]

/**
   * Log an application specific parental controls
   * event.
   *
   * @param aEntryType       Constant defining the type of event.
   * @param aFlag            A flag indicating if the subject content
   *                         was blocked.
   * @param aSource          The URI source of the subject content.
   * @param aTarget          The location the content was saved to if
   *                         no blocking occurred.
   */

void log (in short aEntryType, in boolean aFlag, in nsIURI aSource, [optional] in nsIFile aTarget);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIParentalControlsService
[src]

IID: nsIID = nsID(781706717, 18043, 19178, [161, 187, 103, 115, 192, 242, 190, 176])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIParentalControlsService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIParentalControlsService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.