Back to index

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

A string set that takes up minimal size when there are 0 or 1 strings in the set. More...

#include <nsCategoryCache.h>

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

List of all members.

Classes

struct  Block
struct  BlockStoreNode
struct  Bucket
struct  FreeEntry
struct  Impl

Public Types

enum  {
  TAB = '\t', LF = '\n', VTAB = '\v', FF = '\f',
  CR = '\r'
}
enum  Ownership {
  NEVER_OWN, OWN_CLONE, OWN, NEVER_OWN,
  OWN_CLONE, OWN
}
enum  Ownership {
  NEVER_OWN, OWN_CLONE, OWN, NEVER_OWN,
  OWN_CLONE, OWN
}
enum  { NOT_FOUND = -1 }
enum  ELinebreakType {
  eLinebreakAny, eLinebreakPlatform, eLinebreakContent, eLinebreakNet,
  eLinebreakMac, eLinebreakUnix, eLinebreakWindows
}
enum  { kIgnoreLen = -1 }
typedef PRBool(* PR_CALLBACK )(nsHashKey *aKey, void *aData, void *aClosure)
typedef char char_type
typedef CharT char_type
typedef CharT char_type
typedef nsCString self_type
typedef nsACString abstract_string_type
typedef PRUint32 size_type
typedef PRUint32 index_type

Public Member Functions

 nsCategoryObserver (const char *aCategory, nsCategoryListener *aCategoryListener)
 ~nsCategoryObserver ()
void ListenerDied ()
 nsCreateInstanceFromCategory (const char *aCategory, const char *aEntry, nsISupports *aOuter, nsresult *aErrorPtr)
virtual nsresult NS_FASTCALL operator() (const nsIID &aIID, void **aInstancePtr) const
 nsQueryArrayElementAt (nsIArray *aArray, PRUint32 aIndex, nsresult *aErrorPtr)
virtual nsresult NS_FASTCALL operator() (const nsIID &aIID, void **) const
 nsCheapStringSet ()
 ~nsCheapStringSet ()
nsresult Put (const nsAString &aVal)
 Put a string into the set.
void Remove (const nsAString &aVal)
 Remove a string from the set.
PRBool Contains (const nsAString &aVal)
 Check if the set contains a particular string.
 nsCheapInt32Set ()
 ~nsCheapInt32Set ()
nsresult Put (PRInt32 aVal)
 Put an int into the set.
void Remove (PRInt32 aVal)
 Remove a int from the set.
PRBool Contains (PRInt32 aVal)
 Check if the set contains a particular int.
PRInt32 Count () const
nsISupports * ObjectAt (PRInt32 aIndex) const
nsISupports * SafeObjectAt (PRInt32 aIndex) const
nsISupports * operator[] (PRInt32 aIndex) const
PRBool SetCapacity (PRUint32 aCapacity)
 nsDeque (nsDequeFunctor *aDeallocator)
 ~nsDeque ()
PRInt32 GetSize () const
 Returns the number of elements currently stored in this deque.
nsDequePush (void *aItem)
 Appends new member at the end of the deque.
nsDequePushFront (void *aItem)
 Inserts new member at the front of the deque.
voidPop ()
 Remove and return the last item in the container.
voidPopFront ()
 Remove and return the first item in the container.
voidPeek ()
 Retrieve the bottom item without removing it.
voidPeekFront ()
 Return topmost item without removing it.
voidObjectAt (int aIndex) const
 Retrieve the i'th member from the deque without removing it.
nsDequeEmpty ()
 Remove all items from container without destroying them.
nsDequeErase ()
 Remove and delete all items from container.
nsDequeIterator Begin () const
 Creates a new iterator, pointing to the first item in the deque.
nsDequeIterator End () const
 Creates a new iterator, pointing to the last item in the deque.
voidLast () const
void ForEach (nsDequeFunctor &aFunctor) const
 Call this method when you want to iterate all the members of the container, passing a functor along to call your code.
const voidFirstThat (nsDequeFunctor &aFunctor) const
 Call this method when you want to iterate all the members of the container, calling the functor you passed with each member.
void SetDeallocator (nsDequeFunctor *aDeallocator)
 nsDequeIterator (const nsDeque &aQueue, int aIndex=0)
 DequeIterator is an object that knows how to iterate (forward and backward) through a Deque.
 nsDequeIterator (const nsDequeIterator &aCopy)
 Create a copy of a DequeIterator.
nsDequeIteratorFirst ()
 Moves iterator to first element in the deque.
nsDequeIteratoroperator= (const nsDequeIterator &aCopy)
 Standard assignment operator for dequeiterator.
PRBool operator!= (nsDequeIterator &aIter)
 preform ! operation against two iterators to test for equivalence (or lack thereof)!
PRBool operator< (nsDequeIterator &aIter)
 Compare two iterators for increasing order.
PRBool operator== (nsDequeIterator &aIter)
 Compare two iterators for equivalence.
PRBool operator>= (nsDequeIterator &aIter)
 Compare two iterators for non strict decreasing order.
voidoperator++ ()
 Pre-increment operator Iterator will advance one index towards the end.
voidoperator++ (int)
 Post-increment operator Iterator will advance one index towards the end.
voidoperator-- ()
 Pre-decrement operator Iterator will advance one index towards the beginning.
voidoperator-- (int)
 Post-decrement operator Iterator will advance one index towards the beginning.
voidGetCurrent ()
 Retrieve the the iterator's notion of current node.
void ForEach (nsDequeFunctor &aFunctor) const
 Call this method when you want to iterate all the members of the container, passing a functor along to call your code.
const voidFirstThat (nsDequeFunctor &aFunctor) const
 Call this method when you want to iterate all the members of the container, calling the functor you passed with each member.
 PLDHashStringEntry (const void *aKey)
 ~PLDHashStringEntry ()
const voidGetKey () const
PRBool MatchEntry (const void *key) const
 PLDHashCStringEntry (const void *aKey)
 ~PLDHashCStringEntry ()
const voidGetKey () const
PRBool MatchEntry (const void *key) const
 PLDHashInt32Entry (const void *aKey)
 ~PLDHashInt32Entry ()
const voidGetKey () const
PRBool MatchEntry (const void *key) const
 PLDHashVoidEntry (const void *aKey)
 ~PLDHashVoidEntry ()
const voidGetKey () const
PRBool MatchEntry (const void *key) const
NS_DECL_ISUPPORTS NS_IMETHOD HasMoreElements (PRBool *aResult)
NS_IMETHOD GetNext (nsISupports **aResult)
 nsArrayEnumerator (nsISupportsArray *aValueArray)
NS_DECL_ISUPPORTS NS_IMETHOD HasMoreElements (PRBool *aResult)
NS_IMETHOD GetNext (nsISupports **aResult)
 nsSingletonEnumerator (nsISupports *aValue)
NS_DECL_ISUPPORTS NS_IMETHOD HasMoreElements (PRBool *aResult)
NS_IMETHOD GetNext (nsISupports **aResult)
 nsUnionEnumerator (nsISimpleEnumerator *firstEnumerator, nsISimpleEnumerator *secondEnumerator)
 nsFixedSizeAllocator ()
 ~nsFixedSizeAllocator ()
nsresult Init (const char *aName, const size_t *aBucketSizes, PRInt32 aNumBuckets, PRInt32 aInitialSize, PRInt32 aAlign=0)
 Initialize the fixed size allocator.
voidAlloc (size_t aSize)
 Allocate a block of memory 'aSize' bytes big.
void Free (void *aPtr, size_t aSize)
 Free a pointer allocated using a fixed-size allocator.
 nsHashPropertyBag ()
virtual ~nsHashPropertyBag ()
nsresult Init ()
virtual ~nsHashKey (void)
virtual PRUint32 HashCode (void) const =0
virtual PRBool Equals (const nsHashKey *aKey) const =0
virtual nsHashKeyClone () const =0
virtual nsresult Write (nsIObjectOutputStream *aStream) const
 nsHashtable (PRUint32 aSize=16, PRBool threadSafe=PR_FALSE)
virtual ~nsHashtable ()
PRInt32 Count (void)
PRBool Exists (nsHashKey *aKey)
voidPut (nsHashKey *aKey, void *aData)
voidGet (nsHashKey *aKey)
voidRemove (nsHashKey *aKey)
nsHashtableClone ()
void Enumerate (nsHashtableEnumFunc aEnumFunc, void *aClosure=NULL)
void Reset ()
void Reset (nsHashtableEnumFunc destroyFunc, void *aClosure=NULL)
 nsHashtable (nsIObjectInputStream *aStream, nsHashtableReadEntryFunc aReadEntryFunc, nsHashtableFreeEntryFunc aFreeEntryFunc, nsresult *aRetVal)
nsresult Write (nsIObjectOutputStream *aStream, nsHashtableWriteDataFunc aWriteDataFunc) const
 nsObjectHashtable (nsHashtableCloneElementFunc cloneElementFun, void *cloneElementClosure, nsHashtableEnumFunc destroyElementFun, void *destroyElementClosure, PRUint32 aSize=16, PRBool threadSafe=PR_FALSE)
 ~nsObjectHashtable ()
nsHashtableClone ()
void Reset ()
PRBool RemoveAndDelete (nsHashKey *aKey)
 nsSupportsHashtable (PRUint32 aSize=16, PRBool threadSafe=PR_FALSE)
 ~nsSupportsHashtable ()
PRInt32 Count (void)
PRBool Exists (nsHashKey *aKey)
PRBool Put (nsHashKey *aKey, nsISupports *aData, nsISupports **value=nsnull)
nsISupports * Get (nsHashKey *aKey)
PRBool Remove (nsHashKey *aKey, nsISupports **value=nsnull)
nsHashtableClone ()
void Enumerate (EnumFunc aEnumFunc, void *aClosure=NULL)
void Reset ()
 nsISupportsKey (const nsISupportsKey &aKey)
 nsISupportsKey (nsISupports *key)
 ~nsISupportsKey (void)
PRUint32 HashCode (void) const
PRBool Equals (const nsHashKey *aKey) const
nsHashKeyClone () const
 nsISupportsKey (nsIObjectInputStream *aStream, nsresult *aResult)
nsresult Write (nsIObjectOutputStream *aStream) const
 nsIDKey (const nsIDKey &aKey)
 nsIDKey (const nsID &aID)
PRUint32 HashCode (void) const
PRBool Equals (const nsHashKey *aKey) const
nsHashKeyClone () const
 nsIDKey (nsIObjectInputStream *aStream, nsresult *aResult)
nsresult Write (nsIObjectOutputStream *aStream) const
 nsCStringKey (const nsCStringKey &aStrKey)
 nsCStringKey (const char *str, PRInt32 strLen=-1, Ownership own=OWN_CLONE)
 nsCStringKey (const nsAFlatCString &str)
 nsCStringKey (const nsACString &str)
 ~nsCStringKey (void)
PRUint32 HashCode (void) const
PRBool Equals (const nsHashKey *aKey) const
nsHashKeyClone () const
 nsCStringKey (nsIObjectInputStream *aStream, nsresult *aResult)
nsresult Write (nsIObjectOutputStream *aStream) const
const char * GetString () const
PRUint32 GetStringLength () const
 nsStringKey (const nsStringKey &aKey)
 nsStringKey (const PRUnichar *str, PRInt32 strLen=-1, Ownership own=OWN_CLONE)
 nsStringKey (const nsAFlatString &str)
 nsStringKey (const nsAString &str)
 ~nsStringKey (void)
PRUint32 HashCode (void) const
PRBool Equals (const nsHashKey *aKey) const
nsHashKeyClone () const
 nsStringKey (nsIObjectInputStream *aStream, nsresult *aResult)
nsresult Write (nsIObjectOutputStream *aStream) const
const PRUnicharGetString () const
PRUint32 GetStringLength () const
 nsQueryElementAt (nsICollection *aCollection, PRUint32 aIndex, nsresult *aErrorPtr)
virtual nsresult NS_FASTCALL operator() (const nsIID &aIID, void **) const
 nsRecyclingAllocator (PRUint32 nbucket=0, PRUint32 recycleAfter=NS_DEFAULT_RECYCLE_TIMEOUT, const char *id=NULL)
 ~nsRecyclingAllocator ()
nsresult Init (PRUint32 nbucket, PRUint32 recycleAfter, const char *id)
voidMalloc (PRSize size, PRBool zeroit=PR_FALSE)
void Free (void *ptr)
voidCalloc (PRUint32 items, PRSize size)
void FreeUnusedBuckets ()
PRBool Init (const char *const aNames[], PRInt32 Count)
PRInt32 Lookup (const nsACString &aName)
PRInt32 Lookup (const nsAString &aName)
const nsAFlatCStringGetStringValue (PRInt32 index)
 nsStaticCaseInsensitiveNameTable ()
 ~nsStaticCaseInsensitiveNameTable ()
 nsSupportsArray (void)
 ~nsSupportsArray (void)
NS_DECL_ISUPPORTS
NS_DECL_NSISERIALIZABLE
NS_IMETHOD 
Count (PRUint32 *result)
NS_IMETHOD GetElementAt (PRUint32 aIndex, nsISupports **result)
NS_IMETHOD QueryElementAt (PRUint32 aIndex, const nsIID &aIID, void **aResult)
NS_IMETHOD SetElementAt (PRUint32 aIndex, nsISupports *value)
NS_IMETHOD AppendElement (nsISupports *aElement)
NS_IMETHOD RemoveElement (nsISupports *aElement)
 NS_IMETHOD_ (PRBool) MoveElement(PRInt32 aFrom
NS_IMETHOD Enumerate (nsIEnumerator **result)
NS_IMETHOD Clear (void)
 NS_IMETHOD_ (PRBool) Equals(const nsISupportsArray *aOther)
 NS_IMETHOD_ (nsISupports *) ElementAt(PRUint32 aIndex)
 NS_IMETHOD_ (PRInt32) IndexOf(const nsISupports *aPossibleElement)
 NS_IMETHOD_ (PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement
 NS_IMETHOD_ (PRInt32) LastIndexOf(const nsISupports *aPossibleElement)
NS_IMETHOD GetIndexOf (nsISupports *aPossibleElement, PRInt32 *_retval)
NS_IMETHOD GetIndexOfStartingAt (nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval)
NS_IMETHOD GetLastIndexOf (nsISupports *aPossibleElement, PRInt32 *_retval)
 NS_IMETHOD_ (PRBool) InsertElementAt(nsISupports *aElement
 NS_IMETHOD_ (PRBool) ReplaceElementAt(nsISupports *aElement
 NS_IMETHOD_ (PRBool) RemoveElementAt(PRUint32 aIndex)
 NS_IMETHOD_ (PRBool) RemoveElement(const nsISupports *aElement
 NS_IMETHOD_ (PRBool) RemoveLastElement(const nsISupports *aElement)
NS_IMETHOD DeleteLastElement (nsISupports *aElement)
NS_IMETHOD DeleteElementAt (PRUint32 aIndex)
 NS_IMETHOD_ (PRBool) AppendElements(nsISupportsArray *aElements)
NS_IMETHOD Compact (void)
 NS_IMETHOD_ (PRBool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc
 NS_IMETHOD_ (PRBool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc
NS_IMETHOD Clone (nsISupportsArray **_retval)
 NS_IMETHOD_ (PRBool) InsertElementsAt(nsISupportsArray *aOther
 NS_IMETHOD_ (PRBool) RemoveElementsAt(PRUint32 aIndex
 NS_IMETHOD_ (PRBool) SizeTo(PRInt32 aSize)
 nsValueArray (nsValueArrayValue aMaxValue, nsValueArrayCount aInitialCapacity=0)
 ~nsValueArray ()
nsValueArrayoperator= (const nsValueArray &other)
nsValueArrayCount Count () const
nsValueArrayCount Capacity () const
void Compact ()
void Clear ()
nsValueArrayValue ValueAt (nsValueArrayIndex aIndex) const
nsValueArrayValue operator[] (nsValueArrayIndex aIndex) const
nsValueArrayIndex IndexOf (nsValueArrayValue aPossibleValue) const
PRBool AppendValue (nsValueArrayValue aValue)
PRBool RemoveValue (nsValueArrayValue aValue)
PRBool InsertValueAt (nsValueArrayValue aValue, nsValueArrayIndex aIndex)
PRBool RemoveValueAt (nsValueArrayIndex aIndex)
NS_DECL_ISUPPORTS
NS_DECL_NSIVARIANT
NS_DECL_NSIWRITABLEVARIANT 
nsVariant ()
 nsVoidArray ()
 nsVoidArray (PRInt32 aCount)
virtual ~nsVoidArray ()
nsVoidArrayoperator= (const nsVoidArray &other)
PRInt32 Count () const
PRInt32 GetArraySize () const
voidFastElementAt (PRInt32 aIndex) const
voidElementAt (PRInt32 aIndex) const
voidSafeElementAt (PRInt32 aIndex) const
voidoperator[] (PRInt32 aIndex) const
PRInt32 IndexOf (void *aPossibleElement) const
PRBool InsertElementAt (void *aElement, PRInt32 aIndex)
PRBool InsertElementsAt (const nsVoidArray &other, PRInt32 aIndex)
PRBool ReplaceElementAt (void *aElement, PRInt32 aIndex)
PRBool MoveElement (PRInt32 aFrom, PRInt32 aTo)
PRBool AppendElement (void *aElement)
PRBool AppendElements (nsVoidArray &aElements)
PRBool RemoveElement (void *aElement)
PRBool RemoveElementsAt (PRInt32 aIndex, PRInt32 aCount)
PRBool RemoveElementAt (PRInt32 aIndex)
virtual void Clear ()
virtual PRBool SizeTo (PRInt32 aMin)
virtual void Compact ()
void Sort (nsVoidArrayComparatorFunc aFunc, void *aData)
PRBool EnumerateForwards (nsVoidArrayEnumFunc aFunc, void *aData)
PRBool EnumerateBackwards (nsVoidArrayEnumFunc aFunc, void *aData)
 nsAutoVoidArray ()
void Clear ()
virtual PRBool SizeTo (PRInt32 aMin)
virtual void Compact ()
 nsStringArray (void)
 nsStringArray (PRInt32 aCount)
virtual ~nsStringArray (void)
nsStringArrayoperator= (const nsStringArray &other)
PRInt32 Count (void) const
void StringAt (PRInt32 aIndex, nsAString &aString) const
nsStringStringAt (PRInt32 aIndex) const
nsStringoperator[] (PRInt32 aIndex) const
PRInt32 IndexOf (const nsAString &aPossibleString) const
PRBool InsertStringAt (const nsAString &aString, PRInt32 aIndex)
PRBool ReplaceStringAt (const nsAString &aString, PRInt32 aIndex)
PRBool AppendString (const nsAString &aString)
PRBool RemoveString (const nsAString &aString)
PRBool RemoveStringAt (PRInt32 aIndex)
void Clear (void)
void Compact (void)
void Sort (void)
void Sort (nsStringArrayComparatorFunc aFunc, void *aData)
PRBool EnumerateForwards (nsStringArrayEnumFunc aFunc, void *aData)
PRBool EnumerateBackwards (nsStringArrayEnumFunc aFunc, void *aData)
 nsCStringArray (void)
 nsCStringArray (PRInt32 aCount)
virtual ~nsCStringArray (void)
nsCStringArrayoperator= (const nsCStringArray &other)
void ParseString (const char *string, const char *delimiter)
PRInt32 Count (void) const
void CStringAt (PRInt32 aIndex, nsACString &aCString) const
nsCStringCStringAt (PRInt32 aIndex) const
nsCStringoperator[] (PRInt32 aIndex) const
PRInt32 IndexOf (const nsACString &aPossibleString) const
PRInt32 IndexOfIgnoreCase (const nsACString &aPossibleString) const
PRBool InsertCStringAt (const nsACString &aCString, PRInt32 aIndex)
PRBool ReplaceCStringAt (const nsACString &aCString, PRInt32 aIndex)
PRBool AppendCString (const nsACString &aCString)
PRBool RemoveCString (const nsACString &aCString)
PRBool RemoveCStringIgnoreCase (const nsACString &aCString)
PRBool RemoveCStringAt (PRInt32 aIndex)
void Clear (void)
void Compact (void)
void Sort (void)
void SortIgnoreCase (void)
void Sort (nsCStringArrayComparatorFunc aFunc, void *aData)
PRBool EnumerateForwards (nsCStringArrayEnumFunc aFunc, void *aData)
PRBool EnumerateBackwards (nsCStringArrayEnumFunc aFunc, void *aData)
 nsSmallVoidArray ()
 ~nsSmallVoidArray ()
nsSmallVoidArrayoperator= (nsSmallVoidArray &other)
voidoperator[] (PRInt32 aIndex) const
PRInt32 GetArraySize () const
PRInt32 Count () const
voidElementAt (PRInt32 aIndex) const
voidSafeElementAt (PRInt32 aIndex) const
PRInt32 IndexOf (void *aPossibleElement) const
PRBool InsertElementAt (void *aElement, PRInt32 aIndex)
PRBool InsertElementsAt (const nsVoidArray &other, PRInt32 aIndex)
PRBool ReplaceElementAt (void *aElement, PRInt32 aIndex)
PRBool MoveElement (PRInt32 aFrom, PRInt32 aTo)
PRBool AppendElement (void *aElement)
PRBool AppendElements (nsVoidArray &aElements)
PRBool RemoveElement (void *aElement)
PRBool RemoveElementsAt (PRInt32 aIndex, PRInt32 aCount)
PRBool RemoveElementAt (PRInt32 aIndex)
void Clear ()
PRBool SizeTo (PRInt32 aMin)
void Compact ()
void Sort (nsVoidArrayComparatorFunc aFunc, void *aData)
PRBool EnumerateForwards (nsVoidArrayEnumFunc aFunc, void *aData)
PRBool EnumerateBackwards (nsVoidArrayEnumFunc aFunc, void *aData)
 nsLocalFile ()
 nsLocalFile ()
 nsLocalFile ()
 nsDirEnumeratorUnix ()
NS_DECL_ISUPPORTS
NS_DECL_NSISIMPLEENUMERATOR
NS_DECL_NSIDIRECTORYENUMERATOR
NS_IMETHOD 
Init (nsLocalFile *parent, PRBool ignored)
 nsLocalFile ()
virtual int operator() (const char_type *, const char_type *, PRUint32 length) const
virtual int operator() (char_type, char_type) const
 nsPrintfCString (const char_type *format,...)
 nsPrintfCString (size_type n, const char_type *format,...)
 nsTStringComparator_CharT ()
virtual int operator() (const char_type *, const char_type *, PRUint32 length) const =0
virtual int operator() (char_type, char_type) const =0
 nsTDefaultStringComparator_CharT ()
virtual int operator() (const char_type *, const char_type *, PRUint32 length) const
virtual int operator() (char_type, char_type) const
 nsAutoLock (PRLock *aLock)
 Constructor The constructor aquires the given lock.
 ~nsAutoLock (void)
void lock ()
 lock Client may call this to reaquire the given lock.
void unlock ()
 unlock Client may call this to release the given lock.
 nsAutoMonitor (PRMonitor *mon)
 Constructor The constructor locks the given monitor.
 ~nsAutoMonitor ()
void Enter ()
 Enter Client may call this to reenter the given monitor.
void Exit ()
 Exit Client may call this to exit the given monitor.
nsresult Wait (PRIntervalTime interval=PR_INTERVAL_NO_TIMEOUT)
 Wait.
nsresult Notify ()
 Notify.
nsresult NotifyAll ()
 NotifyAll.
 nsAutoCMonitor (void *lockObject)
 ~nsAutoCMonitor ()
void Enter ()
void Exit ()
nsresult Wait (PRIntervalTime interval=PR_INTERVAL_NO_TIMEOUT)
nsresult Notify ()
nsresult NotifyAll ()
const char_typeget () const
void Adopt (const char_type *aData, size_type aLength=PR_UINT32_MAX)
 NS_HIDDEN_ (const char_type *) BeginReading() const
 NS_HIDDEN_ (const char_type *) EndReading() const
 NS_HIDDEN_ (char_type *) BeginWriting()
 NS_HIDDEN_ (PRBool) SetLength(PRUint32 aLen)
 NS_HIDDEN_ (size_type) Length() const
 NS_HIDDEN_ (PRBool) IsEmpty() const
 NS_HIDDEN_ (void) Assign(const self_type &aString)
 NS_HIDDEN_ (void) Assign(const char_type *aData
void initWithPath (in AString filePath)
 initWith[Native]Path
void initWithNativePath (in ACString filePath)
void initWithFile (in nsILocalFile aFile)
 initWithFile
PRFileDescStar openNSPRFileDesc (in long flags, in long mode)
FILE openANSIFileDesc (in string mode)
PRLibraryStar load ()
void appendRelativePath (in AString relativeFilePath)
 appendRelative[Native]Path
void appendRelativeNativePath (in ACString relativeFilePath)
void reveal ()
 reveal
void launch ()
 launch
ACString getRelativeDescriptor (in nsILocalFile fromFile)
 getRelativeDescriptor
void setRelativeDescriptor (in nsILocalFile fromFile, in ACString relativeDesc)
 setRelativeDescriptor
void append (in AString node)
 append[Native]
void appendNative (in ACString node)
void normalize ()
 Normalize the pathName (e.g.
void create (in unsigned long type, in unsigned long permissions)
 create
void copyTo (in nsIFile newParentDir, in AString newName)
 copyTo[Native]
void CopyToNative (in nsIFile newParentDir, in ACString newName)
void copyToFollowingLinks (in nsIFile newParentDir, in AString newName)
 copyToFollowingLinks[Native]
void copyToFollowingLinksNative (in nsIFile newParentDir, in ACString newName)
void moveTo (in nsIFile newParentDir, in AString newName)
 moveTo[Native]
void moveToNative (in nsIFile newParentDir, in ACString newName)
void remove (in boolean recursive)
 This will try to delete this file.
boolean exists ()
boolean isWritable ()
boolean isReadable ()
boolean isExecutable ()
boolean isHidden ()
boolean isDirectory ()
boolean isFile ()
boolean isSymlink ()
boolean isSpecial ()
 Not a regular file, not a directory, not a symlink.
void createUnique (in unsigned long type, in unsigned long permissions)
 createUnique
nsIFile clone ()
 clone()
boolean equals (in nsIFile inFile)
 Will determine if the inFile equals this.
boolean contains (in nsIFile inFile, in boolean recur)
 Will determine if inFile is a descendant of this file If |recur| is true, look in subdirectories too.
boolean hasMoreElements ()
 Called to determine whether or not the enumerator has any elements that can be returned via getNext().
nsISupports getNext ()
 Called to retrieve the next element in the enumerator.
void close ()
 Closes the directory being enumerated, releasing the system resource.
void initWithCFURL (in CFURLRef aCFURL)
 initWithCFURL
void initWithFSRef ([const ] in FSRefPtr aFSRef)
 initWithFSRef
void initWithFSSpec ([const ] in FSSpecPtr aFileSpec)
 initWithFSSpec
void initToAppWithCreatorCode (in OSType aAppCreator)
 initToAppWithCreatorCode
CFURLRef getCFURL ()
 getCFURL
FSRef getFSRef ()
 getFSRef
FSSpec getFSSpec ()
 getFSSpec
void setFileTypeAndCreatorFromMIMEType (in string aMIMEType)
 setFileTypeAndCreatorFromMIMEType
void setFileTypeAndCreatorFromExtension (in string aExtension)
 setFileTypeAndCreatorFromExtension
void launchWithDoc (in nsILocalFile aDocToLoad, in boolean aLaunchInBackground)
 launchWithDoc
void openDocWithApp (in nsILocalFile aAppToOpenWith, in boolean aLaunchInBackground)
 openDocWithApp
boolean isPackage ()
 isPackage
nsIArray getFileTypes ()
 getFileTypes
void setFileTypes (in ACString fileTypes)
 setFileTypes
PRBool isFileType (in ACString fileType)
 isFileType
void setFileSource (in AUTF8String aURI)
 setFileSource
void setAsInt8 (in PRUint8 aValue)
void setAsInt16 (in PRInt16 aValue)
void setAsInt32 (in PRInt32 aValue)
void setAsInt64 (in PRInt64 aValue)
void setAsUint8 (in PRUint8 aValue)
void setAsUint16 (in PRUint16 aValue)
void setAsUint32 (in PRUint32 aValue)
void setAsUint64 (in PRUint64 aValue)
void setAsFloat (in float aValue)
void setAsDouble (in double aValue)
void setAsBool (in PRBool aValue)
void setAsChar (in char aValue)
void setAsWChar (in wchar aValue)
void setAsID (in nsIDRef aValue)
void setAsAString (in AString aValue)
void setAsDOMString (in DOMString aValue)
void setAsACString (in ACString aValue)
void setAsAUTF8String (in AUTF8String aValue)
void setAsString (in string aValue)
void setAsWString (in wstring aValue)
void setAsISupports (in nsISupports aValue)
void setAsInterface (in nsIIDRef iid,[iid_is(iid)] in nsQIResult iface)
void setAsArray (in PRUint16 type, in nsIIDPtr iid, in PRUint32 count, in voidPtr ptr)
void setAsStringWithSize (in PRUint32 size,[size_is(size)] in string str)
void setAsWStringWithSize (in PRUint32 size,[size_is(size)] in wstring str)
void setAsVoid ()
void setAsEmpty ()
void setAsEmptyArray ()
void setFromVariant (in nsIVariant aValue)
PRUint8 getAsInt8 ()
PRInt16 getAsInt16 ()
PRInt32 getAsInt32 ()
PRInt64 getAsInt64 ()
PRUint8 getAsUint8 ()
PRUint16 getAsUint16 ()
PRUint32 getAsUint32 ()
PRUint64 getAsUint64 ()
float getAsFloat ()
double getAsDouble ()
PRBool getAsBool ()
char getAsChar ()
wchar getAsWChar ()
nsresult getAsID (out nsID retval)
AString getAsAString ()
DOMString getAsDOMString ()
ACString getAsACString ()
AUTF8String getAsAUTF8String ()
string getAsString ()
wstring getAsWString ()
nsISupports getAsISupports ()
void getAsInterface (out nsIIDPtr iid,[iid_is(iid), retval] out nsQIResult iface)
nsresult getAsArray (out PRUint16 type, out nsIID iid, out PRUint32 count, out voidPtr ptr)
void getAsStringWithSize (out PRUint32 size,[size_is(size), retval] out string str)
void getAsWStringWithSize (out PRUint32 size,[size_is(size), retval] out wstring str)
boolean Equals ([const ] in nsISupportsArray other)
nsISupports ElementAt (in unsigned long aIndex)
long IndexOf ([const ] in nsISupports aPossibleElement)
long IndexOfStartingAt ([const ] in nsISupports aPossibleElement, in unsigned long aStartIndex)
long LastIndexOf ([const ] in nsISupports aPossibleElement)
long GetIndexOf (in nsISupports aPossibleElement)
long GetIndexOfStartingAt (in nsISupports aPossibleElement, in unsigned long aStartIndex)
long GetLastIndexOf (in nsISupports aPossibleElement)
boolean InsertElementAt (in nsISupports aElement, in unsigned long aIndex)
boolean ReplaceElementAt (in nsISupports aElement, in unsigned long aIndex)
boolean RemoveElementAt (in unsigned long aIndex)
boolean RemoveLastElement ([const ] in nsISupports aElement)
void DeleteLastElement (in nsISupports aElement)
void DeleteElementAt (in unsigned long aIndex)
boolean AppendElements (in nsISupportsArray aElements)
boolean EnumerateForwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData)
boolean EnumerateBackwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData)
nsISupportsArray clone ()
boolean MoveElement (in long aFrom, in long aTo)
boolean InsertElementsAt (in nsISupportsArray aOther, in unsigned long aIndex)
boolean RemoveElementsAt (in unsigned long aIndex, in unsigned long aCount)
boolean SizeTo (in long aSize)
nsISupports GetElementAt (in PRUint32 index)
void QueryElementAt (in PRUint32 index, in nsIIDRef uuid,[iid_is(uuid), retval] out nsQIResult result)
void SetElementAt (in PRUint32 index, in nsISupports item)
void AppendElement (in nsISupports item)
void RemoveElement (in nsISupports item)
nsIEnumerator Enumerate ()
void read (in nsIObjectInputStream aInputStream)
 Initialize the object implementing nsISerializable, which must have been freshly constructed via CreateInstance.
void write (in nsIObjectOutputStream aOutputStream)
 Serialize the object implementing nsISerializable to aOutputStream, by writing each data member that must be recovered later to reconstitute a working replica of this object, in a canonical member and byte order, to aOutputStream.
void setProperty (in AString name, in nsIVariant value)
 Set a property with the given name to the given value.
void deleteProperty (in AString name)
 Delete a property with the given name.
nsIVariant getProperty (in AString name)
 Get a property value for the given name.
void setPropertyAsInt32 (in AString prop, in PRInt32 value)
void setPropertyAsUint32 (in AString prop, in PRUint32 value)
void setPropertyAsInt64 (in AString prop, in PRInt64 value)
void setPropertyAsUint64 (in AString prop, in PRUint64 value)
void setPropertyAsDouble (in AString prop, in double value)
void setPropertyAsAString (in AString prop, in AString value)
void setPropertyAsACString (in AString prop, in ACString value)
void setPropertyAsAUTF8String (in AString prop, in AUTF8String value)
void setPropertyAsBool (in AString prop, in boolean value)
void setPropertyAsInterface (in AString prop, in nsISupports value)
PRInt32 getPropertyAsInt32 (in AString prop)
PRUint32 getPropertyAsUint32 (in AString prop)
PRInt64 getPropertyAsInt64 (in AString prop)
PRUint64 getPropertyAsUint64 (in AString prop)
double getPropertyAsDouble (in AString prop)
AString getPropertyAsAString (in AString prop)
ACString getPropertyAsACString (in AString prop)
AUTF8String getPropertyAsAUTF8String (in AString prop)
boolean getPropertyAsBool (in AString prop)
void getPropertyAsInterface (in AString prop, in nsIIDRef iid,[iid_is(iid), retval] out nsQIResult result)
 This method returns null if the value exists, but is null.
void observe (in nsISupports aSubject, in string aTopic, in wstring aData)
 Observe will be called when there is a notification for the topic |aTopic|.

Static Public Member Functions

static nsresult RegisterService (const nsCID &aClass, nsISupports *aService)
static nsresult UnregisterService (const nsCID &aClass)
static nsresult GetService (const nsCID &aClass, const nsIID &aIID, nsISupports **result, nsIShutdownListener *shutdownListener=nsnull)
static nsresult ReleaseService (const nsCID &aClass, nsISupports *service, nsIShutdownListener *shutdownListener=nsnull)
static nsresult RegisterService (const char *aContractID, nsISupports *aService)
static nsresult UnregisterService (const char *aContractID)
static nsresult GetService (const char *aContractID, const nsIID &aIID, nsISupports **result, nsIShutdownListener *shutdownListener=nsnull)
static nsresult ReleaseService (const char *aContractID, nsISupports *service, nsIShutdownListener *shutdownListener=nsnull)
static nsresult GetGlobalServiceManager (nsIServiceManager **result)
static nsresult ShutdownGlobalServiceManager (nsIServiceManager **result)
static PRUint32 strlen (const char *s)
 Compute the string length of s.
static PRInt32 strcmp (const char *s1, const char *s2)
 Compare s1 and s2.
static PRInt32 strncmp (const char *s1, const char *s2, PRUint32 aMaxLen)
static PRInt32 strcasecmp (const char *s1, const char *s2)
 Case-insensitive string comparison.
static PRInt32 strncasecmp (const char *s1, const char *s2, PRUint32 aMaxLen)
 Case-insensitive string comparison with length.
static PRInt32 strncmp (const char *s1, const char *s2, PRInt32 aMaxLen)
static char * strdup (const char *str)
static char * strndup (const char *str, PRUint32 len)
static void free (char *str)
static char * strtok (char *str, const char *delims, char **newStr)
 How to use this fancy (thread-safe) version of strtok:
static PRUint32 strlen (const PRUnichar *s)
 Like strlen except for ucs2 strings.
static PRInt32 strcmp (const PRUnichar *s1, const PRUnichar *s2)
 Like strcmp except for ucs2 strings.
static PRInt32 strncmp (const PRUnichar *s1, const PRUnichar *s2, PRUint32 aMaxLen)
 Like strcmp except for ucs2 strings.
static PRUnicharstrdup (const PRUnichar *str)
static PRUnicharstrndup (const PRUnichar *str, PRUint32 len)
static void free (PRUnichar *str)
static PRUint32 HashCode (const char *str, PRUint32 *resultingStrLen=nsnull)
static PRUint32 HashCode (const PRUnichar *str, PRUint32 *resultingStrLen=nsnull)
static PRUint32 BufferHashCode (const PRUnichar *str, PRUint32 strLen)
static PRInt64 atoll (const char *str)
static char ToUpper (char aChar)
static char ToLower (char aChar)
static PRBool IsUpper (char aChar)
static PRBool IsLower (char aChar)
static PRBool IsAscii (PRUnichar aChar)
static PRBool IsAscii (const PRUnichar *aString)
static PRBool IsAsciiAlpha (PRUnichar aChar)
static PRBool IsAsciiDigit (PRUnichar aChar)
static PRBool IsAsciiSpace (PRUnichar aChar)
static PRBool IsAscii (const char *aString)
static PRBool IsAscii (const char *aString, PRUint32 aLength)
static PLDHashNumber HashKey (const void *key)
static PLDHashNumber HashKey (const void *key)
static PLDHashNumber HashKey (const void *key)
static PLDHashNumber HashKey (const void *key)
static NS_METHOD Create (nsISupports *aOuter, REFNSIID aIID, void **aResult)
static PRUint32 snprintf (PRUnichar *out, PRUint32 outlen, const PRUnichar *fmt,...)
static PRUnicharsmprintf (const PRUnichar *fmt,...)
static PRUint32 ssprintf (nsAString &out, const PRUnichar *fmt,...)
static void smprintf_free (PRUnichar *mem)
static PRUnicharsprintf_append (PRUnichar *last, const PRUnichar *fmt,...)
static PRUint32 vsnprintf (PRUnichar *out, PRUint32 outlen, const PRUnichar *fmt, va_list ap)
static PRUnicharvsmprintf (const PRUnichar *fmt, va_list ap)
static PRUint32 vssprintf (nsAString &out, const PRUnichar *fmt, va_list ap)
static PRUnicharvsprintf_append (PRUnichar *last, const PRUnichar *fmt, va_list ap)
static nsresult Initialize (nsDiscriminatedUnion *data)
static nsresult Cleanup (nsDiscriminatedUnion *data)
static nsresult ConvertToInt8 (const nsDiscriminatedUnion &data, PRUint8 *_retval)
static nsresult ConvertToInt16 (const nsDiscriminatedUnion &data, PRInt16 *_retval)
static nsresult ConvertToInt32 (const nsDiscriminatedUnion &data, PRInt32 *_retval)
static nsresult ConvertToInt64 (const nsDiscriminatedUnion &data, PRInt64 *_retval)
static nsresult ConvertToUint8 (const nsDiscriminatedUnion &data, PRUint8 *_retval)
static nsresult ConvertToUint16 (const nsDiscriminatedUnion &data, PRUint16 *_retval)
static nsresult ConvertToUint32 (const nsDiscriminatedUnion &data, PRUint32 *_retval)
static nsresult ConvertToUint64 (const nsDiscriminatedUnion &data, PRUint64 *_retval)
static nsresult ConvertToFloat (const nsDiscriminatedUnion &data, float *_retval)
static nsresult ConvertToDouble (const nsDiscriminatedUnion &data, double *_retval)
static nsresult ConvertToBool (const nsDiscriminatedUnion &data, PRBool *_retval)
static nsresult ConvertToChar (const nsDiscriminatedUnion &data, char *_retval)
static nsresult ConvertToWChar (const nsDiscriminatedUnion &data, PRUnichar *_retval)
static nsresult ConvertToID (const nsDiscriminatedUnion &data, nsID *_retval)
static nsresult ConvertToAString (const nsDiscriminatedUnion &data, nsAString &_retval)
static nsresult ConvertToAUTF8String (const nsDiscriminatedUnion &data, nsAUTF8String &_retval)
static nsresult ConvertToACString (const nsDiscriminatedUnion &data, nsACString &_retval)
static nsresult ConvertToString (const nsDiscriminatedUnion &data, char **_retval)
static nsresult ConvertToWString (const nsDiscriminatedUnion &data, PRUnichar **_retval)
static nsresult ConvertToISupports (const nsDiscriminatedUnion &data, nsISupports **_retval)
static nsresult ConvertToInterface (const nsDiscriminatedUnion &data, nsIID **iid, void **iface)
static nsresult ConvertToArray (const nsDiscriminatedUnion &data, PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr)
static nsresult ConvertToStringWithSize (const nsDiscriminatedUnion &data, PRUint32 *size, char **str)
static nsresult ConvertToWStringWithSize (const nsDiscriminatedUnion &data, PRUint32 *size, PRUnichar **str)
static nsresult SetFromVariant (nsDiscriminatedUnion *data, nsIVariant *aValue)
static nsresult SetFromInt8 (nsDiscriminatedUnion *data, PRUint8 aValue)
static nsresult SetFromInt16 (nsDiscriminatedUnion *data, PRInt16 aValue)
static nsresult SetFromInt32 (nsDiscriminatedUnion *data, PRInt32 aValue)
static nsresult SetFromInt64 (nsDiscriminatedUnion *data, PRInt64 aValue)
static nsresult SetFromUint8 (nsDiscriminatedUnion *data, PRUint8 aValue)
static nsresult SetFromUint16 (nsDiscriminatedUnion *data, PRUint16 aValue)
static nsresult SetFromUint32 (nsDiscriminatedUnion *data, PRUint32 aValue)
static nsresult SetFromUint64 (nsDiscriminatedUnion *data, PRUint64 aValue)
static nsresult SetFromFloat (nsDiscriminatedUnion *data, float aValue)
static nsresult SetFromDouble (nsDiscriminatedUnion *data, double aValue)
static nsresult SetFromBool (nsDiscriminatedUnion *data, PRBool aValue)
static nsresult SetFromChar (nsDiscriminatedUnion *data, char aValue)
static nsresult SetFromWChar (nsDiscriminatedUnion *data, PRUnichar aValue)
static nsresult SetFromID (nsDiscriminatedUnion *data, const nsID &aValue)
static nsresult SetFromAString (nsDiscriminatedUnion *data, const nsAString &aValue)
static nsresult SetFromAUTF8String (nsDiscriminatedUnion *data, const nsAUTF8String &aValue)
static nsresult SetFromACString (nsDiscriminatedUnion *data, const nsACString &aValue)
static nsresult SetFromString (nsDiscriminatedUnion *data, const char *aValue)
static nsresult SetFromWString (nsDiscriminatedUnion *data, const PRUnichar *aValue)
static nsresult SetFromISupports (nsDiscriminatedUnion *data, nsISupports *aValue)
static nsresult SetFromInterface (nsDiscriminatedUnion *data, const nsIID &iid, nsISupports *aValue)
static nsresult SetFromArray (nsDiscriminatedUnion *data, PRUint16 type, const nsIID *iid, PRUint32 count, void *aValue)
static nsresult SetFromStringWithSize (nsDiscriminatedUnion *data, PRUint32 size, const char *aValue)
static nsresult SetFromWStringWithSize (nsDiscriminatedUnion *data, PRUint32 size, const PRUnichar *aValue)
static nsresult SetToVoid (nsDiscriminatedUnion *data)
static nsresult SetToEmpty (nsDiscriminatedUnion *data)
static nsresult SetToEmptyArray (nsDiscriminatedUnion *data)
static char * ConvertLineBreaks (const char *aSrc, ELinebreakType aSrcBreaks, ELinebreakType aDestBreaks, PRInt32 aSrcLen=kIgnoreLen, PRInt32 *aOutLen=nsnull)
static PRUnicharConvertUnicharLineBreaks (const PRUnichar *aSrc, ELinebreakType aSrcBreaks, ELinebreakType aDestBreaks, PRInt32 aSrcLen=kIgnoreLen, PRInt32 *aOutLen=nsnull)
static nsresult ConvertStringLineBreaks (nsString &ioString, ELinebreakType aSrcBreaks, ELinebreakType aDestBreaks)
static nsresult ConvertLineBreaksInSitu (char **ioBuffer, ELinebreakType aSrcBreaks, ELinebreakType aDestBreaks, PRInt32 aSrcLen=kIgnoreLen, PRInt32 *aOutLen=nsnull)
static nsresult ConvertUnicharLineBreaksInSitu (PRUnichar **ioBuffer, ELinebreakType aSrcBreaks, ELinebreakType aDestBreaks, PRInt32 aSrcLen=kIgnoreLen, PRInt32 *aOutLen=nsnull)
static NS_METHOD nsLocalFileConstructor (nsISupports *outer, const nsIID &aIID, void **aInstancePtr)
static void GlobalInit ()
static void GlobalShutdown ()
static NS_METHOD nsLocalFileConstructor (nsISupports *outer, const nsIID &aIID, void **aInstancePtr)
static void GlobalInit ()
static void GlobalShutdown ()
static NS_METHOD nsLocalFileConstructor (nsISupports *outer, const nsIID &aIID, void **aInstancePtr)
static void GlobalInit ()
static void GlobalShutdown ()
static NS_METHOD nsLocalFileConstructor (nsISupports *outer, const nsIID &aIID, void **aInstancePtr)
static void GlobalInit ()
static void GlobalShutdown ()
static PRLockNewLock (const char *name)
 NewLock Allocates a new PRLock for use with nsAutoLock.
static void DestroyLock (PRLock *lock)
static PRMonitorNewMonitor (const char *name)
 NewMonitor Allocates a new PRMonitor for use with nsAutoMonitor.
static void DestroyMonitor (PRMonitor *mon)

Public Attributes

const nsString mKey
const nsCString mKey
const PRInt32 mKey
const voidmKey
PRInt32 aTo
PRUint32 aStartIndex = 0)
PRUint32 aIndex
voidaData
PRUint32 aCount
size_type aLength
attribute PRBool followLinks
 followLinks
readonly attribute PRInt64 diskSpaceAvailable
attribute ACString persistentDescriptor
 Accessor to a null terminated string which will specify the file in a persistent manner for disk storage.
const unsigned long NORMAL_FILE_TYPE = 0
 Create Types.
const unsigned long DIRECTORY_TYPE = 1
attribute AString leafName
 Accessor to the leaf name of the file itself.
attribute ACString nativeLeafName
attribute unsigned long permissions
 Attributes of nsIFile.
attribute unsigned long permissionsOfLink
attribute PRInt64 lastModifiedTime
 File Times are to be in milliseconds from midnight (00:00:00), January 1, 1970 Greenwich Mean Time (GMT).
attribute PRInt64 lastModifiedTimeOfLink
attribute PRInt64 fileSize
 WARNING! On the Mac, getting/setting the file size with nsIFile only deals with the size of the data fork.
readonly attribute PRInt64 fileSizeOfLink
readonly attribute AString target
 target & path
readonly attribute ACString nativeTarget
readonly attribute AString path
readonly attribute ACString nativePath
readonly attribute nsIFile parent
 Parent will be null when this is at the top of the volume.
readonly attribute
nsISimpleEnumerator 
directoryEntries
 Returns an enumeration of the elements in a directory.
readonly attribute nsIFile nextFile
 Retrieves the next file in the sequence.
readonly attribute PRInt64 fileSizeWithResFork
 fileSizeWithResFork
const unsigned long CURRENT_PROCESS_CREATOR = 0x8000000
 Use with SetFileType() to specify the signature of current process.
attribute OSType fileType
 fileType, creator
attribute OSType fileCreator
readonly attribute AString bundleDisplayName
 bundleDisplayName
attribute PRBool writable
readonly attribute PRUint16 dataType
readonly attribute
nsISimpleEnumerator 
enumerator
 Get a nsISimpleEnumerator whose elements are nsIProperty objects.
PLDHashNumber keyHash

Protected Types

enum  { kArrayOwnerMask = 1 << 31, kArraySizeMask = ~kArrayOwnerMask }
enum  { kAutoBufSize = 8 }
enum  nsAutoLockType { eAutoLock, eAutoMonitor, eAutoCMonitor }

Protected Member Functions

 nsCOMArray_base ()
 nsCOMArray_base (PRInt32 aCount)
 nsCOMArray_base (const nsCOMArray_base &other)
 ~nsCOMArray_base ()
PRInt32 IndexOf (nsISupports *aObject) const
PRInt32 IndexOfObject (nsISupports *aObject) const
PRBool EnumerateForwards (nsVoidArrayEnumFunc aFunc, void *aData)
PRBool EnumerateBackwards (nsVoidArrayEnumFunc aFunc, void *aData)
void Sort (nsVoidArrayComparatorFunc aFunc, void *aData)
void Clear ()
PRBool InsertObjectAt (nsISupports *aObject, PRInt32 aIndex)
PRBool InsertObjectsAt (const nsCOMArray_base &aObjects, PRInt32 aIndex)
PRBool ReplaceObjectAt (nsISupports *aObject, PRInt32 aIndex)
PRBool AppendObject (nsISupports *aObject)
PRBool AppendObjects (const nsCOMArray_base &aObjects)
PRBool RemoveObject (nsISupports *aObject)
PRBool RemoveObjectAt (PRInt32 aIndex)
BucketAddBucket (size_t aSize)
BucketFindBucket (size_t aSize)
 nsHashKey (void)
BlockFindFreeBlock (PRSize bytes)
PRBool AddToFreeList (Block *block)
void Touch ()
void Untouch ()
void DeleteArray (void)
 NS_IMETHOD_ (PRBool) GrowArrayBy(PRInt32 aGrowBy)
virtual PRBool GrowArrayBy (PRInt32 aGrowBy)
void SetArray (Impl *newImpl, PRInt32 aSize, PRInt32 aCount, PRBool owner)
PRBool IsArrayOwner () const
void MakeDirty ()
nsresult ResolveAndStat ()
nsresult UpdateCachedCatInfo (PRBool forceUpdate)
nsresult FindAppOnLocalVolumes (OSType sig, FSSpec &outSpec)
nsresult FindRunningAppBySignature (OSType sig, FSSpec &outSpec, ProcessSerialNumber &outPsn)
nsresult FindRunningAppByFSSpec (const FSSpec &appSpec, ProcessSerialNumber &outPsn)
nsresult MyLaunchAppWithDoc (const FSSpec &appSpec, const FSSpec *aDocToLoad, PRBool aLaunchInBackground)
nsresult TestFinderFlag (PRUint16 flagMask, PRBool *outFlagSet, PRBool testTargetSpec=PR_TRUE)
nsresult MoveCopy (nsIFile *newParentDir, const nsACString &newName, PRBool isCopy, PRBool followLinks)
nsresult SetOSTypeAndCreatorFromExtension (const char *extension=nsnull)
nsresult ExtensionIsOnExceptionList (const char *extension, PRBool *onList)
 nsLocalFile (const nsLocalFile &src)
nsresult SetBaseRef (CFURLRef aCFURLRef)
nsresult UpdateTargetRef ()
nsresult GetFSRefInternal (FSRef &aFSSpec, PRBool bForceUpdateCache=PR_TRUE)
nsresult GetPathInternal (nsACString &path)
nsresult CopyInternal (nsIFile *newParentDir, const nsAString &newName, PRBool followLinks)
NS_IMETHOD GetNextEntry ()
void LocateNativeLeafName (nsACString::const_iterator &, nsACString::const_iterator &)
nsresult CopyDirectoryTo (nsIFile *newParent)
nsresult CreateAllAncestors (PRUint32 permissions)
nsresult GetNativeTargetPathName (nsIFile *newParent, const nsACString &newName, nsACString &_retval)
void InvalidateCache ()
nsresult FillStatCache ()
nsresult CreateAndKeepOpen (PRUint32 type, PRIntn flags, PRUint32 permissions, PRFileDesc **_retval)
 nsAutoLockBase ()
 nsAutoLockBase (void *addr, nsAutoLockType type)
 ~nsAutoLockBase ()
void Show ()
void Hide ()
 nsAutoUnlockBase ()
 nsAutoUnlockBase (void *addr)
 ~nsAutoUnlockBase ()

Static Protected Member Functions

static PLDHashOperator PR_CALLBACK CopyElement (PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 i, void *arg)
static void nsRecycleTimerCallback (nsITimer *aTimer, void *aClosure)
static PRInt64 HFSPlustoNSPRTime (const UTCDateTime &utcTime)
static void NSPRtoHFSPlusTime (PRInt64 nsprTime, UTCDateTime &utcTime)
static nsresult CFStringReftoUTF8 (CFStringRef aInStrRef, nsACString &aOutStr)

Protected Attributes

PRInt32 mSize
PRInt32 mCapacity
PRInt32 mOrigin
nsDequeFunctormDeallocator
voidmBuffer [8]
void ** mData
PRInt32 mIndex
const nsDequemDeque
nsISupportsArraymValueArray
nsISupports * mValue
PRBool mConsumed
nsCOMPtr< nsISimpleEnumeratormFirstEnumerator
nsCOMPtr< nsISimpleEnumeratormSecondEnumerator
PRBool mAtSecond
PLArenaPool mPool
BucketmBuckets
nsInterfaceHashtable
< nsStringHashKey, nsIVariant
mPropertyHash
PRLockmLock
PLDHashTable mHashtable
PRBool mEnumerating
nsHashtableCloneElementFunc mCloneElementFun
voidmCloneElementClosure
nsHashtableEnumFunc mDestroyElementFun
voidmDestroyElementClosure
nsISupports * mKey
nsID mID
char * mStr
PRUint32 mStrLen
Ownership mOwnership
PRUnicharmStr
PRUint32 mMaxBlocks
BlockStoreNodemBlocks
BlockStoreNodemFreeList
BlockStoreNodemNotUsedList
nsITimermRecycleTimer
PRUint32 mRecycleAfter
PRInt32 mTouched
const char * mId
nsISupports ** mArray
PRUint32 mArraySize
PRUint32 mCount
nsISupports * mAutoArray [kAutoArraySize]
nsDiscriminatedUnion mData
PRBool mWritable
ImplmImpl
char mAutoBuf [sizeof(Impl)+(kAutoBufSize-1)*sizeof(void *)]
CFURLRef mBaseRef
CFURLRef mTargetRef
FSRef mCachedFSRef
PRPackedBool mCachedFSRefValid
DIRmDir
struct direntmEntry
nsCString mParentPath
nsCString mPath
PRPackedBool mHaveCachedStat

Static Protected Attributes

static const char kPathSepChar
static const PRUnichar kPathSepUnichar
static const PRInt64 kJanuaryFirst1970Seconds

Private Types

enum  { kLocalBufferSize = 15 }
typedef unsigned long PtrBits
typedef unsigned long PtrBits
typedef unsigned long PtrBits
typedef nsCString string_type

Private Member Functions

nsStringHashSet * GetHash ()
 Get the hash pointer (or null if we're not a hash)
nsAString * GetStr ()
 Find out whether it is a string.
nsresult SetStr (const nsAString &aVal)
 Set the single string.
nsresult InitHash (nsStringHashSet **aSet)
 Initialize the hash.
nsInt32HashSet * GetHash ()
 Get the hash pointer (or null if we're not a hash)
PRBool IsInt ()
 Find out whether it is an integer.
PRInt32 GetInt ()
 Get the single integer.
void SetInt (PRInt32 aInt)
 Set the single integer.
nsresult InitHash (nsInt32HashSet **aSet)
 Create the hash and initialize.
nsCOMArray_baseoperator= (const nsCOMArray_base &other)
 nsDeque ()
 Simple default constructor (PRIVATE)
 nsDeque (const nsDeque &other)
 Copy constructor (PRIVATE)
nsDequeoperator= (const nsDeque &anOther)
 Deque assignment operator (PRIVATE)
PRInt32 GrowCapacity ()
 ~nsArrayEnumerator (void)
 ~nsSingletonEnumerator ()
 ~nsUnionEnumerator ()
 nsSupportsArray (const nsISupportsArray &other)
 ~nsVariant ()
 nsVoidArray (const nsVoidArray &other)
 Copy constructors are not allowed.
 nsStringArray (const nsStringArray &other)
 Copy constructors are not allowed.
 nsCStringArray (const nsCStringArray &other)
 Copy constructors are not allowed.
PRBool HasSingleChild () const
PRBool HasVector () const
voidGetSingleChild () const
void SetSingleChild (void *aChild)
nsVoidArrayGetChildVector () const
nsVoidArraySwitchToVector ()
 ~nsLocalFile ()
 nsLocalFile (const nsLocalFile &srcFile)
 nsLocalFile (const FSSpec &aSpec, const nsACString &aAppendedPath)
nsLocalFileoperator= (const nsLocalFile &rhs)
 nsLocalFile (const nsLocalFile &other)
 ~nsLocalFile ()
void MakeDirty ()
nsresult Stat ()
nsresult CopyMove (nsIFile *newParentDir, const nsACString &newName, PRBool move)
nsresult CopySingleFile (nsIFile *source, nsIFile *dest, const nsACString &newName, PRBool move)
nsresult SetModDate (PRInt64 aLastModifiedTime)
nsresult AppendNativeInternal (const nsAFlatCString &node, PRBool multipleComponents)
nsresult GetEA (const char *eaName, PFEA2LIST pfea2list)
 ~nsLocalFile ()
 ~nsDirEnumeratorUnix ()
 nsLocalFile (const nsLocalFile &other)
 ~nsLocalFile ()
 nsAutoLock (void)
 nsAutoLock (nsAutoLock &)
nsAutoLockoperator= (nsAutoLock &)
 nsAutoMonitor (void)
 nsAutoMonitor (nsAutoMonitor &)
nsAutoMonitoroperator= (nsAutoMonitor &)
 nsAutoCMonitor (void)
 nsAutoCMonitor (nsAutoCMonitor &)
nsAutoCMonitoroperator= (nsAutoCMonitor &)

Static Private Member Functions

static PRBool PR_CALLBACK ReleaseElement (nsHashKey *, void *, void *)
static PLDHashOperator PR_CALLBACK EnumerateCopy (PLDHashTable *, PLDHashEntryHdr *hdr, PRUint32 i, void *arg)
static void InitClassStatics ()
static voidoperator new (size_t) CPP_THROW_NEW
static void operator delete (void *)
static voidoperator new (size_t) CPP_THROW_NEW
static void operator delete (void *)
static voidoperator new (size_t) CPP_THROW_NEW
static void operator delete (void *)

Private Attributes

nsDataHashtable
< nsCStringHashKey, nsCString
mHash
nsCategoryListenermListener
nsCString mCategory
const char * mCategory
const char * mEntry
nsISupports * mOuter
nsresultmErrorPtr
nsIArraymArray
PRUint32 mIndex
voidmValOrHash
 A hash or string ptr, depending on the lower bit (0=hash, 1=string)
nsVoidArray mArray
nsICollectionmCollection
nsDependentCStringmNameArray
PLDHashTable mNameTable
nsDependentCString mNullStr
nsValueArrayCount mCount
nsValueArrayCount mCapacity
PRUint8mValueArray
PRUint8 mBytesPerValue
voidmChildren
PRPackedBool mFollowLinks
PRPackedBool mFollowLinksDirty
PRPackedBool mSpecDirty
FSSpec mSpec
nsCString mAppendedPath
FSSpec mTargetSpec
CInfoPBRec mCachedCatInfo
PRPackedBool mCatInfoDirty
OSType mType
OSType mCreator
PRPackedBool mDirty
nsCString mWorkingPath
PRFileInfo64 mFileInfo64
char_type mLocalBuffer [kLocalBufferSize+1]
PRBool mLocked
PRMonitormMonitor
PRInt32 mLockCount
voidmLockObject

Static Private Attributes

static OSType sCurrentProcessSignature
static PRBool sHasHFSPlusAPIs
static PRBool sRunningOSX

Friends

class nsArray
class nsDequeIterator
struct Bucket
struct FreeEntry
struct BlockStoreNode
class TypeEaEnumerator
class nsDirEnumerator
class nsAutoUnlockBase
void nsRecycleTimerCallback (nsITimer *aTimer, void *aClosure)

Detailed Description

A string set that takes up minimal size when there are 0 or 1 strings in the set.

nsAutoLock Stack-based locking object for PRLock.

nsAutoUnlockBase This is the base class for stack-based unlocking objects.

nsAutoLockBase This is the base class for the stack-based locking objects.

The default string comparator (case-sensitive comparision)

The base for string comparators.

|nsPrintfCString| lets you use a formated |printf| string as an |const nsACString|.

ASCII case-insensitive comparator.

A basic zero-based array of void*'s that manages its own memory.

nsVariant implements the generic variant support.

This is a wrapper class around all the C runtime functions.

An integer set that takes up only 4 bytes when there are 0 or 1 integers in the set.

Use for cases where sizes of 0 and 1 are even slightly common.

The xpcom module registers a factory (see NS_VARIANT_CONTRACTID in nsIVariant.idl) that will create these objects. They are created 'empty' and 'writable'.

nsIVariant users won't usually need to see this class.

This class also has static helper methods that nsIVariant implementors can use to help them do all the 'standard' nsIVariant data conversions.

(for Unicode case-insensitive comparision, see nsUnicharUtils.h)

myCStr += nsPrintfCString("%f", 13.917); // ...a general purpose substitute for |AppendFloat|

For longer patterns, you'll want to use the constructor that takes a length

nsPrintfCString(128, "%f, %f, %f, %f, %f, %f, %f, %i, %f", x, y, z, 3.2, j, k, l, 3, 3.1);

Exceding the default size (which you must specify in the constructor, it is not determined) causes an allocation, so avoid that. If your formatted string exceeds the allocated space, it is cut off at the size of the buffer, no error is reported (and no out-of-bounds writing occurs). This class is intended to be useful for numbers and short strings, not arbitrary formatting of other strings (e.g., with s). There is currently no wide version of this class, since wide |printf| is not generally available. That means to get a wide version of your formatted data, you must, e.g.,

CopyASCIItoUTF16(nsPrintfCString("%f", 13.917"), myStr);

That's another good reason to avoid this class for anything but numbers ... as strings can be much more efficiently handled with |NS_LITERAL_[C]STRING| and |nsLiteral[C]String|.

Clients of derived classes need not play with this superclass.

It unlocks locking objects based on nsAutoLockBase.

Definition at line 65 of file nsCategoryCache.h.


Class Documentation

struct NS_COM::Block

Definition at line 80 of file nsRecyclingAllocator.h.

Class Members
PRSize bytes
struct NS_COM::Bucket

Definition at line 152 of file nsFixedSizeAllocator.h.

Collaboration diagram for NS_COM::Bucket:
Class Members
FreeEntry * mFirst
Bucket * mNext
size_t mSize
struct NS_COM::FreeEntry

Definition at line 148 of file nsFixedSizeAllocator.h.

Collaboration diagram for NS_COM::FreeEntry:
Class Members
FreeEntry * mNext
struct NS_COM::Impl

Definition at line 134 of file nsVoidArray.h.

Class Members
void * mArray Array data, padded out to the actual size of the array.
PRUint32 mBits Packed bits. The low 31 bits are the array's size. The highest bit is a flag that indicates whether or not we "own" mArray, and must free() it when destroyed.
PRInt32 mCount The number of elements in the array.

Member Typedef Documentation

typedef nsACString nsCString::abstract_string_type [inherited]

Definition at line 1192 of file nsStringAPI.h.

Reimplemented from nsACString_external.

Definition at line 50 of file nsTAString.h.

Reimplemented from nsACString_external.

Definition at line 66 of file nsTAString.h.

typedef char NS_COM::char_type

Reimplemented from nsACString_external.

Definition at line 86 of file nsAString.h.

Definition at line 956 of file nsStringAPI.h.

Definition at line 202 of file nsHashtable.h.

typedef unsigned long NS_COM::PtrBits [private]

Definition at line 85 of file nsCheapSets.h.

typedef unsigned long NS_COM::PtrBits [private]

Definition at line 158 of file nsCheapSets.h.

typedef unsigned long NS_COM::PtrBits [private]

Definition at line 378 of file nsVoidArray.h.

typedef nsCString nsCString::self_type [inherited]

Reimplemented from nsACString_external.

Reimplemented in NS_LossyConvertUTF16toASCII, NS_ConvertUTF16toUTF8, and nsDependentCString.

Definition at line 1191 of file nsStringAPI.h.

Definition at line 955 of file nsStringAPI.h.

typedef nsCString NS_COM::string_type [private]

Definition at line 72 of file nsPrintfCString.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
TAB 
LF 
VTAB 
FF 
CR 

Definition at line 99 of file nsCRT.h.

       {
    TAB='\t'  /* Horizontal Tab */,
    LF='\n'   /* Line Feed */,
    VTAB='\v' /* Vertical Tab */,
    FF='\f'   /* Form Feed */,
    CR='\r'   /* Carriage Return */
  };
anonymous enum
Enumerator:
NOT_FOUND 

Definition at line 65 of file nsStaticNameTable.h.

{ NOT_FOUND = -1 };
anonymous enum [protected]
Enumerator:
kArrayOwnerMask 
kArraySizeMask 

Definition at line 161 of file nsVoidArray.h.

anonymous enum [protected]
Enumerator:
kAutoBufSize 

Definition at line 190 of file nsVoidArray.h.

{ kAutoBufSize = 8 };
anonymous enum
Enumerator:
kIgnoreLen 

Definition at line 65 of file nsLinebreakConverter.h.

       {
    kIgnoreLen = -1
  };
anonymous enum [private]
Enumerator:
kLocalBufferSize 

Definition at line 74 of file nsPrintfCString.h.

Enumerator:
eLinebreakAny 
eLinebreakPlatform 
eLinebreakContent 
eLinebreakNet 
eLinebreakMac 
eLinebreakUnix 
eLinebreakWindows 

Definition at line 52 of file nsLinebreakConverter.h.

               {
    eLinebreakAny,          // any kind of linebreak (i.e. "don't care" source)
    
    eLinebreakPlatform,     // platform linebreak
    eLinebreakContent,      // Content model linebreak (LF)
    eLinebreakNet,          // Form submission linebreak (CRLF)
  
    eLinebreakMac,          // CR
    eLinebreakUnix,         // LF
    eLinebreakWindows       // CRLF
  
  } ELinebreakType;
enum NS_COM::nsAutoLockType [protected]
Enumerator:
eAutoLock 
eAutoMonitor 
eAutoCMonitor 

Definition at line 123 of file nsAutoLock.h.

Enumerator:
NEVER_OWN 
OWN_CLONE 
OWN 
NEVER_OWN 
OWN_CLONE 
OWN 

Definition at line 389 of file nsHashtable.h.

                   {
        NEVER_OWN,  // very long lived, even clones don't need to copy it.
        OWN_CLONE,  // as long lived as this key. But clones make a copy.
        OWN         // to be free'd in key dtor. Clones make their own copy.
    };
Enumerator:
NEVER_OWN 
OWN_CLONE 
OWN 
NEVER_OWN 
OWN_CLONE 
OWN 

Definition at line 423 of file nsHashtable.h.

                   {
        NEVER_OWN,  // very long lived, even clones don't need to copy it.
        OWN_CLONE,  // as long lived as this key. But clones make a copy.
        OWN         // to be free'd in key dtor. Clones make their own copy.
    };

Constructor & Destructor Documentation

NS_COM::~nsCOMArray_base ( ) [protected]

Definition at line 416 of file nsDoubleHashtable.h.

{ }

Definition at line 439 of file nsDoubleHashtable.h.

{ }

Definition at line 462 of file nsDoubleHashtable.h.

{ }

Definition at line 486 of file nsDoubleHashtable.h.

{ }

Definition at line 169 of file nsFixedSizeAllocator.h.

                            {
        if (mBuckets)
            PL_FinishArenaPool(&mPool);
    }
virtual NS_COM::~nsHashPropertyBag ( ) [inline, virtual]

Definition at line 60 of file nsHashPropertyBag.h.

{}
virtual NS_COM::~nsHashKey ( void  ) [virtual]
virtual NS_COM::~nsHashtable ( ) [virtual]
NS_COM::~nsISupportsKey ( void  ) [inline]

Definition at line 257 of file nsHashtable.h.

NS_COM::~nsVariant ( ) [private]
virtual NS_COM::~nsVoidArray ( ) [virtual]
virtual NS_COM::~nsStringArray ( void  ) [virtual]
virtual NS_COM::~nsCStringArray ( void  ) [virtual]
NS_COM::~nsLocalFile ( ) [inline, private]

Definition at line 80 of file nsLocalFileMac.h.

{}
NS_COM::~nsLocalFile ( ) [inline, private]

Definition at line 100 of file nsLocalFileOS2.h.

{}
NS_COM::~nsLocalFile ( ) [private]
NS_COM::~nsLocalFile ( ) [inline, private]

Definition at line 107 of file nsLocalFileUnix.h.

{}
NS_COM::~nsAutoLockBase ( ) [inline, protected]

Definition at line 137 of file nsAutoLock.h.

{}
NS_COM::~nsAutoUnlockBase ( ) [inline, protected]

Definition at line 160 of file nsAutoLock.h.

{}
NS_COM::~nsAutoLock ( void  ) [inline]

Definition at line 222 of file nsAutoLock.h.

                      {
        if (mLocked)
            PR_Unlock(mLock);
    }
NS_COM::~nsAutoMonitor ( ) [inline]

Definition at line 291 of file nsAutoLock.h.

                     {
        NS_ASSERTION(mMonitor, "null monitor");
        if (mMonitor && mLockCount) {
#ifdef DEBUG
            PRStatus status = 
#endif
            PR_ExitMonitor(mMonitor);
            NS_ASSERTION(status == PR_SUCCESS, "PR_ExitMonitor failed");
        }
    }

Here is the call graph for this function:

Definition at line 382 of file nsAutoLock.h.

                      {
        if (mLockCount) {
#ifdef DEBUG
            PRStatus status =
#endif
            PR_CExitMonitor(mLockObject);
            NS_ASSERTION(status == PR_SUCCESS, "PR_CExitMonitor failed");
        }
    }

Member Function Documentation

Bucket* NS_COM::AddBucket ( size_t  aSize) [protected]
PRBool NS_COM::AddToFreeList ( Block block) [protected]
void nsCString::Adopt ( const char_type aData,
size_type  aLength = PR_UINT32_MAX 
) [inline, inherited]

Definition at line 1236 of file nsStringAPI.h.

Here is the call graph for this function:

void* NS_COM::Alloc ( size_t  aSize)

Allocate a block of memory 'aSize' bytes big.

void nsIFile::append ( in AString  node) [inherited]

append[Native]

This function is used for constructing a descendent of the current nsIFile.

Parameters:
nodeA string which is intended to be a child node of the nsIFile. For the |appendNative| method, the node must be in the native filesystem charset.
PRBool NS_COM::AppendCString ( const nsACString &  aCString) [inline]

Definition at line 287 of file nsVoidArray.h.

                                                   {
    return InsertCStringAt(aCString, Count());
  }

Here is the call graph for this function:

void nsICollection::AppendElement ( in nsISupports  item) [inherited]
NS_IMETHOD NS_COM::AppendElement ( nsISupports *  aElement) [inline]

Definition at line 79 of file nsSupportsArray.h.

                                                  {
    return InsertElementAt(aElement, mCount)/* ? NS_OK : NS_ERROR_FAILURE*/;
  }

Here is the call graph for this function:

PRBool NS_COM::AppendElement ( void aElement) [inline]

Definition at line 107 of file nsVoidArray.h.

                                       {
    return InsertElementAt(aElement, Count());
  }

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool NS_COM::AppendElements ( nsVoidArray aElements) [inline]

Definition at line 111 of file nsVoidArray.h.

                                                {
    return InsertElementsAt(aElements, Count());
  }

Here is the call graph for this function:

PRBool NS_COM::AppendElements ( nsVoidArray aElements) [inline]

Definition at line 362 of file nsVoidArray.h.

                                                {
    return InsertElementsAt(aElements, Count());
  }

Here is the call graph for this function:

void nsIFile::appendNative ( in ACString  node) [inherited]
nsresult NS_COM::AppendNativeInternal ( const nsAFlatCString node,
PRBool  multipleComponents 
) [private]
PRBool NS_COM::AppendObject ( nsISupports *  aObject) [inline, protected]

Definition at line 83 of file nsCOMArray.h.

                                              {
        return InsertObjectAt(aObject, Count());
    }

Here is the call graph for this function:

PRBool NS_COM::AppendObjects ( const nsCOMArray_base aObjects) [inline, protected]

Definition at line 86 of file nsCOMArray.h.

                                                          {
        return InsertObjectsAt(aObjects, Count());
    }

Here is the call graph for this function:

void nsILocalFile::appendRelativeNativePath ( in ACString  relativeFilePath) [inherited]
void nsILocalFile::appendRelativePath ( in AString  relativeFilePath) [inherited]

appendRelative[Native]Path

Append a relative path to the current path of the nsILocalFile object.

Parameters:
relativeFilePathrelativeFilePath is a native relative path. For security reasons, this cannot contain .. or cannot start with a directory separator. For the |appendRelativeNativePath| method, the relativeFilePath must be in the native filesystem charset.
PRBool NS_COM::AppendString ( const nsAString &  aString) [inline]

Definition at line 225 of file nsVoidArray.h.

                                                {
    return InsertStringAt(aString, Count());
  }

Here is the call graph for this function:

Definition at line 103 of file nsValueArray.h.

                                                        {
        return InsertValueAt(aValue, Count());
    }

Here is the call graph for this function:

static PRInt64 NS_COM::atoll ( const char *  str) [static]

Creates a new iterator, pointing to the first item in the deque.

Returns:
new dequeIterator
static PRUint32 NS_COM::BufferHashCode ( const PRUnichar str,
PRUint32  strLen 
) [static]
void* NS_COM::Calloc ( PRUint32  items,
PRSize  size 
) [inline]

Definition at line 156 of file nsRecyclingAllocator.h.

    {
        return Malloc(items * size, PR_TRUE);
    }

Here is the call graph for this function:

nsValueArrayCount NS_COM::Capacity ( ) const [inline]

Definition at line 80 of file nsValueArray.h.

                                              {
        return mCapacity;
    }
static nsresult NS_COM::CFStringReftoUTF8 ( CFStringRef  aInStrRef,
nsACString &  aOutStr 
) [static, protected]
static nsresult NS_COM::Cleanup ( nsDiscriminatedUnion data) [static]
void NS_COM::Clear ( ) [protected]

Implements nsICollection.

void NS_COM::Clear ( void  ) [inline]

Implements nsICollection.

Definition at line 87 of file nsValueArray.h.

                        {
        mCount = 0;
    }

Implements nsICollection.

virtual void NS_COM::Clear ( ) [virtual]

Implements nsICollection.

Implements nsICollection.

Implements nsICollection.

Implements nsICollection.

Implements nsICollection.

virtual nsHashKey* NS_COM::Clone ( ) const [pure virtual]
nsHashKey* NS_COM::Clone ( void  ) const [inline]

Definition at line 270 of file nsHashtable.h.

                             {
        return new nsISupportsKey(mKey);
    }

Here is the call graph for this function:

nsIFile nsIFile::clone ( ) [inherited]

clone()

This function will allocate and initialize a nsIFile object to the exact location of the |this| nsIFile.

Parameters:
fileA nsIFile which this object will be initialize with.
nsHashKey* NS_COM::Clone ( void  ) const [inline]

Definition at line 372 of file nsHashtable.h.

                             {
        return new nsIDKey(mID);
    }

Here is the call graph for this function:

Closes the directory being enumerated, releasing the system resource.

Exceptions:
NS_OKif the call succeeded and the directory was closed. NS_ERROR_FAILURE if the directory close failed. It is safe to call this function many times.

Implements nsISupportsArray.

virtual void NS_COM::Compact ( ) [virtual]

Implements nsISupportsArray.

Implements nsISupportsArray.

Here is the caller graph for this function:

virtual void NS_COM::Compact ( ) [virtual]

Implements nsISupportsArray.

void NS_COM::Compact ( void  ) [inline]

Implements nsISupportsArray.

Definition at line 233 of file nsVoidArray.h.

Here is the call graph for this function:

void NS_COM::Compact ( void  ) [inline]

Implements nsISupportsArray.

Definition at line 296 of file nsVoidArray.h.

Here is the call graph for this function:

Implements nsISupportsArray.

PRBool NS_COM::Contains ( const nsAString &  aVal) [inline]

Check if the set contains a particular string.

Parameters:
aValthe string to check for
Returns:
whether the string is in the set

Definition at line 71 of file nsCheapSets.h.

  {
    nsStringHashSet* set = GetHash();
    // Check the value from the hash if the hash is there
    if (set) {
      return set->Contains(aVal);
    }

    // Check whether the value is equal to the string if the string is there
    nsAString* str = GetStr();
    return str && str->Equals(aVal);
  }

Here is the call graph for this function:

PRBool NS_COM::Contains ( PRInt32  aVal) [inline]

Check if the set contains a particular int.

Parameters:
aValthe int to check for
Returns:
whether the int is in the set

Definition at line 145 of file nsCheapSets.h.

  {
    nsInt32HashSet* set = GetHash();
    if (set) {
      return set->Contains(aVal);
    }
    if (IsInt()) {
      return GetInt() == aVal;
    }
    return PR_FALSE;
  }

Here is the call graph for this function:

boolean nsIFile::contains ( in nsIFile  inFile,
in boolean  recur 
) [inherited]

Will determine if inFile is a descendant of this file If |recur| is true, look in subdirectories too.

static char* NS_COM::ConvertLineBreaks ( const char *  aSrc,
ELinebreakType  aSrcBreaks,
ELinebreakType  aDestBreaks,
PRInt32  aSrcLen = kIgnoreLen,
PRInt32 aOutLen = nsnull 
) [static]
static nsresult NS_COM::ConvertLineBreaksInSitu ( char **  ioBuffer,
ELinebreakType  aSrcBreaks,
ELinebreakType  aDestBreaks,
PRInt32  aSrcLen = kIgnoreLen,
PRInt32 aOutLen = nsnull 
) [static]
static nsresult NS_COM::ConvertStringLineBreaks ( nsString ioString,
ELinebreakType  aSrcBreaks,
ELinebreakType  aDestBreaks 
) [static]
static nsresult NS_COM::ConvertToACString ( const nsDiscriminatedUnion data,
nsACString &  _retval 
) [static]
static nsresult NS_COM::ConvertToArray ( const nsDiscriminatedUnion data,
PRUint16 type,
nsIID iid,
PRUint32 count,
void **  ptr 
) [static]
static nsresult NS_COM::ConvertToAString ( const nsDiscriminatedUnion data,
nsAString &  _retval 
) [static]
static nsresult NS_COM::ConvertToAUTF8String ( const nsDiscriminatedUnion data,
nsAUTF8String _retval 
) [static]
static nsresult NS_COM::ConvertToBool ( const nsDiscriminatedUnion data,
PRBool _retval 
) [static]
static nsresult NS_COM::ConvertToChar ( const nsDiscriminatedUnion data,
char *  _retval 
) [static]
static nsresult NS_COM::ConvertToDouble ( const nsDiscriminatedUnion data,
double *  _retval 
) [static]
static nsresult NS_COM::ConvertToFloat ( const nsDiscriminatedUnion data,
float *  _retval 
) [static]
static nsresult NS_COM::ConvertToID ( const nsDiscriminatedUnion data,
nsID _retval 
) [static]
static nsresult NS_COM::ConvertToInt16 ( const nsDiscriminatedUnion data,
PRInt16 _retval 
) [static]
static nsresult NS_COM::ConvertToInt32 ( const nsDiscriminatedUnion data,
PRInt32 _retval 
) [static]
static nsresult NS_COM::ConvertToInt64 ( const nsDiscriminatedUnion data,
PRInt64 _retval 
) [static]
static nsresult NS_COM::ConvertToInt8 ( const nsDiscriminatedUnion data,
PRUint8 _retval 
) [static]
static nsresult NS_COM::ConvertToInterface ( const nsDiscriminatedUnion data,
nsIID **  iid,
void **  iface 
) [static]
static nsresult NS_COM::ConvertToISupports ( const nsDiscriminatedUnion data,
nsISupports **  _retval 
) [static]
static nsresult NS_COM::ConvertToString ( const nsDiscriminatedUnion data,
char **  _retval 
) [static]
static nsresult NS_COM::ConvertToStringWithSize ( const nsDiscriminatedUnion data,
PRUint32 size,
char **  str 
) [static]
static nsresult NS_COM::ConvertToUint16 ( const nsDiscriminatedUnion data,
PRUint16 _retval 
) [static]
static nsresult NS_COM::ConvertToUint32 ( const nsDiscriminatedUnion data,
PRUint32 _retval 
) [static]
static nsresult NS_COM::ConvertToUint64 ( const nsDiscriminatedUnion data,
PRUint64 _retval 
) [static]
static nsresult NS_COM::ConvertToUint8 ( const nsDiscriminatedUnion data,
PRUint8 _retval 
) [static]
static nsresult NS_COM::ConvertToWChar ( const nsDiscriminatedUnion data,
PRUnichar _retval 
) [static]
static nsresult NS_COM::ConvertToWString ( const nsDiscriminatedUnion data,
PRUnichar **  _retval 
) [static]
static nsresult NS_COM::ConvertToWStringWithSize ( const nsDiscriminatedUnion data,
PRUint32 size,
PRUnichar **  str 
) [static]
static PRUnichar* NS_COM::ConvertUnicharLineBreaks ( const PRUnichar aSrc,
ELinebreakType  aSrcBreaks,
ELinebreakType  aDestBreaks,
PRInt32  aSrcLen = kIgnoreLen,
PRInt32 aOutLen = nsnull 
) [static]
static nsresult NS_COM::ConvertUnicharLineBreaksInSitu ( PRUnichar **  ioBuffer,
ELinebreakType  aSrcBreaks,
ELinebreakType  aDestBreaks,
PRInt32  aSrcLen = kIgnoreLen,
PRInt32 aOutLen = nsnull 
) [static]
nsresult NS_COM::CopyDirectoryTo ( nsIFile newParent) [protected]
static PLDHashOperator PR_CALLBACK NS_COM::CopyElement ( PLDHashTable table,
PLDHashEntryHdr hdr,
PRUint32  i,
void arg 
) [static, protected]
nsresult NS_COM::CopyInternal ( nsIFile newParentDir,
const nsAString &  newName,
PRBool  followLinks 
) [protected]
nsresult NS_COM::CopyMove ( nsIFile newParentDir,
const nsACString &  newName,
PRBool  move 
) [private]
nsresult NS_COM::CopySingleFile ( nsIFile source,
nsIFile dest,
const nsACString &  newName,
PRBool  move 
) [private]
void nsIFile::copyTo ( in nsIFile  newParentDir,
in AString  newName 
) [inherited]

copyTo[Native]

This will copy this file to the specified newParentDir. If a newName is specified, the file will be renamed. If 'this' is not created we will return an error (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST).

copyTo may fail if the file already exists in the destination directory.

copyTo will NOT resolve aliases/shortcuts during the copy.

Parameters:
newParentDirThis param is the destination directory. If the newParentDir is null, copyTo() will use the parent directory of this file. If the newParentDir is not empty and is not a directory, an error will be returned (NS_ERROR_FILE_DESTINATION_NOT_DIR). For the |CopyToNative| method, the newName must be in the native filesystem charset.
newNameThis param allows you to specify a new name for the file to be copied. This param may be empty, in which case the current leaf name will be used.
void nsIFile::copyToFollowingLinks ( in nsIFile  newParentDir,
in AString  newName 
) [inherited]

copyToFollowingLinks[Native]

This function is identical to copyTo with the exception that, as the name implies, it follows symbolic links. The XP_UNIX implementation always follow symbolic links when copying. For the |CopyToFollowingLinks| method, the newName must be in the native filesystem charset.

void nsIFile::copyToFollowingLinksNative ( in nsIFile  newParentDir,
in ACString  newName 
) [inherited]
void nsIFile::CopyToNative ( in nsIFile  newParentDir,
in ACString  newName 
) [inherited]

Here is the caller graph for this function:

PRInt32 NS_COM::Count ( void  ) const [inline]

Implements nsICollection.

Definition at line 61 of file nsVoidArray.h.

                               {
    return mImpl ? mImpl->mCount : 0;
  }
NS_DECL_ISUPPORTS NS_DECL_NSISERIALIZABLE NS_IMETHOD NS_COM::Count ( PRUint32 result) [inline]

Definition at line 63 of file nsSupportsArray.h.

{ *result = mCount; return NS_OK; }
nsValueArrayCount NS_COM::Count ( void  ) const [inline]

Implements nsICollection.

Definition at line 76 of file nsValueArray.h.

                                           {
        return mCount;
    }
PRInt32 NS_COM::Count ( void  ) const [inline]

Definition at line 95 of file nsCOMArray.h.

                          {
        return mArray.Count();
    }

Here is the caller graph for this function:

PRInt32 NS_COM::Count ( void  ) [inline]

Implements nsICollection.

Definition at line 145 of file nsHashtable.h.

{ return mHashtable.entryCount; }
PRInt32 NS_COM::Count ( void  ) [inline]

Implements nsICollection.

Definition at line 208 of file nsHashtable.h.

                        {
        return nsHashtable::Count();
    }

Here is the call graph for this function:

PRInt32 NS_COM::Count ( void  ) const [inline]

Definition at line 211 of file nsVoidArray.h.

                            {
    return nsVoidArray::Count();
  }

Here is the call graph for this function:

PRInt32 NS_COM::Count ( void  ) const [inline]

Definition at line 272 of file nsVoidArray.h.

                            {
    return nsVoidArray::Count();
  }

Here is the call graph for this function:

Implements nsICollection.

static NS_METHOD NS_COM::Create ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]
void nsIFile::create ( in unsigned long  type,
in unsigned long  permissions 
) [inherited]

create

This function will create a new file or directory in the file system. Any nodes that have not been created or resolved, will be. If the file or directory already exists create() will return NS_ERROR_FILE_ALREADY_EXISTS.

Parameters:
typeThis specifies the type of file system object to be made. The only two types at this time are file and directory which are defined above. If the type is unrecongnized, we will return an error (NS_ERROR_FILE_UNKNOWN_TYPE).
permissionsThe unix style octal permissions. This may be ignored on systems that do not need to do permissions.
nsresult NS_COM::CreateAllAncestors ( PRUint32  permissions) [protected]
nsresult NS_COM::CreateAndKeepOpen ( PRUint32  type,
PRIntn  flags,
PRUint32  permissions,
PRFileDesc **  _retval 
) [protected]
void nsIFile::createUnique ( in unsigned long  type,
in unsigned long  permissions 
) [inherited]

createUnique

This function will create a new file or directory in the file system. Any nodes that have not been created or resolved, will be. If this file already exists, we try variations on the leaf name "suggestedName" until we find one that did not already exist.

If the search for nonexistent files takes too long (thousands of the variants already exist), we give up and return NS_ERROR_FILE_TOO_BIG.

Parameters:
typeThis specifies the type of file system object to be made. The only two types at this time are file and directory which are defined above. If the type is unrecongnized, we will return an error (NS_ERROR_FILE_UNKNOWN_TYPE).
permissionsThe unix style octal permissions. This may be ignored on systems that do not need to do permissions.
void NS_COM::CStringAt ( PRInt32  aIndex,
nsACString &  aCString 
) const

Here is the caller graph for this function:

nsCString* NS_COM::CStringAt ( PRInt32  aIndex) const
void NS_COM::DeleteArray ( void  ) [protected]
void nsISupportsArray::DeleteElementAt ( in unsigned long  aIndex) [inherited]

Definition at line 130 of file nsSupportsArray.h.

Here is the call graph for this function:

void nsISupportsArray::DeleteLastElement ( in nsISupports  aElement) [inherited]
NS_IMETHOD NS_COM::DeleteLastElement ( nsISupports *  aElement) [inline]

Definition at line 126 of file nsSupportsArray.h.

                                                      {
    return (RemoveLastElement(aElement) ? NS_OK : NS_ERROR_FAILURE);
  }

Here is the call graph for this function:

void nsIWritablePropertyBag::deleteProperty ( in AString  name) [inherited]

Delete a property with the given name.

Exceptions:
NS_ERROR_FAILUREif a property with that name doesn't exist.
static void NS_COM::DestroyLock ( PRLock lock) [static]
static void NS_COM::DestroyMonitor ( PRMonitor mon) [static]
nsISupports nsISupportsArray::ElementAt ( in unsigned long  aIndex) [inherited]

Here is the caller graph for this function:

void* NS_COM::ElementAt ( PRInt32  aIndex) const [inline]

Definition at line 78 of file nsVoidArray.h.

  {
    NS_ASSERTION(0 <= aIndex && aIndex < Count(), "index out of range");
    return SafeElementAt(aIndex);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

void* NS_COM::ElementAt ( PRInt32  aIndex) const

Remove all items from container without destroying them.

Returns:
*this

Creates a new iterator, pointing to the last item in the deque.

Returns:
new dequeIterator

Enter Client may call this to reenter the given monitor.

See also:
prmon.h

Here is the caller graph for this function:

void NS_COM::Enumerate ( nsHashtableEnumFunc  aEnumFunc,
void aClosure = NULL 
)
void NS_COM::Enumerate ( EnumFunc  aEnumFunc,
void aClosure = NULL 
) [inline]

Definition at line 220 of file nsHashtable.h.

                                                              {
        nsHashtable::Enumerate(aEnumFunc, aClosure);
    }

Here is the call graph for this function:

PRBool NS_COM::EnumerateBackwards ( nsVoidArrayEnumFunc  aFunc,
void aData 
) [inline, protected]

Definition at line 68 of file nsCOMArray.h.

                                                                      {
        return mArray.EnumerateBackwards(aFunc, aData);
    }
boolean nsISupportsArray::EnumerateBackwards ( in nsISupportsArrayEnumFunc  aFunc,
in voidPtr  aData 
) [inherited]
PRBool NS_COM::EnumerateBackwards ( nsVoidArrayEnumFunc  aFunc,
void aData 
)
PRBool NS_COM::EnumerateBackwards ( nsVoidArrayEnumFunc  aFunc,
void aData 
)
static PLDHashOperator PR_CALLBACK NS_COM::EnumerateCopy ( PLDHashTable ,
PLDHashEntryHdr hdr,
PRUint32  i,
void arg 
) [static, private]
PRBool NS_COM::EnumerateForwards ( nsVoidArrayEnumFunc  aFunc,
void aData 
) [inline, protected]

Definition at line 64 of file nsCOMArray.h.

                                                                     {
        return mArray.EnumerateForwards(aFunc, aData);
    }
boolean nsISupportsArray::EnumerateForwards ( in nsISupportsArrayEnumFunc  aFunc,
in voidPtr  aData 
) [inherited]

Here is the caller graph for this function:

PRBool NS_COM::EnumerateForwards ( nsVoidArrayEnumFunc  aFunc,
void aData 
)
PRBool NS_COM::EnumerateForwards ( nsVoidArrayEnumFunc  aFunc,
void aData 
)
boolean nsISupportsArray::Equals ( [const ] in nsISupportsArray  other) [inherited]
virtual PRBool NS_COM::Equals ( const nsHashKey aKey) const [pure virtual]
PRBool NS_COM::Equals ( const nsHashKey aKey) const [inline]

Definition at line 265 of file nsHashtable.h.

                                               {
        NS_ASSERTION(aKey->GetKeyType() == SupportsKey, "mismatched key types");
        return (mKey == ((nsISupportsKey *) aKey)->mKey);
    }

Here is the call graph for this function:

boolean nsIFile::equals ( in nsIFile  inFile) [inherited]

Will determine if the inFile equals this.

PRBool NS_COM::Equals ( const nsHashKey aKey) const [inline]

Definition at line 367 of file nsHashtable.h.

                                               {
        NS_ASSERTION(aKey->GetKeyType() == IDKey, "mismatched key types");
        return (mID.Equals(((const nsIDKey *) aKey)->mID));
    }

Here is the call graph for this function:

PRBool NS_COM::Equals ( const nsHashKey aKey) const
PRBool NS_COM::Equals ( const nsHashKey aKey) const

Remove and delete all items from container.

Deletes are handled by the deallocator nsDequeFunctor which is specified at deque construction.

Returns:
*this

Here is the caller graph for this function:

PRBool NS_COM::Exists ( nsHashKey aKey) [inline]

Definition at line 211 of file nsHashtable.h.

                                   {
        return nsHashtable::Exists (aKey);
    }

Here is the call graph for this function:

boolean nsIFile::exists ( ) [inherited]

Here is the caller graph for this function:

Exit Client may call this to exit the given monitor.

See also:
prmon.h
nsresult NS_COM::ExtensionIsOnExceptionList ( const char *  extension,
PRBool onList 
) [protected]
void* NS_COM::FastElementAt ( PRInt32  aIndex) const [inline]

Definition at line 69 of file nsVoidArray.h.

  {
    NS_ASSERTION(0 <= aIndex && aIndex < Count(), "index out of range");
    return mImpl->mArray[aIndex];
  }

Here is the call graph for this function:

nsresult NS_COM::FindAppOnLocalVolumes ( OSType  sig,
FSSpec outSpec 
) [protected]
Bucket* NS_COM::FindBucket ( size_t  aSize) [protected]
Block* NS_COM::FindFreeBlock ( PRSize  bytes) [protected]
nsresult NS_COM::FindRunningAppByFSSpec ( const FSSpec appSpec,
ProcessSerialNumber &  outPsn 
) [protected]
nsresult NS_COM::FindRunningAppBySignature ( OSType  sig,
FSSpec outSpec,
ProcessSerialNumber &  outPsn 
) [protected]

Moves iterator to first element in the deque.

Returns:
*this
const void* NS_COM::FirstThat ( nsDequeFunctor aFunctor) const

Call this method when you want to iterate all the members of the container, calling the functor you passed with each member.

This process will interrupt if your function returns non 0 to this method.

Parameters:
aFunctorobject to call for each member
Returns:
first nonzero result of aFunctor or 0.
const void* NS_COM::FirstThat ( nsDequeFunctor aFunctor) const

Call this method when you want to iterate all the members of the container, calling the functor you passed with each member.

This process will interrupt if your function returns non 0 to this method.

Parameters:
aFunctorobject to call for each member
Returns:
first nonzero result of aFunctor or 0.
void NS_COM::ForEach ( nsDequeFunctor aFunctor) const

Call this method when you want to iterate all the members of the container, passing a functor along to call your code.

Parameters:
aFunctorobject to call for each member
Returns:
*this
void NS_COM::ForEach ( nsDequeFunctor aFunctor) const

Call this method when you want to iterate all the members of the container, passing a functor along to call your code.

Parameters:
aFunctorobject to call for each member
Returns:
*this
void NS_COM::Free ( void ptr)
static void NS_COM::free ( char *  str) [inline, static]

Definition at line 174 of file nsCRT.h.

                              {
    PL_strfree(str);
  }
void NS_COM::Free ( void aPtr,
size_t  aSize 
)

Free a pointer allocated using a fixed-size allocator.

static void NS_COM::free ( PRUnichar str) [inline, static]

Definition at line 216 of file nsCRT.h.

                                   {
       nsCppSharedAllocator<PRUnichar> shared_allocator;
       shared_allocator.deallocate(str, 0 /*we never new or kept the size*/);
  }

Here is the call graph for this function:

void* NS_COM::Get ( nsHashKey aKey)
nsISupports* NS_COM::Get ( nsHashKey aKey)
const char_type* nsCString::get ( ) const [inline, inherited]

Definition at line 1224 of file nsStringAPI.h.

  {
    const char_type* data;
    NS_CStringGetData(*this, &data);
    return data;
  }

Here is the call graph for this function:

PRInt32 NS_COM::GetArraySize ( ) const [inline]

Definition at line 65 of file nsVoidArray.h.

                                      {
    return mImpl ? (PRInt32(mImpl->mBits) & kArraySizeMask) : 0;
  }
ACString nsIVariant::getAsACString ( ) [inherited]
nsresult nsIVariant::getAsArray ( out PRUint16  type,
out nsIID  iid,
out PRUint32  count,
out voidPtr  ptr 
) [inherited]
AString nsIVariant::getAsAString ( ) [inherited]
AUTF8String nsIVariant::getAsAUTF8String ( ) [inherited]
PRBool nsIVariant::getAsBool ( ) [inherited]
char nsIVariant::getAsChar ( ) [inherited]
DOMString nsIVariant::getAsDOMString ( ) [inherited]
double nsIVariant::getAsDouble ( ) [inherited]
float nsIVariant::getAsFloat ( ) [inherited]
nsresult nsIVariant::getAsID ( out nsID  retval) [inherited]
PRUint8 nsIVariant::getAsInt8 ( ) [inherited]
void nsIVariant::getAsInterface ( out nsIIDPtr  iid,
[iid_is(iid), retval] out nsQIResult  iface 
) [inherited]
nsISupports nsIVariant::getAsISupports ( ) [inherited]
void nsIVariant::getAsStringWithSize ( out PRUint32  size,
[size_is(size), retval] out string  str 
) [inherited]
wchar nsIVariant::getAsWChar ( ) [inherited]
wstring nsIVariant::getAsWString ( ) [inherited]
void nsIVariant::getAsWStringWithSize ( out PRUint32  size,
[size_is(size), retval] out wstring  str 
) [inherited]

getCFURL

Returns the CFURLRef of the file object. The caller is responsible for calling CFRelease() on it.

NOTE: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is TRUE, returns the target of the alias. If followLinks is FALSE, returns the unresolved alias file.

NOTE: Supported only for XP_MACOSX or TARGET_CARBON

Returns:
nsVoidArray* NS_COM::GetChildVector ( ) const [inline, private]

Definition at line 393 of file nsVoidArray.h.

  {
    return (nsVoidArray*)mChildren;
  }

Here is the call graph for this function:

Retrieve the the iterator's notion of current node.

Note that the iterator floats, so you don't need to do: ++iter; aDeque.PopFront(); Unless you actually want your iterator to jump 2 positions relative to its origin.

Picture: [1 2i 3 4] PopFront() Picture: [2 3i 4] Note that I still happily points to object at the second index.

Returns:
object at i'th index
nsresult NS_COM::GetEA ( const char *  eaName,
PFEA2LIST  pfea2list 
) [private]
nsISupports nsICollection::GetElementAt ( in PRUint32  index) [inherited]

Here is the caller graph for this function:

NS_IMETHOD NS_COM::GetElementAt ( PRUint32  aIndex,
nsISupports **  result 
) [inline]

Definition at line 64 of file nsSupportsArray.h.

                                                                 {
    *result = ElementAt(aIndex);
    return NS_OK;
  }

Here is the call graph for this function:

getFileTypes

Returns the file's .TYPE extended attribute as an array of nsISupportsCStrings.

getFSRef

Returns the FSRef of the file object.

NOTE: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is TRUE, returns the target of the alias. If followLinks is FALSE, returns the unresolved alias file.

NOTE: Supported only for XP_MACOSX or TARGET_CARBON

Returns:
nsresult NS_COM::GetFSRefInternal ( FSRef aFSSpec,
PRBool  bForceUpdateCache = PR_TRUE 
) [protected]

getFSSpec

Returns the FSSpec of the file object.

NOTE: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is TRUE, returns the target of the alias. If followLinks is FALSE, returns the unresolved alias file.

Returns:
nsStringHashSet* NS_COM::GetHash ( void  ) [inline, private]

Get the hash pointer (or null if we're not a hash)

Definition at line 88 of file nsCheapSets.h.

  {
    return (PtrBits(mValOrHash) & 0x1) ? nsnull : (nsStringHashSet*)mValOrHash;
  }

Here is the caller graph for this function:

nsInt32HashSet* NS_COM::GetHash ( void  ) [inline, private]

Get the hash pointer (or null if we're not a hash)

Definition at line 161 of file nsCheapSets.h.

  {
    return PtrBits(mValOrHash) & 0x1 ? nsnull : (nsInt32HashSet*)mValOrHash;
  }
long nsISupportsArray::GetIndexOf ( in nsISupports  aPossibleElement) [inherited]
NS_IMETHOD NS_COM::GetIndexOf ( nsISupports *  aPossibleElement,
PRInt32 _retval 
) [inline]

Definition at line 100 of file nsSupportsArray.h.

                                                                         {
    *_retval = IndexOf(aPossibleElement);
    return NS_OK;
  }

Here is the call graph for this function:

long nsISupportsArray::GetIndexOfStartingAt ( in nsISupports  aPossibleElement,
in unsigned long  aStartIndex 
) [inherited]
NS_IMETHOD NS_COM::GetIndexOfStartingAt ( nsISupports *  aPossibleElement,
PRUint32  aStartIndex,
PRInt32 _retval 
) [inline]

Definition at line 105 of file nsSupportsArray.h.

                                                                          {
    *_retval = IndexOfStartingAt(aPossibleElement, aStartIndex);
    return NS_OK;
  }

Here is the call graph for this function:

PRInt32 NS_COM::GetInt ( ) [inline, private]

Get the single integer.

Definition at line 171 of file nsCheapSets.h.

  {
    return PtrBits(mValOrHash) >> 1;
  }

Here is the caller graph for this function:

const void* NS_COM::GetKey ( void  ) const [inline]

Definition at line 418 of file nsDoubleHashtable.h.

                             {
    return NS_STATIC_CAST(const nsAString*, &mKey);
  }
const void* NS_COM::GetKey ( void  ) const [inline]

Definition at line 441 of file nsDoubleHashtable.h.

                             {
    return NS_STATIC_CAST(const nsACString*, &mKey);
  }
const void* NS_COM::GetKey ( void  ) const [inline]

Definition at line 464 of file nsDoubleHashtable.h.

                             {
    return NS_STATIC_CAST(const PRInt32*, &mKey);
  }
const void* NS_COM::GetKey ( void  ) const [inline]

Definition at line 488 of file nsDoubleHashtable.h.

                             {
    return (const void**)&mKey;
  }
long nsISupportsArray::GetLastIndexOf ( in nsISupports  aPossibleElement) [inherited]
NS_IMETHOD NS_COM::GetLastIndexOf ( nsISupports *  aPossibleElement,
PRInt32 _retval 
) [inline]

Definition at line 111 of file nsSupportsArray.h.

                                                                             {
    *_retval = LastIndexOf(aPossibleElement);
    return NS_OK;
  }

Here is the call graph for this function:

nsresult NS_COM::GetNativeTargetPathName ( nsIFile newParent,
const nsACString &  newName,
nsACString &  _retval 
) [protected]
NS_IMETHOD NS_COM::GetNext ( nsISupports **  aResult)
NS_IMETHOD NS_COM::GetNext ( nsISupports **  aResult)
nsISupports nsISimpleEnumerator::getNext ( ) [inherited]

Called to retrieve the next element in the enumerator.

The "next" element is the first element upon the first call. Must be pre-ceeded by a call to hasMoreElements() which returns PR_TRUE. This method is generally called within a loop to iterate over the elements in the enumerator.

See also:
hasMoreElements()
Returns:
NS_OK if the call succeeded in returning a non-null value through the out parameter. NS_ERROR_FAILURE if there are no more elements to enumerate.
the next element in the enumeration.

Here is the caller graph for this function:

NS_IMETHOD NS_COM::GetNext ( nsISupports **  aResult)
nsresult NS_COM::GetPathInternal ( nsACString &  path) [protected]
nsIVariant nsIPropertyBag::getProperty ( in AString  name) [inherited]

Get a property value for the given name.

Exceptions:
NS_ERROR_FAILUREif a property with that name doesn't exist.
ACString nsIPropertyBag2::getPropertyAsACString ( in AString  prop) [inherited]
AString nsIPropertyBag2::getPropertyAsAString ( in AString  prop) [inherited]
AUTF8String nsIPropertyBag2::getPropertyAsAUTF8String ( in AString  prop) [inherited]
boolean nsIPropertyBag2::getPropertyAsBool ( in AString  prop) [inherited]
double nsIPropertyBag2::getPropertyAsDouble ( in AString  prop) [inherited]
PRInt32 nsIPropertyBag2::getPropertyAsInt32 ( in AString  prop) [inherited]
PRInt64 nsIPropertyBag2::getPropertyAsInt64 ( in AString  prop) [inherited]
void nsIPropertyBag2::getPropertyAsInterface ( in AString  prop,
in nsIIDRef  iid,
[iid_is(iid), retval] out nsQIResult  result 
) [inherited]

This method returns null if the value exists, but is null.

PRUint32 nsIPropertyBag2::getPropertyAsUint32 ( in AString  prop) [inherited]
PRUint64 nsIPropertyBag2::getPropertyAsUint64 ( in AString  prop) [inherited]
ACString nsILocalFile::getRelativeDescriptor ( in nsILocalFile  fromFile) [inherited]

getRelativeDescriptor

Returns a relative file path in an opaque, XP format. It is therefore not a native path.

The character set of the string returned from this function is undefined. DO NOT TRY TO INTERPRET IT AS HUMAN READABLE TEXT!

Parameters:
fromFilethe file from which the descriptor is relative. There is no defined result if this param is null.
static nsresult NS_COM::GetService ( const nsCID aClass,
const nsIID aIID,
nsISupports **  result,
nsIShutdownListener *  shutdownListener = nsnull 
) [static]
static nsresult NS_COM::GetService ( const char *  aContractID,
const nsIID aIID,
nsISupports **  result,
nsIShutdownListener *  shutdownListener = nsnull 
) [static]
void* NS_COM::GetSingleChild ( ) const [inline, private]

Definition at line 388 of file nsVoidArray.h.

  {
    return (mChildren ? ((void*)(PtrBits(mChildren) & ~0x1)) : nsnull);
  }
PRInt32 NS_COM::GetSize ( void  ) const [inline]

Returns the number of elements currently stored in this deque.

Returns:
number of elements currently in the deque

Definition at line 101 of file nsDeque.h.

{return mSize;}
nsAString* NS_COM::GetStr ( ) [inline, private]

Find out whether it is a string.

Definition at line 93 of file nsCheapSets.h.

  {
    return (PtrBits(mValOrHash) & 0x1)
           ? (nsAString*)(PtrBits(mValOrHash) & ~0x1)
           : nsnull;
  }

Here is the caller graph for this function:

const char* NS_COM::GetString ( ) const [inline]

Definition at line 409 of file nsHashtable.h.

{ return mStr; }
const PRUnichar* NS_COM::GetString ( ) const [inline]

Definition at line 443 of file nsHashtable.h.

{ return mStr; }
PRUint32 NS_COM::GetStringLength ( ) const [inline]

Definition at line 410 of file nsHashtable.h.

{ return mStrLen; }
PRUint32 NS_COM::GetStringLength ( ) const [inline]

Definition at line 444 of file nsHashtable.h.

{ return mStrLen; }
static void NS_COM::GlobalInit ( ) [static]
static void NS_COM::GlobalInit ( ) [static]
static void NS_COM::GlobalInit ( ) [static]
static void NS_COM::GlobalInit ( ) [static]
static void NS_COM::GlobalShutdown ( ) [static]
static void NS_COM::GlobalShutdown ( ) [static]
static void NS_COM::GlobalShutdown ( ) [static]
static void NS_COM::GlobalShutdown ( ) [static]
virtual PRBool NS_COM::GrowArrayBy ( PRInt32  aGrowBy) [protected, virtual]
virtual PRUint32 NS_COM::HashCode ( void  ) const [pure virtual]
static PRUint32 NS_COM::HashCode ( const char *  str,
PRUint32 resultingStrLen = nsnull 
) [static]
static PRUint32 NS_COM::HashCode ( const PRUnichar str,
PRUint32 resultingStrLen = nsnull 
) [static]
PRUint32 NS_COM::HashCode ( void  ) const [inline]

Definition at line 261 of file nsHashtable.h.

                                  {
        return NS_PTR_TO_INT32(mKey);
    }
PRUint32 NS_COM::HashCode ( void  ) const [inline]

Definition at line 363 of file nsHashtable.h.

                                  {
        return mID.m0;
    }
static PLDHashNumber NS_COM::HashKey ( const void key) [inline, static]

Definition at line 421 of file nsDoubleHashtable.h.

                                                {
    return HashString(*NS_STATIC_CAST(const nsAString*, key));
  }

Here is the call graph for this function:

static PLDHashNumber NS_COM::HashKey ( const void key) [inline, static]

Definition at line 444 of file nsDoubleHashtable.h.

                                                {
    return HashString(*NS_STATIC_CAST(const nsACString*, key));
  }

Here is the call graph for this function:

static PLDHashNumber NS_COM::HashKey ( const void key) [inline, static]

Definition at line 467 of file nsDoubleHashtable.h.

                                                {
    return *NS_STATIC_CAST(const PRInt32*, key);
  }
static PLDHashNumber NS_COM::HashKey ( const void key) [inline, static]

Definition at line 491 of file nsDoubleHashtable.h.

                                                {
    return PLDHashNumber(NS_PTR_TO_INT32(*(const void**)key)) >> 2;
  }

Called to determine whether or not the enumerator has any elements that can be returned via getNext().

This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, though it can be called without subsequent getNext() calls. Does not affect internal state of enumerator.

See also:
getNext()
Returns:
PR_TRUE if there are remaining elements in the enumerator. PR_FALSE if there are no more elements in the enumerator.

Here is the caller graph for this function:

PRBool NS_COM::HasSingleChild ( ) const [inline, private]

Definition at line 380 of file nsVoidArray.h.

  {
    return (mChildren && (PtrBits(mChildren) & 0x1));
  }
PRBool NS_COM::HasVector ( ) const [inline, private]

Definition at line 384 of file nsVoidArray.h.

  {
    return (mChildren && !(PtrBits(mChildren) & 0x1));
  }
static PRInt64 NS_COM::HFSPlustoNSPRTime ( const UTCDateTime &  utcTime) [static, protected]
void NS_COM::Hide ( void  ) [inline, protected]

Definition at line 140 of file nsAutoLock.h.

{}

Here is the caller graph for this function:

PRInt32 NS_COM::IndexOf ( nsISupports *  aObject) const [inline, protected]

Definition at line 58 of file nsCOMArray.h.

                                                {
        return mArray.IndexOf(aObject);
    }

Here is the caller graph for this function:

long nsISupportsArray::IndexOf ( [const ] in nsISupports  aPossibleElement) [inherited]

Here is the caller graph for this function:

PRInt32 NS_COM::IndexOf ( void aPossibleElement) const
PRInt32 NS_COM::IndexOf ( const nsAString &  aPossibleString) const
PRInt32 NS_COM::IndexOf ( const nsACString &  aPossibleString) const
PRInt32 NS_COM::IndexOf ( void aPossibleElement) const
PRInt32 NS_COM::IndexOfIgnoreCase ( const nsACString &  aPossibleString) const
PRInt32 NS_COM::IndexOfObject ( nsISupports *  aObject) const [protected]
long nsISupportsArray::IndexOfStartingAt ( [const ] in nsISupports  aPossibleElement,
in unsigned long  aStartIndex 
) [inherited]

Here is the caller graph for this function:

PRBool NS_COM::Init ( const char *const  aNames[],
PRInt32  Count 
)
NS_DECL_ISUPPORTS NS_DECL_NSISIMPLEENUMERATOR NS_DECL_NSIDIRECTORYENUMERATOR NS_IMETHOD NS_COM::Init ( nsLocalFile parent,
PRBool  ignored 
)
nsresult NS_COM::Init ( PRUint32  nbucket,
PRUint32  recycleAfter,
const char *  id 
)
nsresult NS_COM::Init ( const char *  aName,
const size_t *  aBucketSizes,
PRInt32  aNumBuckets,
PRInt32  aInitialSize,
PRInt32  aAlign = 0 
)

Initialize the fixed size allocator.

'aName' is used to tag the underlying PLArena object for debugging and measurement purposes. 'aNumBuckets' specifies the number of elements in 'aBucketSizes', which is an array of integral block sizes that this allocator should be prepared to handle.

static void NS_COM::InitClassStatics ( ) [static, private]
nsresult NS_COM::InitHash ( nsStringHashSet **  aSet) [private]

Initialize the hash.

nsresult NS_COM::InitHash ( nsInt32HashSet **  aSet) [private]

Create the hash and initialize.

static nsresult NS_COM::Initialize ( nsDiscriminatedUnion data) [static]

initToAppWithCreatorCode

Init this object to point to an application having the given creator code. If this app is missing, this will fail. It will first look for running application with the given creator.

Parameters:
aAppCreatorthe signature of the app

initWithCFURL

Init this object with a CFURLRef

NOTE: Supported only for XP_MACOSX or TARGET_CARBON NOTE: If the path of the CFURL is /a/b/c, at least a/b must exist beforehand.

Parameters:
aCFURLthe CoreFoundation URL

initWithFile

Initialize this object with another file

Parameters:
aFilethe file this becomes equivalent to
void nsILocalFileMac::initWithFSRef ( [const ] in FSRefPtr  aFSRef) [inherited]

initWithFSRef

Init this object with an FSRef

NOTE: Supported only for XP_MACOSX or TARGET_CARBON

Parameters:
aFSRefthe native file spec
void nsILocalFileMac::initWithFSSpec ( [const ] in FSSpecPtr  aFileSpec) [inherited]

initWithFSSpec

Init this object with an FSSpec Legacy method - leaving in place for now

Parameters:
aFileSpecthe native file spec
void nsILocalFile::initWithNativePath ( in ACString  filePath) [inherited]
void nsILocalFile::initWithPath ( in AString  filePath) [inherited]

initWith[Native]Path

This function will initialize the nsILocalFile object. Any internal state information will be reset.

NOTE: This function has a known bug on the macintosh and other OSes which do not represent file locations as paths. If you do use this function, be very aware of this problem!

Parameters:
filePathA string which specifies a full file path to a location. Relative paths will be treated as an error (NS_ERROR_FILE_UNRECOGNIZED_PATH). For initWithNativePath, the filePath must be in the native filesystem charset.
PRBool NS_COM::InsertCStringAt ( const nsACString &  aCString,
PRInt32  aIndex 
)

Here is the caller graph for this function:

boolean nsISupportsArray::InsertElementAt ( in nsISupports  aElement,
in unsigned long  aIndex 
) [inherited]

Here is the caller graph for this function:

PRBool NS_COM::InsertElementAt ( void aElement,
PRInt32  aIndex 
)

Here is the caller graph for this function:

PRBool NS_COM::InsertElementAt ( void aElement,
PRInt32  aIndex 
)

Here is the caller graph for this function:

boolean nsISupportsArray::InsertElementsAt ( in nsISupportsArray  aOther,
in unsigned long  aIndex 
) [inherited]
PRBool NS_COM::InsertObjectAt ( nsISupports *  aObject,
PRInt32  aIndex 
) [protected]

Here is the caller graph for this function:

PRBool NS_COM::InsertObjectsAt ( const nsCOMArray_base aObjects,
PRInt32  aIndex 
) [protected]

Here is the caller graph for this function:

PRBool NS_COM::InsertStringAt ( const nsAString &  aString,
PRInt32  aIndex 
)

Here is the caller graph for this function:

Here is the caller graph for this function:

void NS_COM::InvalidateCache ( ) [inline, protected]

Definition at line 123 of file nsLocalFileUnix.h.

PRBool NS_COM::IsArrayOwner ( ) const [inline, protected]

Definition at line 169 of file nsVoidArray.h.

static PRBool NS_COM::IsAscii ( PRUnichar  aChar) [static]
static PRBool NS_COM::IsAscii ( const PRUnichar aString) [static]
static PRBool NS_COM::IsAscii ( const char *  aString) [static]
static PRBool NS_COM::IsAscii ( const char *  aString,
PRUint32  aLength 
) [static]
static PRBool NS_COM::IsAsciiAlpha ( PRUnichar  aChar) [static]
static PRBool NS_COM::IsAsciiDigit ( PRUnichar  aChar) [static]
static PRBool NS_COM::IsAsciiSpace ( PRUnichar  aChar) [static]
boolean nsIFile::isDirectory ( ) [inherited]
boolean nsIFile::isExecutable ( ) [inherited]
boolean nsIFile::isFile ( ) [inherited]
PRBool nsILocalFileOS2::isFileType ( in ACString  fileType) [inherited]

isFileType

Returns TRUE if the file has a .TYPE extended attribute that matches the string passed in. The comparison is case-sensitive.

Parameters:
fileTypea string in the filesystem's native character set
boolean nsIFile::isHidden ( ) [inherited]
PRBool NS_COM::IsInt ( ) [inline, private]

Find out whether it is an integer.

Definition at line 166 of file nsCheapSets.h.

  {
    return !!(PtrBits(mValOrHash) & 0x1);
  }

Here is the caller graph for this function:

static PRBool NS_COM::IsLower ( char  aChar) [static]

isPackage

returns true if a directory is determined to be a package under Mac OS 9/X

boolean nsIFile::isReadable ( ) [inherited]
boolean nsIFile::isSpecial ( ) [inherited]

Not a regular file, not a directory, not a symlink.

boolean nsIFile::isSymlink ( ) [inherited]
static PRBool NS_COM::IsUpper ( char  aChar) [static]
boolean nsIFile::isWritable ( ) [inherited]

Here is the caller graph for this function:

void* NS_COM::Last ( ) const
long nsISupportsArray::LastIndexOf ( [const ] in nsISupports  aPossibleElement) [inherited]

Here is the caller graph for this function:

void nsILocalFile::launch ( ) [inherited]

launch

Ask the operating system to attempt to open the file. this really just simulates "double clicking" the file on your platform. This routine only works on platforms which support this functionality.

void nsILocalFileMac::launchWithDoc ( in nsILocalFile  aDocToLoad,
in boolean  aLaunchInBackground 
) [inherited]

launchWithDoc

Launch the application that this file points to with a document.

Parameters:
aDocToLoadMust not be NULL. If no document, use nsILocalFile::launch
aLaunchInBackgroundTRUE if the application should not come to the front.
void NS_COM::LocateNativeLeafName ( nsACString::const_iterator &  ,
nsACString::const_iterator &   
) [protected]
void NS_COM::lock ( ) [inline]

lock Client may call this to reaquire the given lock.

Take special note that attempting to aquire a locked lock will hang or crash.

Definition at line 232 of file nsAutoLock.h.

Here is the call graph for this function:

PRInt32 NS_COM::Lookup ( const nsACString &  aName)
PRInt32 NS_COM::Lookup ( const nsAString &  aName)
void NS_COM::MakeDirty ( ) [protected]
void NS_COM::MakeDirty ( ) [inline, private]

Definition at line 110 of file nsLocalFileOS2.h.

{ mDirty = PR_TRUE; }
void* NS_COM::Malloc ( PRSize  size,
PRBool  zeroit = PR_FALSE 
)

Here is the caller graph for this function:

PRBool NS_COM::MatchEntry ( const void key) const [inline]

Definition at line 424 of file nsDoubleHashtable.h.

                                           {
    return NS_STATIC_CAST(const nsAString*, key)->Equals(mKey);
  }
PRBool NS_COM::MatchEntry ( const void key) const [inline]

Definition at line 447 of file nsDoubleHashtable.h.

                                           {
    return NS_STATIC_CAST(const nsACString*, key)->Equals(mKey);
  }
PRBool NS_COM::MatchEntry ( const void key) const [inline]

Definition at line 470 of file nsDoubleHashtable.h.

                                           {
    return *(NS_STATIC_CAST(const PRInt32*, key)) == mKey;
  }
PRBool NS_COM::MatchEntry ( const void key) const [inline]

Definition at line 494 of file nsDoubleHashtable.h.

                                           {
    return *(const void**)key == mKey;
  }
nsresult NS_COM::MoveCopy ( nsIFile newParentDir,
const nsACString &  newName,
PRBool  isCopy,
PRBool  followLinks 
) [protected]
PRBool NS_COM::MoveElement ( PRInt32  aFrom,
PRInt32  aTo 
)
boolean nsISupportsArray::MoveElement ( in long  aFrom,
in long  aTo 
) [inherited]
PRBool NS_COM::MoveElement ( PRInt32  aFrom,
PRInt32  aTo 
)
void nsIFile::moveTo ( in nsIFile  newParentDir,
in AString  newName 
) [inherited]

moveTo[Native]

A method to move this file or directory to newParentDir. If a newName is specified, the file or directory will be renamed. If 'this' is not created we will return an error (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST). If 'this' is a file, and the destination file already exists, moveTo will replace the old file.

moveTo will NOT resolve aliases/shortcuts during the copy. moveTo will do the right thing and allow copies across volumes. moveTo will return an error (NS_ERROR_FILE_DIR_NOT_EMPTY) if 'this' is a directory and the destination directory is not empty. moveTo will return an error (NS_ERROR_FILE_ACCESS_DENIED) if 'this' is a directory and the destination directory is not writable.

Parameters:
newParentDirThis param is the destination directory. If the newParentDir is empty, moveTo() will rename the file within its current directory. If the newParentDir is not empty and does not name a directory, an error will be returned (NS_ERROR_FILE_DESTINATION_NOT_DIR). For the |moveToNative| method, the newName must be in the native filesystem charset.
newNameThis param allows you to specify a new name for the file to be moved. This param may be empty, in which case the current leaf name will be used.
void nsIFile::moveToNative ( in nsIFile  newParentDir,
in ACString  newName 
) [inherited]
nsresult NS_COM::MyLaunchAppWithDoc ( const FSSpec appSpec,
const FSSpec aDocToLoad,
PRBool  aLaunchInBackground 
) [protected]
static PRLock* NS_COM::NewLock ( const char *  name) [static]

NewLock Allocates a new PRLock for use with nsAutoLock.

name is not checked for uniqueness.

Parameters:
nameA name which can reference this lock
lockA valid PRLock* that was created by nsAutoLock::NewLock()
Returns:
nsnull if failure A valid PRLock* if successful, which must be destroyed by nsAutoLock::DestroyLock()
static PRMonitor* NS_COM::NewMonitor ( const char *  name) [static]

NewMonitor Allocates a new PRMonitor for use with nsAutoMonitor.

Parameters:
nameA (unique /be?) name which can reference this monitor
Returns:
nsnull if failure A valid PRMonitor* is successful while must be destroyed by nsAutoMonitor::DestroyMonitor()
void nsIFile::normalize ( ) [inherited]