Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes

XAP_UnixHildonApp Class Reference

#include <xap_UnixHildonApp.h>

Inheritance diagram for XAP_UnixHildonApp:
XAP_UnixApp XAP_App

List of all members.

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

Constructor & Destructor Documentation

XAP_UnixHildonApp::XAP_UnixHildonApp ( const char *  szAppName  ) 
XAP_UnixHildonApp::~XAP_UnixHildonApp (  )  [virtual]

References m_pOsso, and osso_rpc_event_cb().


Member Function Documentation

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]

Member Data Documentation

GObject* XAP_UnixHildonApp::m_pHildonProgram [mutable, private]

Referenced by getHildonProgram(), and isTopmost().


The documentation for this class was generated from the following files: