]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "dir.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
37 #include "wx/filefn.h" // for wxDirExists()
39 // ----------------------------------------------------------------------------
40 // define the types and functions used for file searching
41 // ----------------------------------------------------------------------------
43 // ----------------------------------------------------------------------------
45 // ----------------------------------------------------------------------------
48 #define MAX_PATH 260 // from VC++ headers
51 // ----------------------------------------------------------------------------
53 // ----------------------------------------------------------------------------
55 #define M_DIR ((wxDirData *)m_data)
57 // ----------------------------------------------------------------------------
59 // ----------------------------------------------------------------------------
61 // ============================================================================
63 // ============================================================================
65 // ----------------------------------------------------------------------------
67 // ----------------------------------------------------------------------------
70 bool wxDir::Exists(const wxString
& dir
)
75 // ----------------------------------------------------------------------------
76 // wxDir construction/destruction
77 // ----------------------------------------------------------------------------
79 wxDir::wxDir(const wxString
& dirname
)
83 bool wxDir::Open(const wxString
& dirname
)
88 bool wxDir::IsOpened() const
93 wxString
wxDir::GetName() const
104 // ----------------------------------------------------------------------------
106 // ----------------------------------------------------------------------------
108 bool wxDir::GetFirst(wxString
*filename
,
109 const wxString
& filespec
,
115 bool wxDir::GetNext(wxString
*filename
) const