]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/utils.cpp
replaced C++ comment with a C one
[wxWidgets.git] / src / palmos / utils.cpp
index 02d4de03246a0a320bfc8b0cd4e3bdfd7375ee6c..5a1398744ba9487181ad443adf69d6b53dfa0974 100644 (file)
@@ -1,11 +1,11 @@
 /////////////////////////////////////////////////////////////////////////////
-// 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
 /////////////////////////////////////////////////////////////////////////////
 
@@ -151,6 +151,17 @@ bool wxShutdown(wxShutdownFlags wFlags)
     return false;
 }
 
+wxPowerType wxGetPowerType()
+{
+    return wxPOWER_BATTERY;
+}
+
+wxBatteryState wxGetBatteryState()
+{
+    // TODO
+    return wxBATTERY_UNKNOWN_STATE;
+}
+
 // ----------------------------------------------------------------------------
 // misc
 // ----------------------------------------------------------------------------
@@ -193,6 +204,7 @@ wxString wxGetOsDescription()
     if(version)
     {
         wxString str = wxString::FromAscii(version);
+        MemPtrFree(version);
         if(!str.empty())
         {
             strOS << _(" ") << str;