<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>libgnomemm: moduleinfo.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.3 --> <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">Compound List</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">Compound Members</a></div> <h1>moduleinfo.h</h1><a href="moduleinfo_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> 00002 <span class="comment">// Generated by gtkmmproc -- DO NOT MODIFY!</span> 00003 <span class="preprocessor">#ifndef _LIBGNOMEMM_MODULEINFO_H</span> 00004 <span class="preprocessor"></span><span class="preprocessor">#define _LIBGNOMEMM_MODULEINFO_H</span> 00005 <span class="preprocessor"></span> 00006 <span class="preprocessor">#include <glibmm.h></span> 00007 00008 <span class="comment">/* $Id: moduleinfo.hg,v 1.5 2002/04/01 16:54:24 murrayc Exp $ */</span> 00009 00010 <span class="comment">/* moduleinfo.h</span> 00011 <span class="comment"> *</span> 00012 <span class="comment"> * Copyright 2001 Free Software Foundation</span> 00013 <span class="comment"> *</span> 00014 <span class="comment"> * This library is free software; you can redistribute it and/or</span> 00015 <span class="comment"> * modify it under the terms of the GNU Library General Public</span> 00016 <span class="comment"> * License as published by the Free Software Foundation; either</span> 00017 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span> 00018 <span class="comment"> *</span> 00019 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> 00020 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> 00021 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> 00022 <span class="comment"> * Library General Public License for more details.</span> 00023 <span class="comment"> *</span> 00024 <span class="comment"> * You should have received a copy of the GNU Library General Public</span> 00025 <span class="comment"> * License along with this library; if not, write to the Free</span> 00026 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> 00027 <span class="comment"> */</span> 00028 00029 <span class="preprocessor">#include <glibmm/containers.h></span> 00030 <span class="preprocessor">#include <libgnome/gnome-program.h></span> 00031 00032 00033 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> 00034 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <span class="keyword">typedef</span> <span class="keyword">struct </span>_GnomeModuleInfo GnomeModuleInfo; } 00035 <span class="preprocessor">#endif</span> 00036 <span class="preprocessor"></span> 00037 <span class="keyword">namespace </span>Gnome 00038 { 00039 00040 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> 00041 <span class="preprocessor"></span><span class="comment">//The C copy and free functions are hidden, but they are registered:</span> 00042 GnomeModuleInfo* gnomemm_module_info_copy(<span class="keyword">const</span> GnomeModuleInfo* src); 00043 <span class="keywordtype">void</span> gnomemm_module_info_free(GnomeModuleInfo* src); 00044 <span class="preprocessor">#endif //DOXYGEN_SHOULD_SKIP_THIS</span> 00045 <span class="preprocessor"></span> <a name="l00046"></a><a class="code" href="classGnome_1_1ModuleInfo.html">00046</a> <span class="keyword">class </span><a class="code" href="classGnome_1_1ModuleInfo.html">ModuleInfo</a> 00047 { 00048 <span class="keyword">public</span>: 00049 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> 00050 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classGnome_1_1ModuleInfo.html">ModuleInfo</a> CppObjectType; 00051 <span class="keyword">typedef</span> GnomeModuleInfo BaseObjectType; 00052 00053 <span class="keyword">static</span> GType get_type() G_GNUC_CONST; 00054 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span> 00055 00056 00057 <span class="keyword">explicit</span> <a class="code" href="classGnome_1_1ModuleInfo.html#a8">ModuleInfo</a>(GnomeModuleInfo* gobject, <span class="keywordtype">bool</span> make_a_copy = <span class="keyword">true</span>); 00058 00059 <a class="code" href="classGnome_1_1ModuleInfo.html#a8">ModuleInfo</a>(<span class="keyword">const</span> <a class="code" href="classGnome_1_1ModuleInfo.html">ModuleInfo</a>& other); 00060 <a class="code" href="classGnome_1_1ModuleInfo.html">ModuleInfo</a>& <a class="code" href="classGnome_1_1ModuleInfo.html#a2">operator=</a>(<span class="keyword">const</span> <a class="code" href="classGnome_1_1ModuleInfo.html">ModuleInfo</a>& other); 00061 00062 <a class="code" href="classGnome_1_1ModuleInfo.html#a3">~ModuleInfo</a>(); 00063 00064 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1ModuleInfo.html#a4">swap</a>(<a class="code" href="classGnome_1_1ModuleInfo.html">ModuleInfo</a>& other); 00065 <a name="l00066"></a><a class="code" href="classGnome_1_1ModuleInfo.html#a5">00066</a> GnomeModuleInfo* <a class="code" href="classGnome_1_1ModuleInfo.html#a5">gobj</a>() { <span class="keywordflow">return</span> <a class="code" href="classGnome_1_1ModuleInfo.html#p0">gobject_</a>; } <a name="l00067"></a><a class="code" href="classGnome_1_1ModuleInfo.html#a6">00067</a> <span class="keyword">const</span> GnomeModuleInfo* <a class="code" href="classGnome_1_1ModuleInfo.html#a5">gobj</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classGnome_1_1ModuleInfo.html#p0">gobject_</a>; } 00068 00069 <span class="comment">// The caller is responsible for freeing it. Use when directly setting fields in structs.</span> 00070 GnomeModuleInfo* <a class="code" href="classGnome_1_1ModuleInfo.html#a7">gobj_copy</a>() <span class="keyword">const</span>; 00071 00072 <span class="keyword">protected</span>: <a name="l00073"></a><a class="code" href="classGnome_1_1ModuleInfo.html#p0">00073</a> GnomeModuleInfo* <a class="code" href="classGnome_1_1ModuleInfo.html#p0">gobject_</a>; 00074 00075 <span class="keyword">private</span>: 00076 00077 <span class="keyword">public</span>: 00078 00079 00080 <a class="code" href="classGnome_1_1ModuleInfo.html#a8">ModuleInfo</a>(); 00081 00083 <a class="code" href="classGnome_1_1ModuleInfo.html#a8">ModuleInfo</a>(<span class="keyword">const</span> gchar* name, <span class="keyword">const</span> gchar* version, <span class="keyword">const</span> gchar* description); 00084 00085 00086 Glib::ustring <a class="code" href="classGnome_1_1ModuleInfo.html#a10">get_name</a>() <span class="keyword">const</span>; 00087 Glib::ustring <a class="code" href="classGnome_1_1ModuleInfo.html#a11">get_version</a>() <span class="keyword">const</span>; 00088 Glib::ustring <a class="code" href="classGnome_1_1ModuleInfo.html#a12">get_description</a>() <span class="keyword">const</span>; 00089 00090 <span class="comment">//requirements array must be statically allocated.</span> 00091 <span class="comment">//last element has NULL version</span> 00092 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1ModuleInfo.html#a13">set_requirements</a>(GnomeModuleRequirement* requirements); 00093 00094 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1ModuleInfo.html#a14">set_post_args_parse</a>(GnomeModuleHook function); 00095 00096 <span class="comment">//</span> 00097 <span class="comment">// GnomeModuleHook instance_init;</span> 00098 <span class="comment">// GnomeModuleHook pre_args_parse, post_args_parse;</span> 00099 <span class="comment">//</span> 00100 <span class="comment">// struct poptOption *options;</span> 00101 <span class="comment">//</span> 00102 <span class="comment">// GnomeModuleInitHook init_pass;</span> 00103 <span class="comment">//</span> 00104 <span class="comment">// GnomeModuleClassInitHook class_init;</span> 00105 00106 00107 }; 00108 00109 } <span class="comment">//namespace Gnome</span> 00110 00111 00112 <span class="keyword">namespace </span>Gnome 00113 { 00114 <a name="l00116"></a><a class="code" href="classGnome_1_1ModuleInfo.html#m0">00116</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> swap(<a class="code" href="classGnome_1_1ModuleInfo.html">ModuleInfo</a>& lhs, <a class="code" href="classGnome_1_1ModuleInfo.html">ModuleInfo</a>& rhs) 00117 { lhs.<a class="code" href="classGnome_1_1ModuleInfo.html#a4">swap</a>(rhs); } 00118 00119 } <span class="comment">// namespace Gnome</span> 00120 <a name="l00121"></a><a class="code" href="namespaceGlib.html">00121</a> <span class="keyword">namespace </span>Glib 00122 { 00123 00125 <a class="code" href="classGnome_1_1ModuleInfo.html">Gnome::ModuleInfo</a> wrap(GnomeModuleInfo* object, <span class="keywordtype">bool</span> take_copy = <span class="keyword">false</span>); 00126 00127 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> 00128 <span class="preprocessor"></span><span class="keyword">template</span> <> 00129 <span class="keyword">class </span>Value<Gnome::ModuleInfo> : <span class="keyword">public</span> Glib::Value_Boxed<Gnome::ModuleInfo> 00130 {}; 00131 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span> 00132 00133 } <span class="comment">// namespace Glib</span> 00134 00135 <span class="preprocessor">#endif </span><span class="comment">/* _LIBGNOMEMM_MODULEINFO_H */</span> 00136 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Aug 14 04:17:46 2003 for libgnomemm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> </body> </html>