Lines Matching defs:nsFileSpec

62 //      nsFilePath, nsFileURL, nsFileSpec, nsPersistentFileDescriptor
66 // A. Use nsFileSpec. Using char* will lose information on some platforms.
72 // A. Use nsPersistentFileDescriptor. Convert to and from nsFileSpec at run time.
91 // nsOutputFileStream testStream(nsFileSpec(myPath));
111 // nsFileSpec fileSpec(fileURL);
209 class nsFileSpec; // Preferred. For i/o use nsInputFileStream, nsOutputFileStream
242 // An envelope for char*: reference counted. Used internally by all the nsFileSpec
314 class NS_COM_OBSOLETE nsFileSpec
316 // because the other two types have an embedded nsFileSpec object.
320 nsFileSpec();
323 NS_EXPLICIT nsFileSpec(const char* inNativePath, PRBool inCreateDirs = PR_FALSE);
324 NS_EXPLICIT nsFileSpec(const nsString& inNativePath, PRBool inCreateDirs = PR_FALSE);
327 NS_EXPLICIT nsFileSpec(const nsFilePath& inPath);
328 NS_EXPLICIT nsFileSpec(const nsFileURL& inURL);
329 nsFileSpec(const nsFileSpec& inPath);
330 virtual ~nsFileSpec();
337 void operator = (const nsFileSpec& inOther);
340 PRBool operator ==(const nsFileSpec& inOther) const;
341 PRBool operator !=(const nsFileSpec& inOther) const;
348 // The path is cached and freed by the nsFileSpec destructor
362 PRBool IsChildOf(nsFileSpec &possibleParent);
367 nsFileSpec(
373 nsFileSpec(const FSSpec& inSpec, PRBool resolveAlias = PR_TRUE);
402 ((nsFileSpec*)this)->mError = NS_ERROR_NOT_INITIALIZED;
423 void GetParent(nsFileSpec& outSpec) const;
426 // ie nsFileSpec::TimeStamp. This is 32 bits now,
450 nsFileSpec operator + (const char* inRelativeUnixPath) const;
488 void RecursiveCopy(nsFileSpec newDir) const;
491 nsresult CopyToDir(const nsFileSpec& inNewParentDirectory) const;
492 nsresult MoveToDir(const nsFileSpec& inNewParentDirectory);
503 // Clear the nsFileSpec contents, resetting it
517 NS_EXPLICIT nsFileSpec(const nsPersistentFileDescriptor& inURL);
519 }; // class nsFileSpec
523 typedef nsFileSpec nsNativeFileSpec;
537 NS_EXPLICIT nsFileURL(const nsFileSpec& inPath);
551 void operator = (const nsFileSpec& inOther);
563 const nsFileSpec& GetFileSpec() const { return mFileSpec; }
576 // can have the same name), stash the secret nsFileSpec, too.
577 nsFileSpec mFileSpec;
593 NS_EXPLICIT nsFilePath(const nsFileSpec& inPath);
609 void operator = (const nsFileSpec& inOther);
617 const nsFileSpec& GetFileSpec() const { return mFileSpec; }
629 // can have the same name), stash the secret nsFileSpec, too.
630 nsFileSpec mFileSpec;
637 // one of these from your nsFileSpec, and then write this out to your output stream.
639 // and then make an nsFileSpec from it.
650 NS_EXPLICIT nsPersistentFileDescriptor(const nsFileSpec& inSpec);
651 void operator = (const nsFileSpec& inSpec);
663 friend class nsFileSpec;
683 // nsFileSpec parentDir(...); // directory over whose children we shall iterate
699 nsDirectoryIterator( const nsFileSpec& parent,
710 operator nsFileSpec&() { return mCurrent; }
712 nsFileSpec& Spec() { return mCurrent; }
726 nsFileSpec mCurrent;
731 nsFileSpec mStarting;
754 NS_EXPLICIT nsNSPRPath(const nsFileSpec& inSpec)
780 NS_COM_OBSOLETE nsresult NS_FileSpecToIFile(nsFileSpec* fileSpec, nsILocalFile* *result);