* src/dbus_api/modest-dbus-callbacks.c:
(modest_osso_cb_hw_state_handler):
* src/dbus_api/modest-dbus-callbacks.h:
* src/maemo/modest-platform.c: (modest_platform_init):
Registered (empty) callbacks for the osso hardware state D-Bus signals,
in case this has some effect on the ability for Maemo to ping the
application.
pmo-trunk-r1734
2007-05-02 Murray Cumming <murrayc@murrayc.com>
2007-05-02 Murray Cumming <murrayc@murrayc.com>
+ * src/dbus_api/modest-dbus-callbacks.c:
+ (modest_osso_cb_hw_state_handler):
+ * src/dbus_api/modest-dbus-callbacks.h:
+ * src/maemo/modest-platform.c: (modest_platform_init):
+ Registered (empty) callbacks for the osso hardware state D-Bus signals,
+ in case this has some effect on the ability for Maemo to ping the
+ application.
+
+2007-05-02 Murray Cumming <murrayc@murrayc.com>
+
* src/modest-text-utils.c: (modest_text_utils_validate_recipient):
Comment out an if() that checks a gchar for < 0, causing a build-breaking
warning. It is probably a logic error, but I need to fix the build.
* src/modest-text-utils.c: (modest_text_utils_validate_recipient):
Comment out an if() that checks a gchar for < 0, causing a build-breaking
warning. It is probably a logic error, but I need to fix the build.
else
return OSSO_ERROR;
}
else
return OSSO_ERROR;
}
+
+void
+modest_osso_cb_hw_state_handler(osso_hw_state_t *state, gpointer data)
+{
+ printf("%s()\n", __PRETTY_FUNCTION__);
+
+ if(state->system_inactivity_ind)
+ {
+ }
+ else if(state->save_unsaved_data_ind)
+ {
+ }
+ else
+ {
+
+ }
+
+ printf("debug: %s(): return\n", __PRETTY_FUNCTION__);
+}
GArray * arguments, gpointer data,
osso_rpc_t * retval);
GArray * arguments, gpointer data,
osso_rpc_t * retval);
+void modest_osso_cb_hw_state_handler(osso_hw_state_t *state, gpointer data);
+
#endif /* __MODEST_DBUS_CALLBACKS_H__ */
#endif /* __MODEST_DBUS_CALLBACKS_H__ */
+ /* Register hardware event dbus callback: */
+ osso_hw_set_event_cb(osso_context, NULL, modest_osso_cb_hw_state_handler, NULL);
+
/* Add handler for Exit D-BUS messages.
* Not used because osso_application_set_exit_cb() is deprecated and obsolete:
result = osso_application_set_exit_cb(osso_context,
/* Add handler for Exit D-BUS messages.
* Not used because osso_application_set_exit_cb() is deprecated and obsolete:
result = osso_application_set_exit_cb(osso_context,