00001
00002
00003 #ifndef _LIBGNOMEMM_MAIN_H
00004 #define _LIBGNOMEMM_MAIN_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include <libgnomemm/moduleinfo.h>
00034 #include <libgnomemm/program.h>
00035 #include <gtkmm/main.h>
00036
00037
00038
00039 namespace Gnome
00040 {
00041
00042 class Main : public Gtk::Main
00043 {
00044 public:
00045
00061 Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
00062 const ModuleInfo& module_info,
00063 int argc, char** argv);
00064
00084 Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
00085 const ModuleInfo& module_info,
00086 int argc, char **argv,
00087 const struct poptOption *options, int flags, poptContext *return_ctx);
00088
00089 ~Main();
00090
00091 protected:
00092 Main();
00093 void set_ids(const Glib::ustring& app_id,const Glib::ustring& app_version);
00094
00095 static char* app_id_;
00096 static char* app_version_;
00097
00098 Glib::RefPtr<Program> m_refProgram;
00099 };
00100
00101 }
00102
00103
00104 #endif
00105