Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Attributes
nsPermission Class Reference

#include <nsPermission.h>

Inheritance diagram for nsPermission:
Inheritance graph
[legend]
Collaboration diagram for nsPermission:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIPERMISSION 
nsPermission (const nsACString &aHost, const nsACString &aType, PRUint32 aCapability)
virtual ~nsPermission ()

Public Attributes

readonly attribute AUTF8String host
 The name of the host for which the permission is set.
readonly attribute ACString type
 a case-sensitive ASCII string, indicating the type of permission (e.g., "cookie", "image", etc).
readonly attribute PRUint32 capability
 The permission (see nsIPermissionManager.idl for allowed values)

Protected Attributes

nsCString mHost
nsCString mType
PRUint32 mCapability

Detailed Description

Definition at line 46 of file nsPermission.h.


Constructor & Destructor Documentation

nsPermission::nsPermission ( const nsACString &  aHost,
const nsACString &  aType,
PRUint32  aCapability 
)

Definition at line 44 of file nsPermission.cpp.

 : mHost(aHost)
 , mType(aType)
 , mCapability(aCapability)
{
}

Definition at line 53 of file nsPermission.cpp.

{
}

Member Data Documentation

The permission (see nsIPermissionManager.idl for allowed values)

Definition at line 68 of file nsIPermission.idl.

readonly attribute AUTF8String nsIPermission::host [inherited]

The name of the host for which the permission is set.

Definition at line 54 of file nsIPermission.idl.

Definition at line 59 of file nsPermission.h.

Definition at line 57 of file nsPermission.h.

Definition at line 58 of file nsPermission.h.

readonly attribute ACString nsIPermission::type [inherited]

a case-sensitive ASCII string, indicating the type of permission (e.g., "cookie", "image", etc).

This string is specified by the consumer when adding a permission via nsIPermissionManager.

See also:
nsIPermissionManager

Definition at line 63 of file nsIPermission.idl.


The documentation for this class was generated from the following files: