Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 0102b942207b9d1f394a9a1ca1a811b6 > files > 56

bakery-devel-2.6.3-4.fc14.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>bakery: AssociationBase.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>AssociationBase.h</h1><a href="AssociationBase_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright 2002 The Bakery team</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
<a name="l00006"></a>00006 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment"> * Library General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
<a name="l00015"></a>00015 <span class="comment"> * License along with this library; if not, write to the Free</span>
<a name="l00016"></a>00016 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef BAKERY_CONFIGURATION_ASSOCIATIONBASE_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define BAKERY_CONFIGURATION_ASSOCIATIONBASE_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;gconfmm.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="codeRef" doxygen="gtkmm_doxygen_tags:" href="widget_8h.html">gtkmm/widget.h</a>&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;<a class="code" href="sharedptr_8h.html">bakery/Utilities/sharedptr.h</a>&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>Bakery
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="keyword">namespace </span>Conf
<a name="l00030"></a>00030 {
<a name="l00031"></a>00031 
<a name="l00034"></a><a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html">00034</a> <span class="keyword">class </span><a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html" title="Provides behaviors that are common to all widget/key associations.">AssociationBase</a> : <span class="keyword">public</span> sigc::trackable
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036 <span class="keyword">public</span>:
<a name="l00037"></a><a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#98e41e816b18eb4ee2a9b7ba7697d9b9">00037</a>   <span class="keyword">typedef</span> <a class="code" href="classBakery_1_1sharedptr.html" title="A shared reference-counting smart-pointer.">sharedptr&lt;AssociationBase&gt;</a> <a class="code" href="classBakery_1_1sharedptr.html" title="A shared reference-counting smart-pointer.">AssociationPtr</a>;
<a name="l00038"></a><a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#33ac1a5d8ae2c88fc73d586ff1795ada">00038</a>   <span class="keyword">typedef</span> <a class="code" href="classBakery_1_1sharedptr.html" title="A shared reference-counting smart-pointer.">sharedptr&lt;const AssociationBase&gt;</a> <a class="code" href="classBakery_1_1sharedptr.html" title="A shared reference-counting smart-pointer.">AssociationConstPtr</a>;
<a name="l00039"></a>00039     
<a name="l00040"></a>00040   <span class="keywordtype">void</span> <span class="keyword">add</span>(<span class="keyword">const</span> <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1RefPtr.html">Glib::RefPtr&lt;Gnome::Conf::Client&gt;</a>&amp; conf_client);
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#ifdef GLIBMM_EXCEPTIONS_ENABLED</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>  <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#467b9042f35eaeadcbf3bf85e56cd025">load</a>();
<a name="l00044"></a>00044   <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#5a9e84b0bae9b59f3832715622b13131">save</a>();
<a name="l00045"></a>00045 <span class="preprocessor">#else</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>  <span class="comment">// TODO: Ignore errors in these functions?</span>
<a name="l00047"></a>00047   <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#467b9042f35eaeadcbf3bf85e56cd025">load</a>(std::auto_ptr&lt;Glib::Error&gt;&amp; error);
<a name="l00048"></a>00048   <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#5a9e84b0bae9b59f3832715622b13131">save</a>(std::auto_ptr&lt;Glib::Error&gt;&amp; error);
<a name="l00049"></a>00049 <span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051   <span class="keyword">virtual</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#ac0dbbb03eeadd76e2d9a6e19f4a3c0b">~AssociationBase</a>();
<a name="l00052"></a>00052     
<a name="l00053"></a>00053 <span class="keyword">protected</span>:
<a name="l00054"></a>00054   <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#61f55dcc9a67d03879030711c76c127c">AssociationBase</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; full_key, <span class="keywordtype">bool</span> instant);
<a name="l00055"></a>00055   <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#61f55dcc9a67d03879030711c76c127c">AssociationBase</a>(<span class="keyword">const</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html" title="Provides behaviors that are common to all widget/key associations.">AssociationBase</a>&amp; other); <span class="comment">// Not implemented</span>
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00058"></a>00058   <span class="keywordtype">bool</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#9a077d8f5b07c709bf33d20bf60ce42c">is_instant</a>() <span class="keyword">const</span>;
<a name="l00059"></a>00059   <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1ustring.html">Glib::ustring</a> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#74a8bfa4ece974c29ab40da130e365f3">get_key</a>() <span class="keyword">const</span>;
<a name="l00060"></a>00060   <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1RefPtr.html">Glib::RefPtr&lt;const Gnome::Conf::Client&gt;</a> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#5c7e0caf0654f126b02413998e7ef647">get_conf_client</a>() <span class="keyword">const</span>;
<a name="l00061"></a>00061   <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1RefPtr.html">Glib::RefPtr&lt;Gnome::Conf::Client&gt;</a> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#5c7e0caf0654f126b02413998e7ef647">get_conf_client</a>();
<a name="l00062"></a>00062     
<a name="l00063"></a><a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#adb9cbb5a6f659026f77707a1b6b43e5">00063</a>   <span class="keyword">typedef</span> sigc::slot&lt;void&gt; <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#adb9cbb5a6f659026f77707a1b6b43e5">Callback</a>;
<a name="l00064"></a>00064   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#13a1a97593dd3c7c043bbb6ac1bab619">connect_widget</a>(<a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#adb9cbb5a6f659026f77707a1b6b43e5">Callback</a> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#c119010834083390c728d05a0c0b5957">on_widget_changed</a>) = 0;
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="preprocessor">#ifdef GLIBMM_EXCEPTIONS_ENABLED</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#53a1b111d155a8d7ba81feb130b00487">load_widget</a>() = 0;
<a name="l00068"></a>00068   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#24202991035d521147df8608e191fad0">save_widget</a>() = 0;
<a name="l00069"></a>00069 <span class="preprocessor">#else</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#53a1b111d155a8d7ba81feb130b00487">load_widget</a>(std::auto_ptr&lt;Glib::Error&gt;&amp; error) = 0;
<a name="l00071"></a>00071   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#24202991035d521147df8608e191fad0">save_widget</a>(std::auto_ptr&lt;Glib::Error&gt;&amp; error) = 0;
<a name="l00072"></a>00072 <span class="preprocessor">#endif</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span>
<a name="l00074"></a>00074   <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#c119010834083390c728d05a0c0b5957">on_widget_changed</a>();
<a name="l00075"></a>00075   <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#fa86ba34247fc037d1e5cc9504af61da">on_conf_changed</a>(guint cnxn_id, Gnome::Conf::Entry entry);
<a name="l00076"></a>00076 
<a name="l00077"></a><a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#8431abf011d5a34993df4e89eb955e91">00077</a>   <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1ustring.html">Glib::ustring</a> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#8431abf011d5a34993df4e89eb955e91">m_key</a>;
<a name="l00078"></a><a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#eeebb1c04597633fa3c433631fbab5db">00078</a>   <span class="keywordtype">bool</span> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#eeebb1c04597633fa3c433631fbab5db">m_instant</a>;
<a name="l00079"></a><a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#b1d6fc7b5770acc8eda5a569d127b6df">00079</a>   <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1RefPtr.html">Glib::RefPtr&lt;Gnome::Conf::Client&gt;</a> <a class="code" href="classBakery_1_1Conf_1_1AssociationBase.html#b1d6fc7b5770acc8eda5a569d127b6df">m_conf_client</a>;
<a name="l00080"></a>00080 };
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 } <span class="comment">//namespace Conf</span>
<a name="l00083"></a>00083 
<a name="l00084"></a>00084 } <span class="comment">//namespace Bakery</span>
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="preprocessor">#endif //BAKERY_CONFIGURATION_ASSOCIATIONBASE_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Dec 8 18:42:35 2008 for bakery by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>