Back to index

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

List of all members.

Public Member Functions

 StFollowLinksState (nsILocalFile *aFile)
 StFollowLinksState (nsILocalFile *aFile, PRBool followLinksState)
 ~StFollowLinksState ()
 StFollowLinksState (nsLocalFile &aFile)
 StFollowLinksState (nsLocalFile &aFile, PRBool followLinksState)
 ~StFollowLinksState ()

Private Attributes

nsCOMPtr< nsILocalFilemFile
PRBool mSavedState
nsLocalFilemFile

Detailed Description

Definition at line 789 of file nsLocalFileMac.cpp.


Constructor & Destructor Documentation

Definition at line 792 of file nsLocalFileMac.cpp.

                                            :
        mFile(aFile)
    {
        NS_ASSERTION(mFile, "StFollowLinksState passed a NULL file.");
        if (mFile)
            mFile->GetFollowLinks(&mSavedState);
    }
StFollowLinksState::StFollowLinksState ( nsILocalFile aFile,
PRBool  followLinksState 
) [inline]

Definition at line 800 of file nsLocalFileMac.cpp.

                                                                     :
        mFile(aFile)
    {
        NS_ASSERTION(mFile, "StFollowLinksState passed a NULL file.");
        if (mFile) {
            mFile->GetFollowLinks(&mSavedState);
            mFile->SetFollowLinks(followLinksState);
        }
    }

Definition at line 810 of file nsLocalFileMac.cpp.

    {
        if (mFile)
            mFile->SetFollowLinks(mSavedState);
    }

Definition at line 99 of file nsLocalFileOSX.cpp.

                                           :
        mFile(aFile)
    {
        mFile.GetFollowLinks(&mSavedState);
    }
StFollowLinksState::StFollowLinksState ( nsLocalFile aFile,
PRBool  followLinksState 
) [inline]

Definition at line 105 of file nsLocalFileOSX.cpp.

                                                                    :
        mFile(aFile)
    {
        mFile.GetFollowLinks(&mSavedState);
        mFile.SetFollowLinks(followLinksState);
    }

Definition at line 112 of file nsLocalFileOSX.cpp.

    {
        mFile.SetFollowLinks(mSavedState);
    }

Member Data Documentation

Definition at line 118 of file nsLocalFileOSX.cpp.

Definition at line 817 of file nsLocalFileMac.cpp.

Definition at line 818 of file nsLocalFileMac.cpp.


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