Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef XAP_UNIXHILDONAPP_H
00023 #define XAP_UNIXHILDONAPP_H
00024
00025 #include <unistd.h>
00026 #include <sys/stat.h>
00027 #include "xap_UnixApp.h"
00028
00029 #include <gtk/gtk.h>
00030 #include <gtk/gtkwidget.h>
00031 #include <libosso.h>
00032
00033
00034
00035
00036
00037
00038
00039 class ABI_EXPORT XAP_UnixHildonApp : public XAP_UnixApp
00040 {
00041 public:
00042 XAP_UnixHildonApp(const char* szAppName);
00043 virtual ~XAP_UnixHildonApp();
00044
00045 virtual bool initialize(const char * szKeyBindingsKey, const char * szKeyBindingsDefaultValue);
00046
00047 GObject * getHildonProgram() const;
00048
00049 void processStartupQueue();
00050 virtual void clearStateInfo();
00051
00052 void setHibernate(bool b){m_bHibernate = b;}
00053 bool getHibernate(void)const {return m_bHibernate;}
00054 bool isTopmost(void)const;
00055
00056 protected:
00057 virtual bool _saveState(XAP_StateData & sd);
00058 virtual bool _retrieveState(XAP_StateData & sd);
00059
00060 private:
00061 osso_context_t * m_pOsso;
00062 mutable GObject * m_pHildonProgram;
00063 bool m_bHibernate;
00064
00065
00066 public:
00067 static bool s_bInitDone;
00068 static bool s_bRestoreNeeded;
00069
00070 };
00071
00072 #endif