X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6929fe3af8c307d7ff46e73a88edbedc39731d09..628f87da565360ec2fce102c9b46341cf42cd3d3:/src/palmos/utils.cpp?ds=inline diff --git a/src/palmos/utils.cpp b/src/palmos/utils.cpp index 5a1398744b..c8d8d84908 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 @@ -88,7 +90,7 @@ bool wxGetUserName(wxChar *buf, int maxSize) return false; } - wxStrncpy (buf, wxConvertMB2WX(id), maxSize - 1); + wxStrncpy (buf, wxSafeConvertMB2WX(id), maxSize - 1); // free the buffer MemPtrUnlock(id); @@ -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; } @@ -130,6 +127,11 @@ bool wxSetEnv(const wxString& var, const wxChar *value) return false; } +bool wxUnsetEnv(const wxString& var) +{ + return false; +} + // ---------------------------------------------------------------------------- // process management // ---------------------------------------------------------------------------- @@ -151,6 +153,10 @@ bool wxShutdown(wxShutdownFlags wFlags) return false; } +// ---------------------------------------------------------------------------- +// power management +// ---------------------------------------------------------------------------- + wxPowerType wxGetPowerType() { return wxPOWER_BATTERY; @@ -196,6 +202,11 @@ void wxBell() SndPlaySystemSound(sndWarning); } +bool wxIsPlatform64Bit() +{ + return false; +} + wxString wxGetOsDescription() { wxString strOS = _T("PalmOS"); @@ -214,11 +225,11 @@ wxString wxGetOsDescription() return strOS; } -wxToolkitInfo& wxAppTraits::GetToolkitInfo() +wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin) { - static wxToolkitInfo info; - info.name = _T("wxBase"); - return info; + // TODO + + return wxOS_UNKNOWN; } // ---------------------------------------------------------------------------- @@ -273,4 +284,3 @@ extern long wxCharsetToCodepage(const wxChar *name) } #endif // wxUSE_FONTMAP/!wxUSE_FONTMAP -