Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsToolkitProfileLock Class Reference
Inheritance diagram for nsToolkitProfileLock:
Inheritance graph
[legend]
Collaboration diagram for nsToolkitProfileLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIPROFILELOCK
nsresult 
Init (nsToolkitProfile *aProfile, nsIProfileUnlocker **aUnlocker)
nsresult Init (nsILocalFile *aDirectory, nsILocalFile *aLocalDirectory, nsIProfileUnlocker **aUnlocker)
 nsToolkitProfileLock ()
 ~nsToolkitProfileLock ()
void unlock ()
 Unlock the profile.

Public Attributes

readonly attribute nsILocalFile directory
 The main profile directory.
readonly attribute nsILocalFile localDirectory
 A directory corresponding to the main profile directory that exists for the purpose of storing data on the local filesystem, including cache files or other data files that may not represent critical user data.

Private Attributes

nsCOMPtr< nsToolkitProfilemProfile
nsCOMPtr< nsILocalFilemDirectory
nsCOMPtr< nsILocalFilemLocalDirectory
nsProfileLock mLock

Detailed Description

Definition at line 100 of file nsToolkitProfileService.cpp.


Constructor & Destructor Documentation

Definition at line 110 of file nsToolkitProfileService.cpp.

{ }

Definition at line 362 of file nsToolkitProfileService.cpp.

{
    if (mDirectory) {
        Unlock();
    }
}

Member Function Documentation

Definition at line 292 of file nsToolkitProfileService.cpp.

{
    nsresult rv;
    rv = Init(aProfile->mRootDir, aProfile->mLocalDir, aUnlocker);
    if (NS_SUCCEEDED(rv))
        mProfile = aProfile;

    return rv;
}

Here is the call graph for this function:

nsresult nsToolkitProfileLock::Init ( nsILocalFile aDirectory,
nsILocalFile aLocalDirectory,
nsIProfileUnlocker **  aUnlocker 
)

Definition at line 303 of file nsToolkitProfileService.cpp.

{
    nsresult rv;

    rv = mLock.Lock(aDirectory, aUnlocker);

    if (NS_SUCCEEDED(rv)) {
        mDirectory = aDirectory;
        mLocalDirectory = aLocalDirectory;
    }

    return rv;
}

Here is the call graph for this function:

void nsIProfileLock::unlock ( ) [inherited]

Unlock the profile.


Member Data Documentation

The main profile directory.

Definition at line 54 of file nsIToolkitProfile.idl.

A directory corresponding to the main profile directory that exists for the purpose of storing data on the local filesystem, including cache files or other data files that may not represent critical user data.

(e.g., this directory may not be included as part of a backup scheme.)

In some cases, this directory may just be the main profile directory.

Definition at line 64 of file nsIToolkitProfile.idl.

Definition at line 115 of file nsToolkitProfileService.cpp.

Definition at line 116 of file nsToolkitProfileService.cpp.

Definition at line 118 of file nsToolkitProfileService.cpp.

Definition at line 114 of file nsToolkitProfileService.cpp.


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