X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..b02dd12239c8a59b9a545d9fcb04974f8ad02c6b:/interface/wx/ffile.h diff --git a/interface/wx/ffile.h b/interface/wx/ffile.h index 644bb10385..43d94f1ed1 100644 --- a/interface/wx/ffile.h +++ b/interface/wx/ffile.h @@ -7,31 +7,6 @@ ///////////////////////////////////////////////////////////////////////////// - -/** - Values used for both wxFile and wxFFile. - - @todo make the value names uppercase -*/ -enum wxSeekMode -{ - wxFromStart, - wxFromCurrent, - wxFromEnd -}; - -/** - See wxFFile::GetKind(). -*/ -enum wxFileKind -{ - wxFILE_KIND_UNKNOWN, - wxFILE_KIND_DISK, /**< A file supporting seeking to arbitrary offsets. */ - wxFILE_KIND_TERMINAL, /**< A terminal. */ - wxFILE_KIND_PIPE /**< A pipe. */ -}; - - /** @class wxFFile @@ -106,7 +81,7 @@ public: void Detach(); /** - Returns @true if the an attempt has been made to read @e past + Returns @true if an attempt has been made to read @e past the end of the file. Note that the behaviour of the file descriptor based class wxFile is different as @@ -146,6 +121,15 @@ public: */ wxFileKind GetKind() const; + /** + Returns the file name. + + This is the name that was specified when the object was constructed or + to the last call to Open(). Notice that it may be empty if Attach() was + called without specifying the name. + */ + const wxString& GetName() const; + /** Returns @true if the file is opened.