]>
git.saurik.com Git - wxWidgets.git/blob - src/msdos/dir.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/msdos/dir.cpp
3 // Purpose: wxDir implementation for DOS
4 // Author: derived from wxPalmOS code
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
33 #include "wx/filefn.h" // for wxDirExists()
35 // ----------------------------------------------------------------------------
36 // define the types and functions used for file searching
37 // ----------------------------------------------------------------------------
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
44 #define MAX_PATH 260 // from VC++ headers
47 // ----------------------------------------------------------------------------
49 // ----------------------------------------------------------------------------
51 #define M_DIR ((wxDirData *)m_data)
53 // ----------------------------------------------------------------------------
55 // ----------------------------------------------------------------------------
57 // ============================================================================
59 // ============================================================================
61 // ----------------------------------------------------------------------------
63 // ----------------------------------------------------------------------------
66 bool wxDir::Exists(const wxString
& WXUNUSED(dir
))
71 // ----------------------------------------------------------------------------
72 // wxDir construction/destruction
73 // ----------------------------------------------------------------------------
75 wxDir::wxDir(const wxString
& WXUNUSED(dirname
))
79 bool wxDir::Open(const wxString
& WXUNUSED(dirname
))
84 bool wxDir::IsOpened() const
89 wxString
wxDir::GetName() const
98 // ----------------------------------------------------------------------------
100 // ----------------------------------------------------------------------------
102 bool wxDir::GetFirst(wxString
*WXUNUSED(filename
),
103 const wxString
& WXUNUSED(filespec
),
104 int WXUNUSED(flags
)) const
109 bool wxDir::GetNext(wxString
*WXUNUSED(filename
)) const