Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

program.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEMM_PROGRAM_H
00004 #define _LIBGNOMEMM_PROGRAM_H
00005 
00006 #include <glibmm.h>
00007 
00008 /* $Id: program.hg,v 1.7 2002/11/28 12:10:06 murrayc Exp $ */
00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00010 
00011 /* program.h
00012  * 
00013  * Copyright 2001      Free Software Foundation
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00028  */
00029 
00030 #include <glibmm/object.h>
00031 #include <glibmm/slisthandle.h>
00032 //#include <libgnome/libgnome.h>
00033 
00034 
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _GnomeProgram GnomeProgram;
00037 typedef struct _GnomeProgramClass GnomeProgramClass;
00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00039 
00040 
00041 namespace Gnome
00042 { class Program_Class; } // namespace Gnome
00043 namespace Gnome
00044 {
00045 
00046 
00052 enum FileDomain
00053 {
00054   FILE_DOMAIN_UNKNOWN,
00055   FILE_DOMAIN_LIBDIR,
00056   FILE_DOMAIN_DATADIR,
00057   FILE_DOMAIN_SOUND,
00058   FILE_DOMAIN_PIXMAP,
00059   FILE_DOMAIN_CONFIG,
00060   FILE_DOMAIN_HELP,
00061   FILE_DOMAIN_APP_LIBDIR,
00062   FILE_DOMAIN_APP_DATADIR,
00063   FILE_DOMAIN_APP_SOUND,
00064   FILE_DOMAIN_APP_PIXMAP,
00065   FILE_DOMAIN_APP_CONFIG,
00066   FILE_DOMAIN_APP_HELP
00067 };
00068 
00069 } // namespace Gnome
00070 
00071 
00072 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00073 namespace Glib
00074 {
00075 
00076 template <>
00077 class Value<Gnome::FileDomain> : public Glib::Value_Enum<Gnome::FileDomain>
00078 {
00079 public:
00080   static GType value_type() G_GNUC_CONST;
00081 };
00082 
00083 } // namespace Glib
00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00085 
00086 
00087 namespace Gnome
00088 {
00089 
00090 
00095 class Program : public Glib::Object
00096 {
00097   
00098 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00099 
00100 public:
00101   typedef Program CppObjectType;
00102   typedef Program_Class CppClassType;
00103   typedef GnomeProgram BaseObjectType;
00104   typedef GnomeProgramClass BaseClassType;
00105 
00106 private:  friend class Program_Class;
00107   static CppClassType program_class_;
00108 
00109 private:
00110   // noncopyable
00111   Program(const Program&);
00112   Program& operator=(const Program&);
00113 
00114 protected:
00115   explicit Program(const Glib::ConstructParams& construct_params);
00116   explicit Program(GnomeProgram* castitem);
00117 
00118 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00119 
00120 public:
00121   virtual ~Program();
00122 
00123 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00124   static GType get_type()      G_GNUC_CONST;
00125   static GType get_base_type() G_GNUC_CONST;
00126 #endif
00127 
00129   GnomeProgram*       gobj()       { return reinterpret_cast<GnomeProgram*>(gobject_); }
00130 
00132   const GnomeProgram* gobj() const { return reinterpret_cast<GnomeProgram*>(gobject_); }
00133 
00135   GnomeProgram* gobj_copy();
00136 
00137 private:
00138 
00139 public:
00140 
00141   
00142   static Glib::RefPtr<Program> get();
00143 
00144   
00145   Glib::ustring get_human_readable_name() const;
00146   
00147   Glib::ustring get_app_id() const;
00148   
00149   Glib::ustring get_app_version() const;
00150 
00151   Glib::ustring locate_file(FileDomain domain, const Glib::ustring& file_name, bool only_if_exists = true);
00152   Glib::SListHandle<Glib::ustring> locate_file_multiple(FileDomain domain, const Glib::ustring& file_name, bool only_if_exists = true);
00153   
00154 
00155 public:
00156 
00157 public:
00158   //C++ methods used to invoke GTK+ virtual functions:
00159 
00160 protected:
00161   //GTK+ Virtual Functions (override these to change behaviour):
00162 
00163   //Default Signal Handlers::
00164 
00165 
00166 };
00167 
00168 } /* namespace Gnome */
00169 
00170 
00171 namespace Glib
00172 {
00178   Glib::RefPtr<Gnome::Program> wrap(GnomeProgram* object, bool take_copy = false);
00179 }
00180 
00181 
00182 #endif /* _LIBGNOMEMM_PROGRAM_H */
00183 

Generated on Mon Mar 7 02:18:10 2005 for libgnomemm by  doxygen 1.4.0