00001
00002
00003 #ifndef _HILDON_LIBSMM_PROGRAM_H
00004 #define _HILDON_LIBSMM_PROGRAM_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <hildon-libsmm/window.h>
00031
00032
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _HildonProgram HildonProgram;
00035 typedef struct _HildonProgramClass HildonProgramClass;
00036 #endif
00037
00038
00039 namespace Hildon
00040 { class Program_Class; }
00041 namespace Hildon
00042 {
00043
00049 class Program : public Glib::Object
00050 {
00051
00052 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00053
00054 public:
00055 typedef Program CppObjectType;
00056 typedef Program_Class CppClassType;
00057 typedef HildonProgram BaseObjectType;
00058 typedef HildonProgramClass BaseClassType;
00059
00060 private: friend class Program_Class;
00061 static CppClassType program_class_;
00062
00063 private:
00064
00065 Program(const Program&);
00066 Program& operator=(const Program&);
00067
00068 protected:
00069 explicit Program(const Glib::ConstructParams& construct_params);
00070 explicit Program(HildonProgram* castitem);
00071
00072 #endif
00073
00074 public:
00075 virtual ~Program();
00076
00077 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00078 static GType get_type() G_GNUC_CONST;
00079 static GType get_base_type() G_GNUC_CONST;
00080 #endif
00081
00083 HildonProgram* gobj() { return reinterpret_cast<HildonProgram*>(gobject_); }
00084
00086 const HildonProgram* gobj() const { return reinterpret_cast<HildonProgram*>(gobject_); }
00087
00089 HildonProgram* gobj_copy();
00090
00091 private:
00092
00093
00094 public:
00095 Program();
00096
00097
00110 void add_window(Window& window);
00111
00117 void remove_window(Window& window);
00118
00119
00124 void set_can_hibernate(bool killable=true);
00125
00130 bool get_can_hibernate();
00131
00132
00139 void set_common_menu(Gtk::Menu& menu);
00140
00145 Gtk::Menu& get_common_menu();
00146
00147
00155 void set_common_toolbar(Gtk::Toolbar& toolbar);
00156
00161 Gtk::Toolbar& get_common_toolbar();
00162
00163
00168 bool get_is_topmost();
00169
00170
00171 public:
00172
00173 public:
00174
00175 #ifdef GLIBMM_VFUNCS_ENABLED
00176 #endif //GLIBMM_VFUNCS_ENABLED
00177
00178 protected:
00179
00180 #ifdef GLIBMM_VFUNCS_ENABLED
00181 #endif //GLIBMM_VFUNCS_ENABLED
00182
00183
00184 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00185 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00186
00187
00188 };
00189
00190 }
00191
00192
00193 namespace Glib
00194 {
00200 Glib::RefPtr<Hildon::Program> wrap(HildonProgram* object, bool take_copy = false);
00201 }
00202
00203
00204 #endif
00205