]>
git.saurik.com Git - wxWidgets.git/blob - src/msdos/dir.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/dir.cpp
3 // Purpose: wxDir implementation for PalmOS
4 // Author: William Osborne - minimal working wxPalmOS port
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
& dir
)
71 // ----------------------------------------------------------------------------
72 // wxDir construction/destruction
73 // ----------------------------------------------------------------------------
75 wxDir::wxDir(const wxString
& dirname
)
79 bool wxDir::Open(const wxString
& dirname
)
84 bool wxDir::IsOpened() const
89 wxString
wxDir::GetName() const
100 // ----------------------------------------------------------------------------
102 // ----------------------------------------------------------------------------
104 bool wxDir::GetFirst(wxString
*filename
,
105 const wxString
& filespec
,
111 bool wxDir::GetNext(wxString
*filename
) const