]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/ffile.h
Make storing non-trivial data in wxThreadSpecificInfo possible.
[wxWidgets.git] / interface / wx / ffile.h
index 33de5504c495763fd7aa44f4fa92c48b65720141..ada146d3438dd48351e1b694ac7729c3293a2bc6 100644 (file)
@@ -2,36 +2,10 @@
 // Name:        ffile.h
 // Purpose:     interface of wxFFile
 // Author:      wxWidgets team
 // Name:        ffile.h
 // Purpose:     interface of wxFFile
 // Author:      wxWidgets team
-// RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 
 /////////////////////////////////////////////////////////////////////////////
 
 
-
-/**
-    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
 
 /**
     @class wxFFile
 
@@ -102,11 +76,14 @@ public:
         closing the file if this descriptor is opened.
 
         IsOpened() will return @false after call to Detach().
         closing the file if this descriptor is opened.
 
         IsOpened() will return @false after call to Detach().
+
+        @return The FILE pointer (this is new since wxWidgets 3.0.0, in the
+        previous versions this method didn't return anything).
     */
     */
-    void Detach();
+    FILE* 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
         the end of the file.
 
         Note that the behaviour of the file descriptor based class  wxFile is different as
@@ -146,6 +123,15 @@ public:
     */
     wxFileKind GetKind() const;
 
     */
     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.
 
     /**
         Returns @true if the file is opened.