Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
NS_COM_OBSOLETE Protocol Reference

#include <nsFileSpec.h>

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

List of all members.

Public Types

enum  { kDefaultMode = PR_RDONLY }
enum  { kDefaultMode = PR_RDONLY }
enum  SystemDirectories {
  OS_DriveDirectory = 1, OS_TemporaryDirectory = 2, OS_CurrentProcessDirectory = 3, OS_CurrentWorkingDirectory = 4,
  XPCOM_CurrentProcessComponentDirectory = 5, XPCOM_CurrentProcessComponentRegistry = 6, Moz_BinDirectory = 10, Mac_SystemDirectory = 101,
  Mac_DesktopDirectory = 102, Mac_TrashDirectory = 103, Mac_StartupDirectory = 104, Mac_ShutdownDirectory = 105,
  Mac_AppleMenuDirectory = 106, Mac_ControlPanelDirectory = 107, Mac_ExtensionDirectory = 108, Mac_FontsDirectory = 109,
  Mac_ClassicPreferencesDirectory = 110, Mac_DocumentsDirectory = 111, Mac_InternetSearchDirectory = 112, Mac_DefaultDownloadDirectory = 113,
  Mac_UserLibDirectory = 114, Mac_PreferencesDirectory = 115, Win_SystemDirectory = 201, Win_WindowsDirectory = 202,
  Win_HomeDirectory = 203, Win_Desktop = 204, Win_Programs = 205, Win_Controls = 206,
  Win_Printers = 207, Win_Personal = 208, Win_Favorites = 209, Win_Startup = 210,
  Win_Recent = 211, Win_Sendto = 212, Win_Bitbucket = 213, Win_Startmenu = 214,
  Win_Desktopdirectory = 215, Win_Drives = 216, Win_Network = 217, Win_Nethood = 218,
  Win_Fonts = 219, Win_Templates = 220, Win_Common_Startmenu = 221, Win_Common_Programs = 222,
  Win_Common_Startup = 223, Win_Common_Desktopdirectory = 224, Win_Appdata = 225, Win_Printhood = 226,
  Win_Cookies = 227, Unix_LocalDirectory = 301, Unix_LibDirectory = 302, Unix_HomeDirectory = 303,
  BeOS_SettingsDirectory = 401, BeOS_HomeDirectory = 402, BeOS_DesktopDirectory = 403, BeOS_SystemDirectory = 404,
  OS2_SystemDirectory = 501, OS2_OS2Directory = 502, OS2_DesktopDirectory = 503, OS2_HomeDirectory = 504
}
typedef PRUint32 TimeStamp
typedef PRUint32 TimeStamp

Public Member Functions

 nsFileSpec ()
NS_EXPLICIT nsFileSpec (const char *inNativePath, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFileSpec (const nsString &inNativePath, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFileSpec (const nsFilePath &inPath)
NS_EXPLICIT nsFileSpec (const nsFileURL &inURL)
 nsFileSpec (const nsFileSpec &inPath)
virtual ~nsFileSpec ()
void operator= (const char *inNativePath)
void operator= (const nsFilePath &inPath)
void operator= (const nsFileURL &inURL)
void operator= (const nsFileSpec &inOther)
void operator= (const nsPersistentFileDescriptor &inOther)
PRBool operator== (const nsFileSpec &inOther) const
PRBool operator!= (const nsFileSpec &inOther) const
const char * GetCString () const
 operator const char * () const
const char * GetNativePathCString () const
PRBool IsChildOf (nsFileSpec &possibleParent)
PRBool Valid () const
nsresult Error () const
PRBool Failed () const
char * GetLeafName () const
void SetLeafName (const char *inLeafName)
void GetParent (nsFileSpec &outSpec) const
void GetModDate (TimeStamp &outStamp) const
PRBool ModDateChanged (const TimeStamp &oldStamp) const
PRUint32 GetFileSize () const
PRInt64 GetDiskSpaceAvailable () const
nsFileSpec operator+ (const char *inRelativeUnixPath) const
void operator+= (const char *inRelativeUnixPath)
PRBool IsDirectory () const
PRBool IsFile () const
PRBool Exists () const
PRBool IsHidden () const
PRBool IsSymlink () const
void MakeUnique (PRBool inCreateFile=PR_TRUE)
void MakeUnique (const char *inSuggestedLeafName, PRBool inCreateFile=PR_TRUE)
nsresult ResolveSymlink (PRBool &wasSymlink)
void CreateDirectory (int mode=0775)
void CreateDir (int mode=0775)
void Delete (PRBool inRecursive) const
nsresult Truncate (PRInt32 aNewLength) const
void RecursiveCopy (nsFileSpec newDir) const
nsresult Rename (const char *inNewName)
nsresult CopyToDir (const nsFileSpec &inNewParentDirectory) const
nsresult MoveToDir (const nsFileSpec &inNewParentDirectory)
nsresult Execute (const char *args) const
 nsFileURL (const nsFileURL &inURL)
NS_EXPLICIT nsFileURL (const char *inURLString, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFileURL (const nsString &inURLString, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFileURL (const nsFilePath &inPath)
NS_EXPLICIT nsFileURL (const nsFileSpec &inPath)
virtual ~nsFileURL ()
void operator= (const nsFileURL &inURL)
void operator= (const char *inURLString)
void operator= (const nsString &inURLString)
void operator= (const nsFilePath &inOther)
void operator= (const nsFileSpec &inOther)
void operator+= (const char *inRelativeUnixPath)
nsFileURL operator+ (const char *inRelativeUnixPath) const
 operator const char * () const
const char * GetURLString () const
const char * GetAsString () const
 nsFilePath (const nsFilePath &inPath)
NS_EXPLICIT nsFilePath (const char *inUnixPathString, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFilePath (const nsString &inUnixPathString, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFilePath (const nsFileURL &inURL)
NS_EXPLICIT nsFilePath (const nsFileSpec &inPath)
virtual ~nsFilePath ()
 operator const char * () const
void operator= (const nsFilePath &inPath)
void operator= (const char *inUnixPathString)
void operator= (const nsString &inUnixPathString)
void operator= (const nsFileURL &inURL)
void operator= (const nsFileSpec &inOther)
void operator+= (const char *inRelativeUnixPath)
nsFilePath operator+ (const char *inRelativeUnixPath) const
 nsDirectoryIterator (const nsFileSpec &parent, PRBool resoveSymLinks)
virtual ~nsDirectoryIterator ()
PRBool Exists () const
nsDirectoryIteratoroperator++ ()
nsDirectoryIteratoroperator++ (int)
nsDirectoryIteratoroperator-- ()
nsDirectoryIteratoroperator-- (int)
 operator nsFileSpec & ()
nsFileSpecSpec ()
NS_EXPLICIT nsNSPRPath (const nsFileSpec &inSpec)
NS_EXPLICIT nsNSPRPath (const nsFileURL &inURL)
NS_EXPLICIT nsNSPRPath (const nsFilePath &inUnixPath)
virtual ~nsNSPRPath ()
 operator const char * () const
 nsFileSpecImpl ()
 nsFileSpecImpl (const nsFileSpec &inSpec)
 nsDirectoryIteratorImpl ()
NS_DECL_ISUPPORTS NS_IMETHOD Init (nsIFileSpec *parent, PRBool resolveSymlink)
NS_IMETHOD Exists (PRBool *_retval)
NS_IMETHOD Next ()
NS_IMETHOD GetCurrentSpec (nsIFileSpec **aCurrentSpec)
 nsInputStream (nsIInputStream *inStream)
virtual ~nsInputStream ()
nsCOMPtr< nsIInputStreamGetIStream () const
PRBool eof () const
char get ()
nsresult close ()
PRInt32 read (void *s, PRInt32 n)
nsInputStreamoperator>> (char &ch)
nsInputStreamoperator>> (nsInputStream &(*pf)(nsInputStream &))
 nsOutputStream ()
 nsOutputStream (nsIOutputStream *inStream)
virtual ~nsOutputStream ()
nsCOMPtr< nsIOutputStreamGetIStream () const
nsresult close ()
void put (char c)
PRInt32 write (const void *s, PRInt32 n)
virtual nsresult flush ()
nsresult lastWriteStatus ()
nsOutputStreamoperator<< (const char *buf)
nsOutputStreamoperator<< (char ch)
nsOutputStreamoperator<< (short val)
nsOutputStreamoperator<< (unsigned short val)
nsOutputStreamoperator<< (long val)
nsOutputStreamoperator<< (unsigned long val)
nsOutputStreamoperator<< (int val)
nsOutputStreamoperator<< (unsigned int val)
nsOutputStreamoperator<< (nsOutputStream &(*pf)(nsOutputStream &))
 nsErrorProne ()
PRBool failed () const
nsresult error () const
 nsFileClient (const nsCOMPtr< nsIOpenFile > &inFile)
virtual ~nsFileClient ()
void open (const nsFileSpec &inFile, int nsprMode, PRIntn accessMode)
PRBool is_open () const
PRBool is_file () const
 nsRandomAccessStoreClient ()
 nsRandomAccessStoreClient (const nsCOMPtr< nsIRandomAccessStore > &inStore)
virtual ~nsRandomAccessStoreClient ()
void seek (PRInt64 offset)
void seek (PRSeekWhence whence, PRInt64 offset)
PRInt64 tell ()
 nsRandomAccessInputStream (nsIInputStream *inStream)
PRBool readline (char *s, PRInt32 n)
nsInputStreamoperator>> (char &ch)
nsInputStreamoperator>> (nsInputStream &(*pf)(nsInputStream &))
 nsInputStringStream (const char *stringToRead)
 nsInputStringStream (const nsString &stringToRead)
nsInputStreamoperator>> (char &ch)
nsInputStreamoperator>> (nsInputStream &(*pf)(nsInputStream &))
 nsInputFileStream (nsIInputStream *inStream)
 nsInputFileStream (const nsFileSpec &inFile, int nsprMode=kDefaultMode, PRIntn accessMode=00666)
 nsInputFileStream (nsIFileSpec *inFile)
virtual ~nsInputFileStream ()
void Open (const nsFileSpec &inFile, int nsprMode=kDefaultMode, PRIntn accessMode=00666)
nsInputStreamoperator>> (char &ch)
nsInputStreamoperator>> (nsInputStream &(*pf)(nsInputStream &))
 nsRandomAccessOutputStream (nsIOutputStream *inStream)
nsOutputStreamoperator<< (const char *buf)
nsOutputStreamoperator<< (char ch)
nsOutputStreamoperator<< (short val)
nsOutputStreamoperator<< (unsigned short val)
nsOutputStreamoperator<< (long val)
nsOutputStreamoperator<< (unsigned long val)
nsOutputStreamoperator<< (int val)
nsOutputStreamoperator<< (unsigned int val)
nsOutputStreamoperator<< (nsOutputStream &(*pf)(nsOutputStream &))
 nsOutputFileStream ()
 nsOutputFileStream (nsIOutputStream *inStream)
 nsOutputFileStream (const nsFileSpec &inFile, int nsprMode=kDefaultMode, PRIntn accessMode=00666)
 nsOutputFileStream (nsIFileSpec *inFile)
virtual ~nsOutputFileStream ()
virtual nsresult flush ()
virtual void abort ()
nsOutputStreamoperator<< (const char *buf)
nsOutputStreamoperator<< (char ch)
nsOutputStreamoperator<< (short val)
nsOutputStreamoperator<< (unsigned short val)
nsOutputStreamoperator<< (long val)
nsOutputStreamoperator<< (unsigned long val)
nsOutputStreamoperator<< (int val)
nsOutputStreamoperator<< (unsigned int val)
nsOutputStreamoperator<< (nsOutputStream &(*pf)(nsOutputStream &))
 nsFileSpec ()
NS_EXPLICIT nsFileSpec (const char *inNativePath, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFileSpec (const nsString &inNativePath, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFileSpec (const nsFilePath &inPath)
NS_EXPLICIT nsFileSpec (const nsFileURL &inURL)
 nsFileSpec (const nsFileSpec &inPath)
virtual ~nsFileSpec ()
void operator= (const char *inNativePath)
void operator= (const nsFilePath &inPath)
void operator= (const nsFileURL &inURL)
void operator= (const nsFileSpec &inOther)
void operator= (const nsPersistentFileDescriptor &inOther)
PRBool operator== (const nsFileSpec &inOther) const
PRBool operator!= (const nsFileSpec &inOther) const
const char * GetCString () const
 operator const char * () const
const char * GetNativePathCString () const
PRBool IsChildOf (nsFileSpec &possibleParent)
PRBool Valid () const
nsresult Error () const
PRBool Failed () const
char * GetLeafName () const
void SetLeafName (const char *inLeafName)
void GetParent (nsFileSpec &outSpec) const
void GetModDate (TimeStamp &outStamp) const
PRBool ModDateChanged (const TimeStamp &oldStamp) const
PRUint32 GetFileSize () const
PRInt64 GetDiskSpaceAvailable () const
nsFileSpec operator+ (const char *inRelativeUnixPath) const
void operator+= (const char *inRelativeUnixPath)
PRBool IsDirectory () const
PRBool IsFile () const
PRBool Exists () const
PRBool IsHidden () const
PRBool IsSymlink () const
void MakeUnique (PRBool inCreateFile=PR_TRUE)
void MakeUnique (const char *inSuggestedLeafName, PRBool inCreateFile=PR_TRUE)
nsresult ResolveSymlink (PRBool &wasSymlink)
void CreateDirectory (int mode=0775)
void CreateDir (int mode=0775)
void Delete (PRBool inRecursive) const
nsresult Truncate (PRInt32 aNewLength) const
void RecursiveCopy (nsFileSpec newDir) const
nsresult Rename (const char *inNewName)
nsresult CopyToDir (const nsFileSpec &inNewParentDirectory) const
nsresult MoveToDir (const nsFileSpec &inNewParentDirectory)
nsresult Execute (const char *args) const
 nsFileURL (const nsFileURL &inURL)
NS_EXPLICIT nsFileURL (const char *inURLString, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFileURL (const nsString &inURLString, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFileURL (const nsFilePath &inPath)
NS_EXPLICIT nsFileURL (const nsFileSpec &inPath)
virtual ~nsFileURL ()
void operator= (const nsFileURL &inURL)
void operator= (const char *inURLString)
void operator= (const nsString &inURLString)
void operator= (const nsFilePath &inOther)
void operator= (const nsFileSpec &inOther)
void operator+= (const char *inRelativeUnixPath)
nsFileURL operator+ (const char *inRelativeUnixPath) const
 operator const char * () const
const char * GetURLString () const
const char * GetAsString () const
 nsFilePath (const nsFilePath &inPath)
NS_EXPLICIT nsFilePath (const char *inUnixPathString, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFilePath (const nsString &inUnixPathString, PRBool inCreateDirs=PR_FALSE)
NS_EXPLICIT nsFilePath (const nsFileURL &inURL)
NS_EXPLICIT nsFilePath (const nsFileSpec &inPath)
virtual ~nsFilePath ()
 operator const char * () const
void operator= (const nsFilePath &inPath)
void operator= (const char *inUnixPathString)
void operator= (const nsString &inUnixPathString)
void operator= (const nsFileURL &inURL)
void operator= (const nsFileSpec &inOther)
void operator+= (const char *inRelativeUnixPath)
nsFilePath operator+ (const char *inRelativeUnixPath) const
 nsDirectoryIterator (const nsFileSpec &parent, PRBool resoveSymLinks)
virtual ~nsDirectoryIterator ()
PRBool Exists () const
nsDirectoryIteratoroperator++ ()
nsDirectoryIteratoroperator++ (int)
nsDirectoryIteratoroperator-- ()
nsDirectoryIteratoroperator-- (int)
 operator nsFileSpec & ()
nsFileSpecSpec ()
NS_EXPLICIT nsNSPRPath (const nsFileSpec &inSpec)
NS_EXPLICIT nsNSPRPath (const nsFileURL &inURL)
NS_EXPLICIT nsNSPRPath (const nsFilePath &inUnixPath)
virtual ~nsNSPRPath ()
 operator const char * () const
 nsSpecialSystemDirectory (SystemDirectories aSystemSystemDirectory)
virtual ~nsSpecialSystemDirectory ()
void operator= (SystemDirectories aSystemSystemDirectory)
void init (in nsIFileSpec parent, in boolean resolveSymlink)
boolean exists ()
void next ()
void fromFileSpec ([const ] in nsIFileSpec original)
void error ()
boolean isValid ()
boolean failed ()
boolean isChildOf (in nsIFileSpec possibleParent)
void setFromFileSpec ([const ] in nsFileSpecRef spec)
void makeUnique ()
void makeUniqueWithSuggestedName (in string suggestedName)
void makeUniqueDir ()
void makeUniqueDirWithSuggestedName (in string suggestedName)
boolean modDateChanged (in unsigned long oldStamp)
boolean isDirectory ()
boolean isFile ()
boolean exists ()
boolean isHidden ()
boolean equals (in nsIFileSpec spec)
void appendRelativeUnixPath (in string relativePath)
void createDir ()
void touch ()
boolean isSymlink ()
void resolveSymlink ()
void delete (in boolean recursive)
void truncate (in long aNewLength)
void rename ([const ] in string newLeafName)
void copyToDir ([const ] in nsIFileSpec newParentDir)
void moveToDir ([const ] in nsIFileSpec newParentDir)
void execute ([const ] in string args)
void openStreamForReading ()
void openStreamForWriting ()
void openStreamForReadingAndWriting ()
void closeStream ()
boolean isStreamOpen ()
boolean eof ()
long read (inout string buffer, in long requestedCount)
void readLine (inout string line, in long bufferSize, out boolean wasTruncated)
long write (in string data, in long requestedCount)
 Check eof() before each call.
void seek (in long offset)
void endLine ()

Static Public Member Functions

NS_DECL_ISUPPORTS static
NS_DECL_NSIFILESPEC NS_METHOD 
Create (nsISupports *outer, const nsIID &aIID, void **aIFileSpec)
static nsresult MakeInterface (const nsFileSpec &inSpec, nsIFileSpec **outSpec)
static NS_METHOD Create (nsISupports *outer, const nsIID &aIID, void **aIFileSpec)
static void Set (SystemDirectories dirToSet, nsFileSpec *dirSpec)

Public Attributes

nsFileSpec mFileSpec
nsIInputStreammInputStream
nsIOutputStreammOutputStream
readonly attribute nsIFileSpec currentSpec
attribute string URLString
attribute string unixStyleFilePath
attribute string persistentDescriptorString
attribute string nativePath
readonly attribute string NSPRPath
attribute string leafName
readonly attribute nsIFileSpec parent
readonly attribute nsIInputStream inputStream
readonly attribute nsIOutputStream outputStream
readonly attribute nsFileSpec fileSpec
attribute string fileContents
readonly attribute unsigned long modDate
readonly attribute unsigned long fileSize
readonly attribute long long diskSpaceAvailable
attribute AString unicodePath

Protected Member Functions

void Clear ()
virtual void set_at_eof (PRBool atEnd)
virtual PRBool get_at_eof () const
 nsFileClient ()
virtual PRBool get_at_eof () const
virtual void set_at_eof (PRBool atEnd)
 nsRandomAccessInputStream ()
virtual PRBool get_at_eof () const
virtual void set_at_eof (PRBool atEnd)
void AssignFrom (nsISupports *stream)
 nsRandomAccessOutputStream ()
void AssignFrom (nsISupports *stream)
void Clear ()

Protected Attributes

nsSimpleCharString mPath
nsresult mError
nsSimpleCharString mURL
nsDirectoryIteratormDirectoryIterator
nsCOMPtr< nsIInputStreammInputStream
PRBool mEOF
nsCOMPtr< nsIOutputStreammOutputStream
nsresult mResult
nsCOMPtr< nsIOpenFilemFile
nsCOMPtr< nsIRandomAccessStoremStore
nsCOMPtr< nsIFileSpecInputStreammFileInputStream
nsCOMPtr< nsIFileSpecOutputStreammFileOutputStream

Private Member Functions

NS_EXPLICIT nsFileSpec (const nsPersistentFileDescriptor &inURL)
 ~nsFileSpecImpl ()
 ~nsDirectoryIteratorImpl ()
nsInputStreamoperator>> (char *buf)
 nsInputStream (const nsInputStream &rhs)
nsInputStreamoperator= (const nsInputStream &rhs)
 nsOutputStream (const nsOutputStream &rhs)
nsOutputStreamoperator= (const nsOutputStream &rhs)
 nsRandomAccessStoreClient (const nsRandomAccessStoreClient &rhs)
nsRandomAccessStoreClientoperator= (const nsRandomAccessStoreClient &rhs)
 nsRandomAccessInputStream (const nsRandomAccessInputStream &rhs)
nsRandomAccessInputStreamoperator= (const nsRandomAccessInputStream &rhs)
 nsInputStringStream (const nsInputStringStream &rhs)
nsInputStringStreamoperator= (const nsInputStringStream &rhs)
 nsInputFileStream (const nsInputFileStream &rhs)
nsInputFileStreamoperator= (const nsInputFileStream &rhs)
 nsRandomAccessOutputStream (const nsRandomAccessOutputStream &rhs)
nsRandomAccessOutputStreamoperator= (const nsRandomAccessOutputStream &rhs)
 nsOutputFileStream (const nsOutputFileStream &rhs)
nsOutputFileStreamoperator= (const nsOutputFileStream &rhs)
NS_EXPLICIT nsFileSpec (const nsPersistentFileDescriptor &inURL)
void operator= (const char *inPath)

Private Attributes

nsFileSpec mCurrent
PRBool mExists
PRBool mResoveSymLinks
nsFilePath mFilePath
char * modifiedNSPRPath
nsresult mWriteStatus

Friends

class nsFilePath
class nsFileURL
class nsDirectoryIterator

Detailed Description

Definition at line 314 of file nsFileSpec.h.


Member Typedef Documentation

Definition at line 432 of file nsFileSpec.h.

Definition at line 432 of file nsIFileSpec.idl.


Member Enumeration Documentation

anonymous enum
Enumerator:
kDefaultMode 

Definition at line 519 of file nsFileStream.h.

anonymous enum
Enumerator:
kDefaultMode 

Definition at line 618 of file nsFileStream.h.

Enumerator:
OS_DriveDirectory 
OS_TemporaryDirectory 
OS_CurrentProcessDirectory 
OS_CurrentWorkingDirectory 
XPCOM_CurrentProcessComponentDirectory 
XPCOM_CurrentProcessComponentRegistry 
Moz_BinDirectory 
Mac_SystemDirectory 
Mac_DesktopDirectory 
Mac_TrashDirectory 
Mac_StartupDirectory 
Mac_ShutdownDirectory 
Mac_AppleMenuDirectory 
Mac_ControlPanelDirectory 
Mac_ExtensionDirectory 
Mac_FontsDirectory 
Mac_ClassicPreferencesDirectory 
Mac_DocumentsDirectory 
Mac_InternetSearchDirectory 
Mac_DefaultDownloadDirectory 
Mac_UserLibDirectory 
Mac_PreferencesDirectory 
Win_SystemDirectory 
Win_WindowsDirectory 
Win_HomeDirectory 
Win_Desktop 
Win_Programs 
Win_Controls 
Win_Printers 
Win_Personal 
Win_Favorites 
Win_Startup 
Win_Recent 
Win_Sendto 
Win_Bitbucket 
Win_Startmenu 
Win_Desktopdirectory 
Win_Drives 
Win_Network 
Win_Nethood 
Win_Fonts 
Win_Templates 
Win_Common_Startmenu 
Win_Common_Programs 
Win_Common_Startup 
Win_Common_Desktopdirectory 
Win_Appdata 
Win_Printhood 
Win_Cookies 
Unix_LocalDirectory 
Unix_LibDirectory 
Unix_HomeDirectory 
BeOS_SettingsDirectory 
BeOS_HomeDirectory 
BeOS_DesktopDirectory 
BeOS_SystemDirectory 
OS2_SystemDirectory 
OS2_OS2Directory 
OS2_DesktopDirectory 
OS2_HomeDirectory 

Definition at line 58 of file nsSpecialSystemDirectory.h.

        {
            OS_DriveDirectory         =   1
        ,   OS_TemporaryDirectory     =   2
        ,   OS_CurrentProcessDirectory=   3
        ,   OS_CurrentWorkingDirectory=   4

        ,   XPCOM_CurrentProcessComponentDirectory=   5
        ,   XPCOM_CurrentProcessComponentRegistry=   6            
          
        ,   Moz_BinDirectory          = 10

        ,   Mac_SystemDirectory       =   101
        ,   Mac_DesktopDirectory      =   102
        ,   Mac_TrashDirectory        =   103
        ,   Mac_StartupDirectory      =   104
        ,   Mac_ShutdownDirectory     =   105
        ,   Mac_AppleMenuDirectory    =   106
        ,   Mac_ControlPanelDirectory =   107
        ,   Mac_ExtensionDirectory    =   108
        ,   Mac_FontsDirectory        =   109
        ,   Mac_ClassicPreferencesDirectory  =   110
        ,   Mac_DocumentsDirectory    =   111
        ,   Mac_InternetSearchDirectory    =   112
        ,   Mac_DefaultDownloadDirectory   =   113
        ,   Mac_UserLibDirectory      =   114
        ,   Mac_PreferencesDirectory  =   115
        
        ,   Win_SystemDirectory       =   201
        ,   Win_WindowsDirectory      =   202

        ,   Win_HomeDirectory         =   203
        ,   Win_Desktop               =   204    
        ,   Win_Programs              =   205    
        ,   Win_Controls              =   206    
        ,   Win_Printers              =   207    
        ,   Win_Personal              =   208    
        ,   Win_Favorites             =   209    
        ,   Win_Startup               =   210    
        ,   Win_Recent                =   211    
        ,   Win_Sendto                =   212    
        ,   Win_Bitbucket             =   213    
        ,   Win_Startmenu             =   214    
        ,   Win_Desktopdirectory      =   215    
        ,   Win_Drives                =   216    
        ,   Win_Network               =   217    
        ,   Win_Nethood               =   218    
        ,   Win_Fonts                 =   219    
        ,   Win_Templates             =   220    
        ,   Win_Common_Startmenu      =   221    
        ,   Win_Common_Programs       =   222    
        ,   Win_Common_Startup        =   223   
        ,   Win_Common_Desktopdirectory = 224   
        ,   Win_Appdata               =   225    
        ,   Win_Printhood             =   226    
        ,   Win_Cookies               =   227
         
        ,   Unix_LocalDirectory       =   301
        ,   Unix_LibDirectory         =   302
        ,   Unix_HomeDirectory        =   303

        ,   BeOS_SettingsDirectory    =   401
        ,   BeOS_HomeDirectory        =   402
        ,   BeOS_DesktopDirectory     =   403
        ,   BeOS_SystemDirectory      =   404

        ,   OS2_SystemDirectory       =   501
        ,   OS2_OS2Directory          =   502
        ,   OS2_DesktopDirectory      =   503
        ,   OS2_HomeDirectory         =   504
        };

Constructor & Destructor Documentation

virtual NS_COM_OBSOLETE::~nsFileSpec ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsFileURL ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsFilePath ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsNSPRPath ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsInputStream ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsOutputStream ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsFileClient ( ) [inline, virtual]

Definition at line 340 of file nsFileStream.h.

{}
virtual NS_COM_OBSOLETE::~nsRandomAccessStoreClient ( ) [inline, virtual]

Definition at line 388 of file nsFileStream.h.

{}
virtual NS_COM_OBSOLETE::~nsInputFileStream ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsOutputFileStream ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsFileSpec ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsFileURL ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsFilePath ( ) [virtual]
virtual NS_COM_OBSOLETE::~nsNSPRPath ( ) [virtual]

Member Function Documentation

virtual void NS_COM_OBSOLETE::abort ( ) [virtual]
void nsIFileSpec::appendRelativeUnixPath ( in string  relativePath) [inherited]
void NS_COM_OBSOLETE::AssignFrom ( nsISupports *  stream) [protected]

Here is the caller graph for this function:

void NS_COM_OBSOLETE::AssignFrom ( nsISupports *  stream) [protected]
void NS_COM_OBSOLETE::Clear ( ) [protected]
void NS_COM_OBSOLETE::Clear ( ) [protected]

Definition at line 192 of file nsFileStream.h.

                                      {
                                   NS_ASSERTION(mInputStream, "mInputStream is null!");
                                   if (mInputStream) {
                                          return mInputStream->Close();                        
                                   }
                    return NS_OK;
                                      }

Here is the caller graph for this function:

Definition at line 260 of file nsFileStream.h.

                                      {
                                          if (mOutputStream)
                                            return mOutputStream->Close();
                                          return NS_OK;
                                      }
void nsIFileSpec::closeStream ( ) [inherited]
void nsIFileSpec::copyToDir ( [const ] in nsIFileSpec  newParentDir) [inherited]
nsresult NS_COM_OBSOLETE::CopyToDir ( const nsFileSpec inNewParentDirectory) const
nsresult NS_COM_OBSOLETE::CopyToDir ( const nsFileSpec inNewParentDirectory) const
NS_DECL_ISUPPORTS static NS_DECL_NSIFILESPEC NS_METHOD NS_COM_OBSOLETE::Create ( nsISupports *  outer,
const nsIID aIID,
void **  aIFileSpec 
) [static]
static NS_METHOD NS_COM_OBSOLETE::Create ( nsISupports *  outer,
const nsIID aIID,
void **  aIFileSpec 
) [static]
void nsIFileSpec::createDir ( ) [inherited]
void NS_COM_OBSOLETE::CreateDir ( int  mode = 0775) [inline]

Definition at line 485 of file nsFileSpec.h.

Here is the call graph for this function:

void NS_COM_OBSOLETE::CreateDir ( int  mode = 0775) [inline]

Definition at line 485 of file nsIFileSpec.idl.

Here is the caller graph for this function:

void nsIFileSpec::delete ( in boolean  recursive) [inherited]
void NS_COM_OBSOLETE::Delete ( PRBool  inRecursive) const
void NS_COM_OBSOLETE::Delete ( PRBool  inRecursive) const
void nsIFileSpec::endLine ( ) [inherited]
boolean nsIFileSpec::eof ( ) [inherited]
PRBool NS_COM_OBSOLETE::eof ( ) const [inline]

Definition at line 190 of file nsFileStream.h.

{ return get_at_eof(); }

Here is the call graph for this function:

boolean nsIFileSpec::equals ( in nsIFileSpec  spec) [inherited]
void nsIFileSpec::error ( ) [inherited]
nsresult NS_COM_OBSOLETE::error ( ) const [inline]

Definition at line 317 of file nsFileStream.h.

                                      {
                                          return mResult;
                                      }

Here is the caller graph for this function:

nsresult NS_COM_OBSOLETE::Error ( ) const [inline]

Definition at line 398 of file nsFileSpec.h.

                                {
#if !defined(XP_MAC)
                                    if (mPath.IsEmpty() && NS_SUCCEEDED(mError)) 
                                        ((nsFileSpec*)this)->mError = NS_ERROR_NOT_INITIALIZED; 
#endif 
                                    return mError;
                                }

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_COM_OBSOLETE::Error ( ) const [inline]

Definition at line 398 of file nsIFileSpec.idl.

void nsIFileSpec::execute ( [const ] in string  args) [inherited]
nsresult NS_COM_OBSOLETE::Execute ( const char *  args) const
nsresult NS_COM_OBSOLETE::Execute ( const char *  args) const
boolean nsIFileSpec::exists ( ) [inherited]
PRBool NS_COM_OBSOLETE::Exists ( ) const [inline]

Definition at line 706 of file nsIFileSpec.idl.

PRBool NS_COM_OBSOLETE::Exists ( ) const [inline]

Definition at line 706 of file nsFileSpec.h.

{ return mExists; }
boolean nsIFileSpec::failed ( ) [inherited]
PRBool NS_COM_OBSOLETE::failed ( ) const [inline]

Definition at line 313 of file nsFileStream.h.

                                      {
                                          return NS_FAILED(mResult);
                                      }
PRBool NS_COM_OBSOLETE::Failed ( ) const [inline]

Definition at line 406 of file nsFileSpec.h.

{ return (PRBool)NS_FAILED(Error()); }

Here is the call graph for this function:

PRBool NS_COM_OBSOLETE::Failed ( ) const [inline]

Definition at line 406 of file nsIFileSpec.idl.

virtual nsresult NS_COM_OBSOLETE::flush ( ) [virtual]

Implements nsIFileSpec.

virtual nsresult NS_COM_OBSOLETE::flush ( ) [virtual]

Implements nsIFileSpec.

void nsIFileSpec::fromFileSpec ( [const ] in nsIFileSpec  original) [inherited]
virtual PRBool NS_COM_OBSOLETE::get_at_eof ( ) const [inline, protected, virtual]

Definition at line 220 of file nsFileStream.h.

                                      {
                                          return mEOF;
                                      }

Here is the caller graph for this function:

virtual PRBool NS_COM_OBSOLETE::get_at_eof ( ) const [inline, protected, virtual]

Definition at line 412 of file nsFileStream.h.

                                      {
                                          PRBool result = PR_TRUE;
                                          if (mStore)
                                              mStore->GetAtEOF(&result);
                                          return result;
                                      }
virtual PRBool NS_COM_OBSOLETE::get_at_eof ( ) const [inline, protected, virtual]

Definition at line 468 of file nsFileStream.h.

Here is the call graph for this function:

const char* NS_COM_OBSOLETE::GetAsString ( ) const [inline]

Definition at line 559 of file nsIFileSpec.idl.

const char* NS_COM_OBSOLETE::GetAsString ( ) const [inline]

Definition at line 559 of file nsFileSpec.h.

{ return (const char*)mURL; }

Here is the caller graph for this function:

Definition at line 186 of file nsFileStream.h.

                                      {
                                          return mInputStream;
                                      }

Definition at line 256 of file nsFileStream.h.

                                      {
                                          return mOutputStream;
                                      }

Here is the caller graph for this function:

const char* NS_COM_OBSOLETE::GetNativePathCString ( ) const [inline]

Definition at line 360 of file nsFileSpec.h.

{ return GetCString(); }

Here is the call graph for this function:

const char* NS_COM_OBSOLETE::GetNativePathCString ( ) const [inline]

Definition at line 360 of file nsIFileSpec.idl.

const char* NS_COM_OBSOLETE::GetURLString ( ) const [inline]

Definition at line 557 of file nsIFileSpec.idl.

const char* NS_COM_OBSOLETE::GetURLString ( ) const [inline]

Definition at line 557 of file nsFileSpec.h.

{ return (const char*)mURL; }
void nsIDirectoryIterator::init ( in nsIFileSpec  parent,
in boolean  resolveSymlink 
) [inherited]
PRBool NS_COM_OBSOLETE::is_file ( ) const [inline]

Definition at line 357 of file nsFileStream.h.

                                      {
                                          return mFile ? PR_TRUE : PR_FALSE;
                                      }
PRBool NS_COM_OBSOLETE::is_open ( ) const [inline]

Definition at line 350 of file nsFileStream.h.

                                      {
                                          PRBool result = PR_FALSE;
                                          if (mFile)
                                              mFile->GetIsOpen(&result);
                                          return result;
                                      }
boolean nsIFileSpec::isChildOf ( in nsIFileSpec  possibleParent) [inherited]
boolean nsIFileSpec::isFile ( ) [inherited]
boolean nsIFileSpec::isHidden ( ) [inherited]
boolean nsIFileSpec::isValid ( ) [inherited]
static nsresult NS_COM_OBSOLETE::MakeInterface ( const nsFileSpec inSpec,
nsIFileSpec **  outSpec 
) [static]
void nsIFileSpec::makeUnique ( ) [inherited]
void NS_COM_OBSOLETE::MakeUnique ( const char *  inSuggestedLeafName,
PRBool  inCreateFile = PR_TRUE 
)
void NS_COM_OBSOLETE::MakeUnique ( const char *  inSuggestedLeafName,
PRBool  inCreateFile = PR_TRUE 
)
void nsIFileSpec::makeUniqueWithSuggestedName ( in string  suggestedName) [inherited]
boolean nsIFileSpec::modDateChanged ( in unsigned long  oldStamp) [inherited]
PRBool NS_COM_OBSOLETE::ModDateChanged ( const TimeStamp oldStamp) const [inline]

Definition at line 440 of file nsFileSpec.h.

                                {
                                    TimeStamp newStamp;
                                    GetModDate(newStamp);
                                    return newStamp != oldStamp;
                                }

Here is the call graph for this function:

PRBool NS_COM_OBSOLETE::ModDateChanged ( const TimeStamp oldStamp) const [inline]

Definition at line 440 of file nsIFileSpec.idl.

void nsIFileSpec::moveToDir ( [const ] in nsIFileSpec  newParentDir) [inherited]
nsresult NS_COM_OBSOLETE::MoveToDir ( const nsFileSpec inNewParentDirectory)
nsresult NS_COM_OBSOLETE::MoveToDir ( const nsFileSpec inNewParentDirectory)
NS_COM_OBSOLETE::nsDirectoryIterator ( const nsFileSpec parent,
PRBool  resoveSymLinks 
)
NS_COM_OBSOLETE::nsDirectoryIterator ( const nsFileSpec parent,
PRBool  resoveSymLinks 
)

Definition at line 309 of file nsFileStream.h.

                                      :   mResult(NS_OK)
                                      {
                                      }

Definition at line 336 of file nsFileStream.h.

                                      :   mFile(do_QueryInterface(inFile))
                                      {
                                      }
NS_COM_OBSOLETE::nsFileClient ( ) [inline, protected]

Definition at line 364 of file nsFileStream.h.

                                      {
                                      }
NS_EXPLICIT NS_COM_OBSOLETE::nsFilePath ( const char *  inUnixPathString,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFilePath ( const char *  inUnixPathString,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFilePath ( const nsString inUnixPathString,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFilePath ( const nsString inUnixPathString,
PRBool  inCreateDirs = PR_FALSE 
)

Here is the caller graph for this function:

NS_EXPLICIT NS_COM_OBSOLETE::nsFileSpec ( const char *  inNativePath,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFileSpec ( const char *  inNativePath,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFileSpec ( const nsString inNativePath,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFileSpec ( const nsString inNativePath,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFileURL ( const char *  inURLString,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFileURL ( const char *  inURLString,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFileURL ( const nsString inURLString,
PRBool  inCreateDirs = PR_FALSE 
)
NS_EXPLICIT NS_COM_OBSOLETE::nsFileURL ( const nsString inURLString,
PRBool  inCreateDirs = PR_FALSE 
)

Definition at line 520 of file nsFileStream.h.

NS_COM_OBSOLETE::nsInputFileStream ( const nsFileSpec inFile,
int  nsprMode = kDefaultMode,
PRIntn  accessMode = 00666 
)

Definition at line 180 of file nsFileStream.h.

NS_COM_OBSOLETE::nsInputStringStream ( const char *  stringToRead)

Definition at line 755 of file nsIFileSpec.idl.

Definition at line 755 of file nsFileSpec.h.

Definition at line 757 of file nsIFileSpec.idl.

Definition at line 757 of file nsFileSpec.h.

Definition at line 759 of file nsIFileSpec.idl.

Definition at line 759 of file nsFileSpec.h.

                                     : mFilePath(inUnixPath), modifiedNSPRPath(nsnull) {}

Definition at line 620 of file nsFileStream.h.

{}

Definition at line 621 of file nsFileStream.h.

                                      {
                                          AssignFrom(inStream);
                                      }

Here is the call graph for this function:

NS_COM_OBSOLETE::nsOutputFileStream ( const nsFileSpec inFile,
int  nsprMode = kDefaultMode,
PRIntn  accessMode = 00666 
) [inline]

Definition at line 625 of file nsFileStream.h.

                                      {
                                          nsISupports* stream;
                                          if (NS_FAILED(NS_NewIOFileStream(
                                              &stream,
                                              inFile, nsprMode, accessMode)))
                                              return;
                                          AssignFrom(stream);
                                          NS_RELEASE(stream);
                                      }

Here is the call graph for this function:

Definition at line 249 of file nsFileStream.h.

{}

Definition at line 250 of file nsFileStream.h.

Definition at line 445 of file nsFileStream.h.

Definition at line 463 of file nsFileStream.h.

Definition at line 570 of file nsFileStream.h.

Definition at line 597 of file nsFileStream.h.

Definition at line 381 of file nsFileStream.h.

                                      {
                                      }

Definition at line 384 of file nsFileStream.h.

                                      :   mStore(do_QueryInterface(inStore))
                                      {
                                      }
void NS_COM_OBSOLETE::open ( const nsFileSpec inFile,
int  nsprMode,
PRIntn  accessMode 
) [inline]

Definition at line 342 of file nsFileStream.h.

                                      {
                                          if (mFile)
                                              mResult = mFile->Open(inFile, nsprMode, accessMode);
                                      }
void NS_COM_OBSOLETE::Open ( const nsFileSpec inFile,
int  nsprMode = kDefaultMode,
PRIntn  accessMode = 00666 
) [inline]

Definition at line 533 of file nsFileStream.h.

                                      {
                                          if (mFile)
                                              mFile->Open(inFile, nsprMode, accessMode);
                                      }
NS_COM_OBSOLETE::operator const char * ( ) const [inline]

Definition at line 356 of file nsIFileSpec.idl.

NS_COM_OBSOLETE::operator const char * ( ) const [inline]

Definition at line 356 of file nsFileSpec.h.

{ return GetCString(); }

Here is the call graph for this function:

NS_COM_OBSOLETE::operator const char * ( ) const [inline]

Definition at line 556 of file nsIFileSpec.idl.

NS_COM_OBSOLETE::operator const char * ( ) const [inline]

Definition at line 556 of file nsFileSpec.h.

{ return (const char*)mURL; } // deprecated.
NS_COM_OBSOLETE::operator const char * ( ) const [inline]

Definition at line 598 of file nsFileSpec.h.

{ return mPath; }
NS_COM_OBSOLETE::operator const char * ( ) const [inline]

Definition at line 598 of file nsIFileSpec.idl.

NS_COM_OBSOLETE::operator const char * ( ) const
NS_COM_OBSOLETE::operator const char * ( ) const
NS_COM_OBSOLETE::operator nsFileSpec & ( ) [inline]

Definition at line 711 of file nsIFileSpec.idl.

NS_COM_OBSOLETE::operator nsFileSpec & ( ) [inline]

Definition at line 711 of file nsFileSpec.h.

{ return mCurrent; }
PRBool NS_COM_OBSOLETE::operator!= ( const nsFileSpec inOther) const
PRBool NS_COM_OBSOLETE::operator!= ( const nsFileSpec inOther) const
nsFileSpec NS_COM_OBSOLETE::operator+ ( const char *  inRelativeUnixPath) const
nsFileSpec NS_COM_OBSOLETE::operator+ ( const char *  inRelativeUnixPath) const
nsFileURL NS_COM_OBSOLETE::operator+ ( const char *  inRelativeUnixPath) const
nsFileURL NS_COM_OBSOLETE::operator+ ( const char *  inRelativeUnixPath) const
nsFilePath NS_COM_OBSOLETE::operator+ ( const char *  inRelativeUnixPath) const
nsFilePath NS_COM_OBSOLETE::operator+ ( const char *  inRelativeUnixPath) const
nsDirectoryIterator& NS_COM_OBSOLETE::operator++ ( )
nsDirectoryIterator& NS_COM_OBSOLETE::operator++ ( )
nsDirectoryIterator& NS_COM_OBSOLETE::operator++ ( int  ) [inline]

Definition at line 708 of file nsIFileSpec.idl.

nsDirectoryIterator& NS_COM_OBSOLETE::operator++ ( int  ) [inline]

Definition at line 708 of file nsFileSpec.h.

{ return ++(*this); } // post-increment.
void NS_COM_OBSOLETE::operator+= ( const char *  inRelativeUnixPath)
void NS_COM_OBSOLETE::operator+= ( const char *  inRelativeUnixPath)
void NS_COM_OBSOLETE::operator+= ( const char *  inRelativeUnixPath)
void NS_COM_OBSOLETE::operator+= ( const char *  inRelativeUnixPath)
void NS_COM_OBSOLETE::operator+= ( const char *  inRelativeUnixPath)
void NS_COM_OBSOLETE::operator+= ( const char *  inRelativeUnixPath)
nsDirectoryIterator& NS_COM_OBSOLETE::operator-- ( )
nsDirectoryIterator& NS_COM_OBSOLETE::operator-- ( )
nsDirectoryIterator& NS_COM_OBSOLETE::operator-- ( int  ) [inline]

Definition at line 710 of file nsIFileSpec.idl.

nsDirectoryIterator& NS_COM_OBSOLETE::operator-- ( int  ) [inline]

Definition at line 710 of file nsFileSpec.h.

{ return --(*this); } // post-decrement.
nsOutputStream& NS_COM_OBSOLETE::operator<< ( const char *  buf)

Here is the caller graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( char  ch)
nsOutputStream& NS_COM_OBSOLETE::operator<< ( short  val)
nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned short  val)
nsOutputStream& NS_COM_OBSOLETE::operator<< ( long  val)
nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned long  val)
nsOutputStream& NS_COM_OBSOLETE::operator<< ( int  val)
nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned int  val)
nsOutputStream& NS_COM_OBSOLETE::operator<< ( nsOutputStream &(*)(nsOutputStream &)  pf) [inline]

Definition at line 283 of file nsFileStream.h.

                                      {
                                           return pf(*this);
                                      }
nsOutputStream& NS_COM_OBSOLETE::operator<< ( const char *  buf) [inline]

Definition at line 577 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( char  ch) [inline]

Definition at line 579 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( short  val) [inline]

Definition at line 581 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned short  val) [inline]

Definition at line 583 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( long  val) [inline]

Definition at line 585 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned long  val) [inline]

Definition at line 587 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( int  val) [inline]

Definition at line 589 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned int  val) [inline]

Definition at line 591 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( nsOutputStream &(*)(nsOutputStream &)  pf) [inline]

Definition at line 593 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( const char *  buf) [inline]

Definition at line 645 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( char  ch) [inline]

Definition at line 647 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( short  val) [inline]

Definition at line 649 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned short  val) [inline]

Definition at line 651 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( long  val) [inline]

Definition at line 653 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned long  val) [inline]

Definition at line 655 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( int  val) [inline]

Definition at line 657 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( unsigned int  val) [inline]

Definition at line 659 of file nsFileStream.h.

Here is the call graph for this function:

nsOutputStream& NS_COM_OBSOLETE::operator<< ( nsOutputStream &(*)(nsOutputStream &)  pf) [inline]

Definition at line 661 of file nsFileStream.h.

Here is the call graph for this function:

void NS_COM_OBSOLETE::operator= ( SystemDirectories  aSystemSystemDirectory)
void NS_COM_OBSOLETE::operator= ( const char *  inPath) [inline, private]

Definition at line 157 of file nsSpecialSystemDirectory.h.

{ *(nsFileSpec*)this = inPath; }

Here is the call graph for this function:

nsInputStream& NS_COM_OBSOLETE::operator= ( const nsInputStream rhs) [private]
nsOutputStream& NS_COM_OBSOLETE::operator= ( const nsOutputStream rhs) [private]
void NS_COM_OBSOLETE::operator= ( const char *  inNativePath)
void NS_COM_OBSOLETE::operator= ( const char *  inNativePath)
void NS_COM_OBSOLETE::operator= ( const nsFilePath inPath)
void NS_COM_OBSOLETE::operator= ( const nsFilePath inPath)
void NS_COM_OBSOLETE::operator= ( const nsFileURL inURL)
void NS_COM_OBSOLETE::operator= ( const nsFileURL inURL)
void NS_COM_OBSOLETE::operator= ( const nsFileSpec inOther)
void NS_COM_OBSOLETE::operator= ( const nsFileSpec inOther)
void NS_COM_OBSOLETE::operator= ( const nsPersistentFileDescriptor inOther)
void NS_COM_OBSOLETE::operator= ( const nsPersistentFileDescriptor inOther)
nsRandomAccessStoreClient& NS_COM_OBSOLETE::operator= ( const nsRandomAccessStoreClient rhs) [private]
nsRandomAccessInputStream& NS_COM_OBSOLETE::operator= ( const nsRandomAccessInputStream rhs) [private]
nsInputStringStream& NS_COM_OBSOLETE::operator= ( const nsInputStringStream rhs) [private]
void NS_COM_OBSOLETE::operator= ( const nsFileURL inURL)
void NS_COM_OBSOLETE::operator= ( const nsFileURL inURL)
void NS_COM_OBSOLETE::operator= ( const char *  inURLString)
void NS_COM_OBSOLETE::operator= ( const char *  inURLString)
void NS_COM_OBSOLETE::operator= ( const nsString inURLString) [inline]

Definition at line 547 of file nsIFileSpec.idl.

void NS_COM_OBSOLETE::operator= ( const nsString inURLString) [inline]

Definition at line 547 of file nsFileSpec.h.

                                {
                                    *this = NS_LossyConvertUCS2toASCII(inURLString).get();
                                }

Here is the call graph for this function:

void NS_COM_OBSOLETE::operator= ( const nsFilePath inOther)
void NS_COM_OBSOLETE::operator= ( const nsFilePath inOther)
void NS_COM_OBSOLETE::operator= ( const nsFileSpec inOther)
void NS_COM_OBSOLETE::operator= ( const nsFileSpec inOther)
nsInputFileStream& NS_COM_OBSOLETE::operator= ( const nsInputFileStream rhs) [private]
void NS_COM_OBSOLETE::operator= ( const nsFilePath inPath)
void NS_COM_OBSOLETE::operator= ( const nsFilePath inPath)
void NS_COM_OBSOLETE::operator= ( const char *  inUnixPathString)
void NS_COM_OBSOLETE::operator= ( const char *  inUnixPathString)
void NS_COM_OBSOLETE::operator= ( const nsString inUnixPathString) [inline]

Definition at line 605 of file nsIFileSpec.idl.

void NS_COM_OBSOLETE::operator= ( const nsString inUnixPathString) [inline]

Definition at line 605 of file nsFileSpec.h.

                                {
                                    *this = NS_LossyConvertUCS2toASCII(inUnixPathString).get();
                                }

Here is the call graph for this function:

nsRandomAccessOutputStream& NS_COM_OBSOLETE::operator= ( const nsRandomAccessOutputStream rhs) [private]
void NS_COM_OBSOLETE::operator= ( const nsFileURL inURL)
void NS_COM_OBSOLETE::operator= ( const nsFileURL inURL)
void NS_COM_OBSOLETE::operator= ( const nsFileSpec inOther)
void NS_COM_OBSOLETE::operator= ( const nsFileSpec inOther)
nsOutputFileStream& NS_COM_OBSOLETE::operator= ( const nsOutputFileStream rhs) [private]
PRBool NS_COM_OBSOLETE::operator== ( const nsFileSpec inOther) const
PRBool NS_COM_OBSOLETE::operator== ( const nsFileSpec inOther) const
nsInputStream& NS_COM_OBSOLETE::operator>> ( char &  ch)

Here is the caller graph for this function:

nsInputStream& NS_COM_OBSOLETE::operator>> ( nsInputStream &(*)(nsInputStream &)  pf) [inline]

Definition at line 207 of file nsFileStream.h.

                                      {
                                           return pf(*this);
                                      }
nsInputStream& NS_COM_OBSOLETE::operator>> ( char *  buf) [private]
nsInputStream& NS_COM_OBSOLETE::operator>> ( char &  ch) [inline]

Definition at line 457 of file nsFileStream.h.

Here is the call graph for this function:

nsInputStream& NS_COM_OBSOLETE::operator>> ( nsInputStream &(*)(nsInputStream &)  pf) [inline]

Definition at line 459 of file nsFileStream.h.

                                         { return nsInputStream::operator >>(pf); }

Here is the call graph for this function:

nsInputStream& NS_COM_OBSOLETE::operator>> ( char &  ch) [inline]

Definition at line 496 of file nsFileStream.h.

Here is the call graph for this function:

nsInputStream& NS_COM_OBSOLETE::operator>> ( nsInputStream &(*)(nsInputStream &)  pf) [inline]

Definition at line 498 of file nsFileStream.h.

                                         { return nsInputStream::operator >>(pf); }

Here is the call graph for this function:

nsInputStream& NS_COM_OBSOLETE::operator>> ( char &  ch) [inline]

Definition at line 543 of file nsFileStream.h.

Here is the call graph for this function:

nsInputStream& NS_COM_OBSOLETE::operator>> ( nsInputStream &(*)(nsInputStream &)  pf) [inline]

Definition at line 545 of file nsFileStream.h.

                                         { return nsInputStream::operator >>(pf); }

Here is the call graph for this function:

long nsIFileSpec::read ( inout string  buffer,
in long  requestedCount 
) [inherited]
void nsIFileSpec::readLine ( inout string  line,
in long  bufferSize,
out boolean  wasTruncated 
) [inherited]
PRBool NS_COM_OBSOLETE::readline ( char *  s,
PRInt32  n 
)
void nsIFileSpec::rename ( [const ] in string  newLeafName) [inherited]
nsresult NS_COM_OBSOLETE::Rename ( const char *  inNewName)
nsresult NS_COM_OBSOLETE::Rename ( const char *  inNewName)
void nsIFileSpec::seek ( in long  offset) [inherited]

Here is the caller graph for this function:

void NS_COM_OBSOLETE::seek ( PRInt64  offset) [inline]

Definition at line 390 of file nsFileStream.h.

                                      {
                                          seek(PR_SEEK_SET, offset);
                                      }
void NS_COM_OBSOLETE::seek ( PRSeekWhence  whence,
PRInt64  offset 
) [inline]

Definition at line 395 of file nsFileStream.h.

                                      {
                                          set_at_eof(PR_FALSE);
                                          if (mStore)
                                              mResult = mStore->Seek(whence, offset);
                                      }

Here is the call graph for this function:

static void NS_COM_OBSOLETE::Set ( SystemDirectories  dirToSet,
nsFileSpec dirSpec 
) [static]
Parameters:
dirToSet, the value to set for this safeLocation
dirSpec, the directory specified as a filespec
virtual void NS_COM_OBSOLETE::set_at_eof ( PRBool  atEnd) [inline, protected, virtual]

Definition at line 216 of file nsFileStream.h.

                                      {
                                         mEOF = atEnd;
                                      }

Here is the caller graph for this function:

virtual void NS_COM_OBSOLETE::set_at_eof ( PRBool  atEnd) [inline, protected, virtual]

Definition at line 420 of file nsFileStream.h.

                                      {
                                          if (mStore)
                                              mStore->SetAtEOF(atEnd);
                                      }
virtual void NS_COM_OBSOLETE::set_at_eof ( PRBool  atEnd) [inline, protected, virtual]

Definition at line 473 of file nsFileStream.h.

Here is the call graph for this function:

void nsIFileSpec::setFromFileSpec ( [const ] in nsFileSpecRef  spec) [inherited]
void NS_COM_OBSOLETE::SetLeafName ( const char *  inLeafName)
void NS_COM_OBSOLETE::SetLeafName ( const char *  inLeafName)

Definition at line 713 of file nsIFileSpec.idl.

Definition at line 713 of file nsFileSpec.h.

{ return mCurrent; }

Implements nsIFileSpec.

Definition at line 401 of file nsFileStream.h.

                                      {
                                          PRInt64 result;
                                          LL_I2L(result, -1);
                                          if (mStore)
                                              mResult = mStore->Tell(&result);
                                          return result;
                                      }
void nsIFileSpec::touch ( ) [inherited]
void nsIFileSpec::truncate ( in long  aNewLength) [inherited]
PRBool NS_COM_OBSOLETE::Valid ( ) const [inline]

Definition at line 397 of file nsIFileSpec.idl.

PRBool NS_COM_OBSOLETE::Valid ( ) const [inline]

Definition at line 397 of file nsFileSpec.h.

{ return NS_SUCCEEDED(Error()); }

Here is the call graph for this function:

long nsIFileSpec::write ( in string  data,
in long  requestedCount 
) [inherited]

Check eof() before each call.

CAUTION: false result only indicates line was truncated to fit buffer, or an error occurred (OTHER THAN eof).


Friends And Related Function Documentation

Definition at line 510 of file nsFileSpec.h.

nsFilePath [friend]

Definition at line 508 of file nsFileSpec.h.

nsFileURL [friend]

Definition at line 509 of file nsFileSpec.h.


Member Data Documentation

Definition at line 180 of file nsIFileSpec.idl.

Definition at line 123 of file nsIFileSpec.idl.

Definition at line 104 of file nsIFileSpec.idl.

readonly attribute unsigned long nsIFileSpec::fileSize [inherited]

Definition at line 122 of file nsIFileSpec.idl.

Definition at line 101 of file nsIFileSpec.idl.

Definition at line 98 of file nsIFileSpec.idl.

Definition at line 95 of file nsIFileSpec.idl.

Definition at line 727 of file nsFileSpec.h.

Definition at line 113 of file nsFileSpecImpl.h.

Definition at line 235 of file nsFileStream.h.

Definition at line 515 of file nsFileSpec.h.

Definition at line 728 of file nsFileSpec.h.

Definition at line 369 of file nsFileStream.h.

Definition at line 559 of file nsFileStream.h.

Definition at line 675 of file nsFileStream.h.

Definition at line 776 of file nsFileSpec.h.

Definition at line 75 of file nsFileSpecImpl.h.

Definition at line 76 of file nsFileSpecImpl.h.

Definition at line 234 of file nsFileStream.h.

readonly attribute unsigned long nsIFileSpec::modDate [inherited]

Definition at line 112 of file nsIFileSpec.idl.

Definition at line 777 of file nsFileSpec.h.

Definition at line 77 of file nsFileSpecImpl.h.

Definition at line 298 of file nsFileStream.h.

Definition at line 514 of file nsFileSpec.h.

Definition at line 729 of file nsFileSpec.h.

Definition at line 324 of file nsFileStream.h.

Definition at line 434 of file nsFileStream.h.

Definition at line 573 of file nsFileSpec.h.

Definition at line 294 of file nsFileStream.h.

Definition at line 86 of file nsIFileSpec.idl.

readonly attribute string nsIFileSpec::NSPRPath [inherited]

Definition at line 88 of file nsIFileSpec.idl.

Definition at line 99 of file nsIFileSpec.idl.

Definition at line 97 of file nsIFileSpec.idl.

Definition at line 85 of file nsIFileSpec.idl.

attribute AString nsIFileSpec::unicodePath [inherited]

Definition at line 160 of file nsIFileSpec.idl.

Definition at line 84 of file nsIFileSpec.idl.

Definition at line 83 of file nsIFileSpec.idl.


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