Back to index
Interface representing a location where extensions, themes etc are installed. More...
|nsIFile||getItemLocation (in AString id)|
|Gets the directory that contains an item. |
|AString||getIDForLocation (in nsIFile file)|
|Retrieves the GUID for an item at the specified location. |
|nsIFile||getItemFile (in AString id, in AString path)|
|Gets a nsIFile object for a file within an item's directory structure. |
|boolean||itemIsManagedIndependently (in AString id)|
|Determines whether or not an item's resources are managed by the Extension System or by some other user or process. |
|readonly attribute AString||name|
|The string identifier of this Install Location. |
|readonly attribute |
|An enumeration of nsIFiles for: |
|readonly attribute nsIFile||location|
|The file system location where items live. |
|readonly attribute boolean||restricted|
|Whether or not this Install Location is on an area of the file system that could be restricted on a restricted-access account, regardless of whether or not the location is restricted with the current user privileges. |
|readonly attribute boolean||canAccess|
|Whether or not the user can write to the Install Location with the current access privileges. |
|const unsigned long||PRIORITY_APP_PROFILE = 0|
|Constants representing priority of some default Install Locations. |
|const unsigned long||PRIORITY_APP_SYSTEM_USER = 10|
|const unsigned long||PRIORITY_XRE_SYSTEM_USER = 100|
|const unsigned long||PRIORITY_APP_SYSTEM_GLOBAL = 1000|
|const unsigned long||PRIORITY_XRE_SYSTEM_GLOBAL = 10000|
|readonly attribute long||priority|
|The priority level of this Install Location in loading. |
Interface representing a location where extensions, themes etc are installed.
Retrieves the GUID for an item at the specified location.
|file||The location where an item might live.|
N.B. This function makes no promises about whether or not this path is actually maintained by this Install Location.
Gets the directory that contains an item.
|id||The GUID of the item.|
Determines whether or not an item's resources are managed by the Extension System or by some other user or process.
For example, items linked to by text links are managed by the user, and items linked to from Registry Install Locations are usually managed by other applications or installers.
|id||The GUID of the item.|
Whether or not the user can write to the Install Location with the current access privileges.
This is different from restricted because it's not whether or not the location might be restricted, it's whether or not it actually is restricted right now.
Constants representing priority of some default Install Locations.
XXXben - priority ranking of user-level items vs. global-level items here is debatable. Should app-system-global trump xre-system-user? You should not use the exact values here, you should offset from these values each time you create a new Install Location. Offsetting can be brittle but you should know what Install Locations are being defined for your own application.