projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Send size events from top level windows in idle time,
[wxWidgets.git]
/
include
/
wx
/
dir.h
diff --git
a/include/wx/dir.h
b/include/wx/dir.h
index de2563540be0218fbbc8a55f12c91d32a8830bed..9c652c91ac3f1df9fe62a5c412a113bccec48a36 100644
(file)
--- a/
include/wx/dir.h
+++ b/
include/wx/dir.h
@@
-67,6
+67,8
@@
public:
// wxDir: portable equivalent of {open/read/close}dir functions
// ----------------------------------------------------------------------------
// wxDir: portable equivalent of {open/read/close}dir functions
// ----------------------------------------------------------------------------
+class WXDLLEXPORT wxDirData;
+
class WXDLLEXPORT wxDir
{
public:
class WXDLLEXPORT wxDir
{
public:
@@
-103,10
+105,15
@@
public:
const wxString& filespec = wxEmptyString,
int flags = wxDIR_DEFAULT) const;
const wxString& filespec = wxEmptyString,
int flags = wxDIR_DEFAULT) const;
- // get next file in the enumeration started with either GetFirst() or
- // GetFirstNormal()
+ // get next file in the enumeration started with GetFirst()
bool GetNext(wxString *filename) const;
bool GetNext(wxString *filename) const;
+ // return true if this directory has any files in it
+ bool HasFiles(const wxString& spec = wxEmptyString);
+
+ // return true if this directory has any subdirectories
+ bool HasSubDirs(const wxString& spec = wxEmptyString);
+
// enumerate all files in this directory and its subdirectories
//
// return the number of files found
// enumerate all files in this directory and its subdirectories
//
// return the number of files found