X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6929fe3af8c307d7ff46e73a88edbedc39731d09..1fe0a566bbf649efe7cadc21e8ded82458c8bdc6:/src/palmos/utils.cpp?ds=sidebyside diff --git a/src/palmos/utils.cpp b/src/palmos/utils.cpp index 5a1398744b..788f6e6b50 100644 --- a/src/palmos/utils.cpp +++ b/src/palmos/utils.cpp @@ -29,16 +29,18 @@ #include "wx/app.h" #include "wx/intl.h" #include "wx/log.h" + #include "wx/timer.h" #endif //WX_PRECOMP #include "wx/apptrait.h" #include "wx/dynload.h" #include "wx/confbase.h" -#include "wx/timer.h" +#include "wx/power.h" #include #include #include +#include // ============================================================================ // implementation @@ -106,12 +108,7 @@ wxChar *wxGetUserHome(const wxString& WXUNUSED(user)) return NULL; } -bool wxDirExists(const wxString& dir) -{ - return false; -} - -bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree) +bool wxGetDiskSpace(const wxString& path, wxDiskspaceSize_t *pTotal, wxDiskspaceSize_t *pFree) { return false; } @@ -151,6 +148,10 @@ bool wxShutdown(wxShutdownFlags wFlags) return false; } +// ---------------------------------------------------------------------------- +// power management +// ---------------------------------------------------------------------------- + wxPowerType wxGetPowerType() { return wxPOWER_BATTERY; @@ -217,6 +218,7 @@ wxString wxGetOsDescription() wxToolkitInfo& wxAppTraits::GetToolkitInfo() { static wxToolkitInfo info; + info.os = wxPALMOS; info.name = _T("wxBase"); return info; } @@ -273,4 +275,3 @@ extern long wxCharsetToCodepage(const wxChar *name) } #endif // wxUSE_FONTMAP/!wxUSE_FONTMAP -