#include <xap_UnixHildonApp.h>
Public Member Functions | |
XAP_UnixHildonApp (const char *szAppName) | |
virtual | ~XAP_UnixHildonApp () |
virtual bool | initialize (const char *szKeyBindingsKey, const char *szKeyBindingsDefaultValue) |
GObject * | getHildonProgram () const |
void | processStartupQueue () |
virtual void | clearStateInfo () |
void | setHibernate (bool b) |
bool | getHibernate (void) const |
bool | isTopmost (void) const |
Static Public Attributes | |
static bool | s_bInitDone = false |
static bool | s_bRestoreNeeded = false |
Protected Member Functions | |
virtual bool | _saveState (XAP_StateData &sd) |
virtual bool | _retrieveState (XAP_StateData &sd) |
Private Attributes | |
osso_context_t * | m_pOsso |
GObject * | m_pHildonProgram |
bool | m_bHibernate |
XAP_UnixHildonApp::XAP_UnixHildonApp | ( | const char * | szAppName | ) |
XAP_UnixHildonApp::~XAP_UnixHildonApp | ( | ) | [virtual] |
References m_pOsso, and osso_rpc_event_cb().
bool XAP_UnixHildonApp::_retrieveState | ( | XAP_StateData & | sd | ) | [protected, virtual] |
Reimplemented from XAP_App.
References m_pOsso, and UT_DEBUGMSG.
bool XAP_UnixHildonApp::_saveState | ( | XAP_StateData & | sd | ) | [protected, virtual] |
Reimplemented from XAP_App.
References m_pOsso, and UT_DEBUGMSG.
void XAP_UnixHildonApp::clearStateInfo | ( | ) | [virtual] |
Reimplemented from XAP_App.
References m_pOsso, and UT_ASSERT_HARMLESS.
bool XAP_UnixHildonApp::getHibernate | ( | void | ) | const [inline] |
Referenced by _topmost_lose().
GObject * XAP_UnixHildonApp::getHildonProgram | ( | ) | const |
This methods returns an instance of HildonProgram object; there is only one instance of it for the applicaiton, and it is created by this function when it is first called.
References m_pHildonProgram, s_topmost_changed_cb(), and UT_return_val_if_fail.
bool XAP_UnixHildonApp::initialize | ( | const char * | szKeyBindingsKey, | |
const char * | szKeyBindingsDefaultValue | |||
) | [virtual] |
Reimplemented from XAP_UnixApp.
References m_pOsso, osso_hw_event_cb(), osso_rpc_event_cb(), and UT_DEBUGMSG.
bool XAP_UnixHildonApp::isTopmost | ( | void | ) | const |
References m_pHildonProgram.
Referenced by osso_hw_event_cb().
void XAP_UnixHildonApp::processStartupQueue | ( | ) |
Some of our dbus messages arrive before the app initialization is completed (in particular the message that tells us to restore from hibernation), and these need to be queued up for later. This function gets called from ap_UnixApp::main() just before gtk_main().
References XAP_App::retrieveState(), s_bInitDone, s_bRestoreNeeded, setHibernate(), UT_DEBUGMSG, and UT_return_if_fail.
void XAP_UnixHildonApp::setHibernate | ( | bool | b | ) | [inline] |
Referenced by osso_hw_event_cb(), osso_rpc_event_cb(), and processStartupQueue().
bool XAP_UnixHildonApp::m_bHibernate [private] |
GObject* XAP_UnixHildonApp::m_pHildonProgram [mutable, private] |
Referenced by getHildonProgram(), and isTopmost().
osso_context_t* XAP_UnixHildonApp::m_pOsso [private] |
Referenced by _retrieveState(), _saveState(), clearStateInfo(), initialize(), and ~XAP_UnixHildonApp().
bool XAP_UnixHildonApp::s_bInitDone = false [static] |
Referenced by osso_hw_event_cb(), osso_rpc_event_cb(), and processStartupQueue().
bool XAP_UnixHildonApp::s_bRestoreNeeded = false [static] |
Referenced by osso_rpc_event_cb(), and processStartupQueue().