<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>libgnomemm: program.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.9.1 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <div class="nav"> <a class="el" href="dir_000000.html">libgnome</a> / <a class="el" href="dir_000001.html">libgnomemm</a></div> <h1>program.h</h1><a href="program_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">// -*- c++ -*-</span> 00002 <span class="comment">// Generated by gtkmmproc -- DO NOT MODIFY!</span> 00003 <span class="preprocessor">#ifndef _LIBGNOMEMM_PROGRAM_H</span> 00004 <span class="preprocessor"></span><span class="preprocessor">#define _LIBGNOMEMM_PROGRAM_H</span> 00005 <span class="preprocessor"></span> 00006 <span class="preprocessor">#include <glibmm.h></span> 00007 00008 <span class="comment">/* $Id: program.hg,v 1.7 2002/11/28 12:10:06 murrayc Exp $ */</span> 00009 <span class="comment">// -*- C++ -*- // this is for the .hg, I realize gensig puts one in</span> 00010 00011 <span class="comment">/* program.h</span> 00012 <span class="comment"> * </span> 00013 <span class="comment"> * Copyright 2001 Free Software Foundation</span> 00014 <span class="comment"> *</span> 00015 <span class="comment"> * This library is free software; you can redistribute it and/or</span> 00016 <span class="comment"> * modify it under the terms of the GNU Library General Public</span> 00017 <span class="comment"> * License as published by the Free Software Foundation; either</span> 00018 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span> 00019 <span class="comment"> *</span> 00020 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> 00021 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> 00022 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> 00023 <span class="comment"> * Library General Public License for more details.</span> 00024 <span class="comment"> *</span> 00025 <span class="comment"> * You should have received a copy of the GNU Library General Public</span> 00026 <span class="comment"> * License along with this library; if not, write to the Free</span> 00027 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> 00028 <span class="comment"> */</span> 00029 00030 <span class="preprocessor">#include <glibmm/object.h></span> 00031 <span class="preprocessor">#include <glibmm/slisthandle.h></span> 00032 <span class="comment">//#include <libgnome/libgnome.h></span> 00033 00034 00035 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> 00036 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_GnomeProgram GnomeProgram; 00037 <span class="keyword">typedef</span> <span class="keyword">struct </span>_GnomeProgramClass GnomeProgramClass; 00038 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span> 00039 00040 00041 <span class="keyword">namespace </span>Gnome 00042 { <span class="keyword">class </span>Program_Class; } <span class="comment">// namespace Gnome</span> 00043 <span class="keyword">namespace </span>Gnome 00044 { 00045 00046 <a name="l00052"></a><a class="code" href="group__libgnomemmEnums.html#ga0">00052</a> <span class="keyword">enum</span> 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 } <span class="comment">// namespace Gnome</span> 00070 00071 00072 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> 00073 <span class="preprocessor"></span><span class="keyword">namespace </span>Glib 00074 { 00075 00076 <span class="keyword">template</span> <> 00077 <span class="keyword">class </span>Value<Gnome::<a class="code" href="group__libgnomemmEnums.html#ga0">FileDomain</a>> : <span class="keyword">public</span> Glib::Value_Enum<Gnome::FileDomain> 00078 { 00079 <span class="keyword">public</span>: 00080 <span class="keyword">static</span> GType value_type() G_GNUC_CONST; 00081 }; 00082 00083 } <span class="comment">// namespace Glib</span> 00084 #endif <span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span> 00085 00086 00087 namespace Gnome 00088 { 00089 00090 <a name="l00095"></a><a class="code" href="classGnome_1_1Program.html">00095</a> <span class="keyword">class </span><a class="code" href="classGnome_1_1Program.html">Program</a> : <span class="keyword">public</span> Glib::<a class="code" href="classGlib_1_1Object.html">Object</a> 00096 { 00097 00098 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> 00099 <span class="preprocessor"></span> 00100 <span class="keyword">public</span>: 00101 <span class="keyword">typedef</span> <a class="code" href="classGnome_1_1Program.html">Program</a> CppObjectType; 00102 <span class="keyword">typedef</span> Program_Class CppClassType; 00103 <span class="keyword">typedef</span> GnomeProgram BaseObjectType; 00104 <span class="keyword">typedef</span> GnomeProgramClass BaseClassType; 00105 00106 <span class="keyword">private</span>: <span class="keyword">friend</span> <span class="keyword">class </span>Program_Class; 00107 <span class="keyword">static</span> CppClassType program_class_; 00108 00109 <span class="keyword">private</span>: 00110 <span class="comment">// noncopyable</span> 00111 <a class="code" href="classGnome_1_1Program.html">Program</a>(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Program.html">Program</a>&); 00112 <a class="code" href="classGnome_1_1Program.html">Program</a>& operator=(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Program.html">Program</a>&); 00113 00114 <span class="keyword">protected</span>: 00115 <span class="keyword">explicit</span> <a class="code" href="classGnome_1_1Program.html">Program</a>(<span class="keyword">const</span> Glib::ConstructParams& construct_params); 00116 <span class="keyword">explicit</span> <a class="code" href="classGnome_1_1Program.html">Program</a>(GnomeProgram* castitem); 00117 00118 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span> 00119 00120 <span class="keyword">public</span>: 00121 <span class="keyword">virtual</span> ~<a class="code" href="classGnome_1_1Program.html">Program</a>(); 00122 00123 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> 00124 <span class="preprocessor"></span> <span class="keyword">static</span> GType get_type() G_GNUC_CONST; 00125 <span class="keyword">static</span> GType get_base_type() G_GNUC_CONST; 00126 <span class="preprocessor">#endif</span> 00127 <span class="preprocessor"></span> <a name="l00129"></a><a class="code" href="classGnome_1_1Program.html#a1">00129</a> GnomeProgram* gobj() { <span class="keywordflow">return</span> reinterpret_cast<GnomeProgram*>(gobject_); } 00130 <a name="l00132"></a><a class="code" href="classGnome_1_1Program.html#a2">00132</a> <span class="keyword">const</span> GnomeProgram* gobj()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> reinterpret_cast<GnomeProgram*>(gobject_); } 00133 00135 GnomeProgram* gobj_copy(); 00136 00137 <span class="keyword">private</span>: 00138 00139 <span class="keyword">public</span>: 00140 00141 00142 <span class="keyword">static</span> Glib::RefPtr<Program> get(); 00143 00144 00145 Glib::ustring get_human_readable_name() <span class="keyword">const</span>; 00146 00147 Glib::ustring get_app_id() <span class="keyword">const</span>; 00148 00149 Glib::ustring get_app_version() <span class="keyword">const</span>; 00150 00151 Glib::ustring locate_file(FileDomain domain, <span class="keyword">const</span> Glib::ustring& file_name, <span class="keywordtype">bool</span> only_if_exists = <span class="keyword">true</span>); 00152 Glib::SListHandle<Glib::ustring> locate_file_multiple(FileDomain domain, <span class="keyword">const</span> Glib::ustring& file_name, <span class="keywordtype">bool</span> only_if_exists = <span class="keyword">true</span>); 00153 00154 00155 <span class="keyword">public</span>: 00156 00157 <span class="keyword">public</span>: 00158 <span class="comment">//C++ methods used to invoke GTK+ virtual functions:</span> 00159 00160 <span class="keyword">protected</span>: 00161 <span class="comment">//GTK+ Virtual Functions (override these to change behaviour):</span> 00162 00163 <span class="comment">//Default Signal Handlers::</span> 00164 00165 00166 }; 00167 00168 } <span class="comment">/* namespace Gnome */</span> 00169 00170 00171 <span class="keyword">namespace </span>Glib 00172 { 00178 Glib::RefPtr<Gnome::Program> wrap(GnomeProgram* object, <span class="keywordtype">bool</span> take_copy = <span class="keyword">false</span>); 00179 } 00180 00181 00182 <span class="preprocessor">#endif </span><span class="comment">/* _LIBGNOMEMM_PROGRAM_H */</span> 00183 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 7 11:08:42 2005 for libgnomemm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address> </body> </html>