X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92abb45d0a07d5b31a1258bf9668ee5c22dd2596..aed8df383fa66e3b69aecb29e34815a0a518ce1d:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index e0ad458fb5..8a90ad439e 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -6,7 +6,7 @@ // Created: 29/01/98 // RCS-ID: $Id$ // Copyright: (c) 1998 Julian Smart -// Licence: wxWindows license +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// #ifndef __FILEFNH__ @@ -16,8 +16,28 @@ #pragma interface "filefn.h" #endif -#include "wx/list.h" +#include +// ---------------------------------------------------------------------------- +// constants +// ---------------------------------------------------------------------------- + +// define off_t +#include + +#ifdef _MSC_VER + #define off_t _off_t +#endif + +typedef enum { + wxFromStart, + wxFromCurrent, + wxFromEnd +} wxSeekMode; + +// ---------------------------------------------------------------------------- +// functions +// ---------------------------------------------------------------------------- bool WXDLLEXPORT wxFileExists(const wxString& filename); #define FileExists wxFileExists @@ -51,6 +71,7 @@ void WXDLLEXPORT wxUnix2DosFilename(char *s); // Strip the extension, in situ void WXDLLEXPORT wxStripExtension(char *buffer); +void WXDLLEXPORT wxStripExtension(wxString& buffer); // Get a temporary filename, opening and closing the file. char* WXDLLEXPORT wxGetTempFileName(const wxString& prefix, char *buf = NULL); @@ -158,6 +179,10 @@ void WXDLLEXPORT wxSplitPath(const char *pszFileName, // find a file in a list of directories, returns false if not found bool WXDLLEXPORT wxFindFileInPath(wxString *pStr, const char *pszPath, const char *pszFile); +// ---------------------------------------------------------------------------- +// classes +// ---------------------------------------------------------------------------- + // Path searching class WXDLLEXPORT wxPathList: public wxStringList {