[pkg-fso-commits] [SCM] freesmartphone.org demo GUI branch, master, updated. milestone4-28-g19ac3e4
Jan Luebbe
jluebbe at debian.org
Mon Feb 2 18:44:24 UTC 2009
The following commit has been merged in the master branch:
commit 15a1c106b95ecf2b5f21ff5e742b0425bff641fe
Author: Peter Strapp <peter at strapp.co.uk>
Date: Thu Jan 22 14:58:51 2009 +0100
show error/warning when SIM is full
diff --git a/src/zhone b/src/zhone
index 8bd1710..185cb0a 100755
--- a/src/zhone
+++ b/src/zhone
@@ -384,7 +384,9 @@ class pyphone_sms(edje_group):
self.busy = True
def cbStoreError( self, e ):
- logger.warning( "error while storing message" )
+ logger.warning( "error while storing message - %s" % e.get_dbus_name() )
+ if e.get_dbus_name() == "org.freesmartphone.GSM.SIM.MemoryFull":
+ self.main.groups["alert"].activate( "<title>Failed to send message</title>SIM Memory Full", [("OK")] )
def cbSend1( self, selected, cb_data ):
self.main.groups["text_edit"].setup(
@@ -496,6 +498,10 @@ class pyphone_sms(edje_group):
textblock_escape( message[3] ).replace( '\n', '<br>' )
)
)
+ if dbus_object.gsm_device_obj:
+ messagebookInfo = dbus_object.gsm_sim_iface.GetMessagebookInfo()
+ if messagebookInfo["used"] == messagebookInfo["last"]:
+ self.main.groups["alert"].activate( "<title>Warning</title>SIM Memory Full", [("OK")] )
def cbMessagebookError( self, e ):
logger.warning( "error while retrieving messagebook" )
--
freesmartphone.org demo GUI
More information about the pkg-fso-commits
mailing list