00001 
00002 
00003 #ifndef _LIBGNOMEMM_MAIN_H
00004 #define _LIBGNOMEMM_MAIN_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 
00031 
00032 
00033 
00034 #include <libgnomemm/moduleinfo.h>
00035 #include <libgnomemm/program.h>
00036 #include <gtkmm/main.h>
00037 
00038 
00039 
00040 namespace Gnome
00041 {
00042 
00043 class Main : public Gtk::Main
00044 {
00045 public:
00046 
00062   Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
00063        const ModuleInfo& module_info,
00064        int argc, char** argv);
00065 
00087   Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
00088        const ModuleInfo& module_info,
00089        int argc, char **argv,
00090        const struct poptOption *options, int flags, poptContext* return_ctx);
00091  
00109   Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
00110        const ModuleInfo& module_info,
00111        int argc, char **argv,
00112        Glib::OptionContext& options);
00113  
00114   ~Main();
00115   
00116 protected:
00117   Main();
00118   void set_ids(const Glib::ustring& app_id,const Glib::ustring& app_version);
00119 
00120   static char* app_id_;
00121   static char* app_version_;
00122 
00123   Glib::RefPtr<Program> m_refProgram;
00124 };
00125 
00126 } 
00127 
00128 
00129 #endif 
00130