• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_UnixHildonApp.h

Go to the documentation of this file.
00001 /* AbiSource Application Framework
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  * Copyright (C) 2005 INdT
00004  * Author: Renato Araujo <renato.filho@indt.org.br>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
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 ** Only one of these is created by the application.
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 /* XAP_UNIXHILDONAPP_H */

Generated on Sun Nov 29 2015 for AbiWord by  doxygen 1.7.1