#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 <MemoryMgr.h>
#include <DLServer.h>
return false;
}
- wxStrncpy (buf, wxConvertMB2WX(id), maxSize - 1);
+ wxStrncpy (buf, wxSafeConvertMB2WX(id), maxSize - 1);
// free the buffer
MemPtrUnlock(id);
return NULL;
}
-wxChar *wxGetUserHome(const wxString& WXUNUSED(user))
+wxString wxGetUserHome(const wxString& WXUNUSED(user))
{
- return NULL;
+ return wxString();
}
bool wxGetDiskSpace(const wxString& path, wxDiskspaceSize_t *pTotal, wxDiskspaceSize_t *pFree)
return false;
}
+#if ! WXWIN_COMPATIBILITY_2_8
bool wxSetEnv(const wxString& var, const wxChar *value)
{
return false;
}
+#endif // ! WXWIN_COMPATIBILITY_2_8
+
+bool wxUnsetEnv(const wxString& var)
+{
+ return false;
+}
// ----------------------------------------------------------------------------
// process management
return false;
}
+// ----------------------------------------------------------------------------
+// power management
+// ----------------------------------------------------------------------------
+
wxPowerType wxGetPowerType()
{
return wxPOWER_BATTERY;
SndPlaySystemSound(sndWarning);
}
+bool wxIsPlatform64Bit()
+{
+ return false;
+}
+
wxString wxGetOsDescription()
{
wxString strOS = _T("PalmOS");
return strOS;
}
-wxToolkitInfo& wxAppTraits::GetToolkitInfo()
+wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin)
{
- static wxToolkitInfo info;
- info.os = wxPALMOS;
- info.name = _T("wxBase");
- return info;
+ // TODO
+
+ return wxOS_UNKNOWN;
}
// ----------------------------------------------------------------------------
}
#endif // wxUSE_FONTMAP/!wxUSE_FONTMAP
-