Debian Codegraph @

src/af/xap/gtk/hildon/xap_UnixHildonApp.h

raw
1 /* AbiSource Application Framework
2 * Copyright (C) 1998 AbiSource, Inc.
3 * Copyright (C) 2005 INdT
4 * Author: Renato Araujo <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 * 02110-1301 USA.
20 */
21
22 #ifndef XAP_UNIXHILDONAPP_H
23 #define XAP_UNIXHILDONAPP_H
24
25 #include <unistd.h>
26 #include <sys/stat.h>
27 #include "xap_UnixApp.h"
28
29 #include <gtk/gtk.h>
30 #include <gtk/gtkwidget.h>
31 #include <libosso.h>
32
33 /*****************************************************************
34 ******************************************************************
35 ** Only one of these is created by the application.
36 ******************************************************************
37 *****************************************************************/
38
39 class ABI_EXPORT XAP_UnixHildonApp : public XAP_UnixApp
40 {
41 public:
42 XAP_UnixHildonApp(const char* szAppName);
43 virtual ~XAP_UnixHildonApp();
44
45 virtual bool initialize(const char * szKeyBindingsKey, const char * szKeyBindingsDefaultValue);
46
47 GObject * getHildonProgram() const;
48
49 void processStartupQueue();
50 virtual void clearStateInfo();
51
52 void setHibernate(bool b){m_bHibernate = b;}
53 bool getHibernate(void)const {return m_bHibernate;}
54 bool isTopmost(void)const;
55
56 protected:
57 virtual bool _saveState(XAP_StateData & sd);
58 virtual bool _retrieveState(XAP_StateData & sd);
59
60 private:
61 osso_context_t * m_pOsso;
62 mutable GObject * m_pHildonProgram;
63 bool m_bHibernate;
64
65
66 public:
67 static bool s_bInitDone;
68 static bool s_bRestoreNeeded;
69
70 };
71
72 #endif /* XAP_UNIXHILDONAPP_H */