class WXDLLIMPEXP_BASE wxFile;
#endif
+#if wxUSE_FFILE
+class WXDLLIMPEXP_BASE wxFFile;
+#endif
+
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
void AssignHomeDir();
static wxString GetHomeDir();
+ // get the system temporary directory
+ static wxString GetTempDir();
+
+#if wxUSE_FILE || wxUSE_FFILE
+ // get a temp file name starting with the specified prefix
+ void AssignTempFileName(const wxString& prefix);
+ static wxString CreateTempFileName(const wxString& prefix);
+#endif // wxUSE_FILE
+
#if wxUSE_FILE
// get a temp file name starting with the specified prefix and open the
// file passed to us using this name for writing (atomically if
// possible)
- void AssignTempFileName(const wxString& prefix, wxFile *fileTemp = NULL);
+ void AssignTempFileName(const wxString& prefix, wxFile *fileTemp);
static wxString CreateTempFileName(const wxString& prefix,
- wxFile *fileTemp = NULL);
+ wxFile *fileTemp);
#endif // wxUSE_FILE
+#if wxUSE_FFILE
+ // get a temp file name starting with the specified prefix and open the
+ // file passed to us using this name for writing (atomically if
+ // possible)
+ void AssignTempFileName(const wxString& prefix, wxFFile *fileTemp);
+ static wxString CreateTempFileName(const wxString& prefix,
+ wxFFile *fileTemp);
+#endif // wxUSE_FFILE
+
// directory creation and removal.
bool Mkdir( int perm = 0777, int flags = 0);
static bool Mkdir( const wxString &dir, int perm = 0777, int flags = 0 );