/////////////////////////////////////////////////////////////////////////////
-// Name: palmos/utils.cpp
+// Name: src/palmos/utils.cpp
// Purpose: Various utilities
-// Author: William Osborne
-// Modified by:
+// Author: William Osborne - minimal working wxPalmOS port
+// Modified by: Wlodzimierz ABX Skiba - real functionality
// Created: 10/13/04
-// RCS-ID: $Id:
-// Copyright: (c) William Osborne
+// RCS-ID: $Id$
+// Copyright: (c) William Osborne, Wlodzimierz Skiba
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
return NULL;
}
-bool wxDirExists(const wxString& dir)
-{
- return false;
-}
-
bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree)
{
return false;
return false;
}
+wxPowerType wxGetPowerType()
+{
+ return wxPOWER_BATTERY;
+}
+
+wxBatteryState wxGetBatteryState()
+{
+ // TODO
+ return wxBATTERY_UNKNOWN_STATE;
+}
+
// ----------------------------------------------------------------------------
// misc
// ----------------------------------------------------------------------------
wxString wxGetOsDescription()
{
- wxString str;
+ wxString strOS = _T("PalmOS");
- return str;
+ char *version = SysGetOSVersionString();
+ if(version)
+ {
+ wxString str = wxString::FromAscii(version);
+ MemPtrFree(version);
+ if(!str.empty())
+ {
+ strOS << _(" ") << str;
+ }
+ }
+
+ return strOS;
}
wxToolkitInfo& wxAppTraits::GetToolkitInfo()
#else // !wxUSE_FONTMAP
-#include "wx/palmos/registry.h"
-
// this should work if Internet Exploiter is installed
extern long wxCharsetToCodepage(const wxChar *name)
{