Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 04b5d9decd5baea570b59d0bd03cbaab > files > 72

glibmm24-doc-2.28.0-1.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>glibmm: Gio::DBus::Server Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespaceGio.html">Gio</a> </li>
      <li><a class="el" href="namespaceGio_1_1DBus.html">DBus</a> </li>
      <li><a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a> </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#related">Related Functions</a> </div>
  <div class="headertitle">
<h1>Gio::DBus::Server Class Reference<br/>
<small>
[<a class="el" href="group__DBus.html">D-Bus API</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="Gio::DBus::Server" --><!-- doxytag: inherits="Glib::Object,Gio::Initable" -->
<p>This is a helper for listening to and accepting D-Bus connections. <a href="#_details">More...</a></p>

<p><code>#include &lt;giomm/dbusserver.h&gt;</code></p>
<!-- startSectionHeader --><div class="dynheader">
Inheritance diagram for Gio::DBus::Server:<!-- endSectionHeader --></div>
<!-- startSectionSummary --><!-- endSectionSummary --><!-- startSectionContent --><div class="dyncontent">
<div class="center"><img src="classGio_1_1DBus_1_1Server__inherit__graph.png" border="0" usemap="#Gio_1_1DBus_1_1Server_inherit__map" alt="Inheritance graph"/></div>
<map name="Gio_1_1DBus_1_1Server_inherit__map" id="Gio_1_1DBus_1_1Server_inherit__map">
<area shape="rect" id="node2" href="classGlib_1_1Object.html" title="Glib::Object" alt="" coords="5,237,99,267"/><area shape="rect" id="node4" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="41,83,167,112"/><area shape="rect" id="node10" href="classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="109,160,219,189"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="47,5,161,35"/><area shape="rect" id="node8" href="classGio_1_1Initable.html" title="Failable object initialization interface." alt="" coords="123,237,219,267"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center><!-- endSectionContent --></div>

<p><a href="classGio_1_1DBus_1_1Server-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a107038d7edb1d4ce4c6132521e80baeb">~Server</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GDBusServer*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a0cd3fabb952476c1b9c21dee304f39c3">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a0cd3fabb952476c1b9c21dee304f39c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GDBusServer*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#ac7fd9a1e110e0bd4cf0b3f8647d05125">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#ac7fd9a1e110e0bd4cf0b3f8647d05125"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GDBusServer*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a13e1153d897482bceec00a0632816095">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#a13e1153d897482bceec00a0632816095"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a7ed47fd7598df4f47078d8245fcf8bbb">start</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts <em>server</em>. <a href="#a7ed47fd7598df4f47078d8245fcf8bbb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a8d2159c52a96a9459e486b316b959bfb">stop</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops <em>server</em>. <a href="#a8d2159c52a96a9459e486b316b959bfb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a29f05f3b211b5264e311797f578bd236">is_active</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets whether <em>server</em> is active. <a href="#a29f05f3b211b5264e311797f578bd236"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a4e097e0368dfe5bdb291166adeac69a5">get_guid</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the GUID for <em>server</em>. <a href="#a4e097e0368dfe5bdb291166adeac69a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#ae5ed3dfce695fc1b4ed80aadbfd053a3">get_flags</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the flags for <em>server</em>. <a href="#ae5ed3dfce695fc1b4ed80aadbfd053a3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a16b132b2ee7c5d57147c49dad43cd3d9">get_client_address</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a D-Bus address string that can be used by clients to connect to <em>server</em>. <a href="#a16b132b2ee7c5d57147c49dad43cd3d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a9a830e48b40489bc84d8014418d0196f">property_active</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the server is currently active. <a href="#a9a830e48b40489bc84d8014418d0196f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a512524a5dd040b0335ff5fcac6385b9d">property_address</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The address to listen on. <a href="#a512524a5dd040b0335ff5fcac6385b9d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1AuthObserver.html">AuthObserver</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a40a9d7c6db1f7093f2de591ed1a240cf">property_authentication_observer</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Object used to assist in the authentication process. <a href="#a40a9d7c6db1f7093f2de591ed1a240cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a858efb3a101ffe3b830c616d7de55b9b">property_client_address</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The address clients can use. <a href="#a858efb3a101ffe3b830c616d7de55b9b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; <a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a461917cdc2a947da309a81759794b1d7">property_flags</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Flags for the server. <a href="#a461917cdc2a947da309a81759794b1d7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a24459c47717224554bc9501495462806">property_guid</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The guid of the server. <a href="#a24459c47717224554bc9501495462806"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a>&lt; bool, <br class="typebreak"/>
const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1Connection.html">Connection</a> &gt;&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a77d8f4344f2af199ed30dbce6d4f2a94">signal_new_connection</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Emitted when a new authenticated connection has been made. <a href="#a77d8f4344f2af199ed30dbce6d4f2a94"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a6294a0f2e2792208b483a50350099ec8">create_sync</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; address, const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; guid, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1AuthObserver.html">AuthObserver</a> &gt;&amp; observer, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> &gt;&amp; cancellable, <a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a> flags=Gio::DBus::SERVER_FLAGS_NONE)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new D-Bus server that listens on the first address in <em>address</em> that works. <a href="#a6294a0f2e2792208b483a50350099ec8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a2827afcc5b64812180fe4cf3b7fdf8c9">create_sync</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; address, const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; guid, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> &gt;&amp; cancellable, <a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a> flags=Gio::DBus::SERVER_FLAGS_NONE)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new D-Bus server that listens on the first address in <em>address</em> that works. <a href="#a2827afcc5b64812180fe4cf3b7fdf8c9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#aca4e5768123f04ef2fb6de952f351cf3">create_sync</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; address, const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; guid, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1AuthObserver.html">AuthObserver</a> &gt;&amp; observer, <a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a> flags=Gio::DBus::SERVER_FLAGS_NONE)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Non-cancellable version of <a class="el" href="classGio_1_1DBus_1_1Server.html#a6294a0f2e2792208b483a50350099ec8" title="Creates a new D-Bus server that listens on the first address in address that works.">create_sync()</a>. <a href="#aca4e5768123f04ef2fb6de952f351cf3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a571667a8f18f4c7671f45a22bd7444e7">create_sync</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; address, const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; guid, <a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a> flags=Gio::DBus::SERVER_FLAGS_NONE)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Non-cancellable version of <a class="el" href="classGio_1_1DBus_1_1Server.html#a6294a0f2e2792208b483a50350099ec8" title="Creates a new D-Bus server that listens on the first address in address that works.">create_sync()</a>. <a href="#a571667a8f18f4c7671f45a22bd7444e7"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1Server.html">Gio::DBus::Server</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1DBus_1_1Server.html#a54e250956f902b3df91aabd16398ec7c">wrap</a> (GDBusServer* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a54e250956f902b3df91aabd16398ec7c"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This is a helper for listening to and accepting D-Bus connections. </p>
<p>Since <a class="el" href="classGio_1_1DBus_1_1Server.html" title="This is a helper for listening to and accepting D-Bus connections.">Server</a> derives from Initiable, its constructors can throw an exception if construction fails.</p>
<p>This can be used to create a new D-Bus server, allowing two peers to use the D-Bus protocol for their own specialized communication. A server instance provided in this way will not perform message routing or implement the org.freedesktop.DBus interface.</p>
<p>To just export an object on a well-known name on a message bus, such as the session or system bus, you should instead use Gio::DBus::own_name().</p>
<dl class="since_2_28"><dt><b><a class="el" href="since_2_28.html#_since_2_28000109">Since glibmm 2.28:</a></b></dt><dd></dd></dl>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a107038d7edb1d4ce4c6132521e80baeb"></a><!-- doxytag: member="Gio::DBus::Server::~Server" ref="a107038d7edb1d4ce4c6132521e80baeb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gio::DBus::Server::~Server </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6294a0f2e2792208b483a50350099ec8"></a><!-- doxytag: member="Gio::DBus::Server::create_sync" ref="a6294a0f2e2792208b483a50350099ec8" args="(const std::string &amp;address, const std::string &amp;guid, const Glib::RefPtr&lt; AuthObserver &gt; &amp;observer, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable, ServerFlags flags=Gio::DBus::SERVER_FLAGS_NONE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a>&gt; Gio::DBus::Server::create_sync </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>guid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1AuthObserver.html">AuthObserver</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>observer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>cancellable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a>&#160;</td>
          <td class="paramname"> <em>flags</em> = <code>Gio::DBus::SERVER_FLAGS_NONE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new D-Bus server that listens on the first address in <em>address</em> that works. </p>
<p>Once constructed, you can use g_dbus_server_get_client_address() to get a D-Bus address string that clients can use to connect.</p>
<p>Connect to the DBusServer::new-connection signal to handle incoming connections.</p>
<p>The returned DBusServer isn't active - you have to start it with g_dbus_server_start().</p>
<p>See &lt;xref linkend="gdbus-peer-to-peer"&gt; for how DBusServer can be used.</p>
<p>This is a synchronous failable constructor. See Glib::dbus_server_new() for the asynchronous version.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000146">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">address</td><td>A D-Bus address. </td></tr>
    <tr><td class="paramname">flags</td><td>Flags from the DBusServerFlags enumeration. </td></tr>
    <tr><td class="paramname">guid</td><td>A D-Bus GUID. </td></tr>
    <tr><td class="paramname">observer</td><td>A DBusAuthObserver or <code>0</code>. </td></tr>
    <tr><td class="paramname">cancellable</td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A DBusServer or <code>0</code> if <em>error</em> is set. Free with Glib::object_unref(). </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Glib::Error.</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2827afcc5b64812180fe4cf3b7fdf8c9"></a><!-- doxytag: member="Gio::DBus::Server::create_sync" ref="a2827afcc5b64812180fe4cf3b7fdf8c9" args="(const std::string &amp;address, const std::string &amp;guid, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable, ServerFlags flags=Gio::DBus::SERVER_FLAGS_NONE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a>&gt; Gio::DBus::Server::create_sync </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>guid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>cancellable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a>&#160;</td>
          <td class="paramname"> <em>flags</em> = <code>Gio::DBus::SERVER_FLAGS_NONE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new D-Bus server that listens on the first address in <em>address</em> that works. </p>
<p>Once constructed, you can use g_dbus_server_get_client_address() to get a D-Bus address string that clients can use to connect.</p>
<p>Connect to the DBusServer::new-connection signal to handle incoming connections.</p>
<p>The returned DBusServer isn't active - you have to start it with g_dbus_server_start().</p>
<p>See &lt;xref linkend="gdbus-peer-to-peer"&gt; for how DBusServer can be used.</p>
<p>This is a synchronous failable constructor. See Glib::dbus_server_new() for the asynchronous version.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000147">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">address</td><td>A D-Bus address. </td></tr>
    <tr><td class="paramname">flags</td><td>Flags from the DBusServerFlags enumeration. </td></tr>
    <tr><td class="paramname">guid</td><td>A D-Bus GUID. </td></tr>
    <tr><td class="paramname">observer</td><td>A DBusAuthObserver or <code>0</code>. </td></tr>
    <tr><td class="paramname">cancellable</td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A DBusServer or <code>0</code> if <em>error</em> is set. Free with Glib::object_unref(). </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Glib::Error.</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aca4e5768123f04ef2fb6de952f351cf3"></a><!-- doxytag: member="Gio::DBus::Server::create_sync" ref="aca4e5768123f04ef2fb6de952f351cf3" args="(const std::string &amp;address, const std::string &amp;guid, const Glib::RefPtr&lt; AuthObserver &gt; &amp;observer, ServerFlags flags=Gio::DBus::SERVER_FLAGS_NONE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a>&gt; Gio::DBus::Server::create_sync </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>guid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1AuthObserver.html">AuthObserver</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>observer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a>&#160;</td>
          <td class="paramname"> <em>flags</em> = <code>Gio::DBus::SERVER_FLAGS_NONE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Non-cancellable version of <a class="el" href="classGio_1_1DBus_1_1Server.html#a6294a0f2e2792208b483a50350099ec8" title="Creates a new D-Bus server that listens on the first address in address that works.">create_sync()</a>. </p>

</div>
</div>
<a class="anchor" id="a571667a8f18f4c7671f45a22bd7444e7"></a><!-- doxytag: member="Gio::DBus::Server::create_sync" ref="a571667a8f18f4c7671f45a22bd7444e7" args="(const std::string &amp;address, const std::string &amp;guid, ServerFlags flags=Gio::DBus::SERVER_FLAGS_NONE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1DBus_1_1Server.html">Server</a>&gt; Gio::DBus::Server::create_sync </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>guid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a>&#160;</td>
          <td class="paramname"> <em>flags</em> = <code>Gio::DBus::SERVER_FLAGS_NONE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Non-cancellable version of <a class="el" href="classGio_1_1DBus_1_1Server.html#a6294a0f2e2792208b483a50350099ec8" title="Creates a new D-Bus server that listens on the first address in address that works.">create_sync()</a>. </p>

</div>
</div>
<a class="anchor" id="a16b132b2ee7c5d57147c49dad43cd3d9"></a><!-- doxytag: member="Gio::DBus::Server::get_client_address" ref="a16b132b2ee7c5d57147c49dad43cd3d9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> Gio::DBus::Server::get_client_address </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets a D-Bus address string that can be used by clients to connect to <em>server</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000153">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A D-Bus address string. Do not free, the string is owned by <em>server</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="ae5ed3dfce695fc1b4ed80aadbfd053a3"></a><!-- doxytag: member="Gio::DBus::Server::get_flags" ref="ae5ed3dfce695fc1b4ed80aadbfd053a3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a> Gio::DBus::Server::get_flags </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the flags for <em>server</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000152">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of flags from the DBusServerFlags enumeration. </dd></dl>

</div>
</div>
<a class="anchor" id="a4e097e0368dfe5bdb291166adeac69a5"></a><!-- doxytag: member="Gio::DBus::Server::get_guid" ref="a4e097e0368dfe5bdb291166adeac69a5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> Gio::DBus::Server::get_guid </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the GUID for <em>server</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000151">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A D-Bus GUID. Do not free this string, it is owned by <em>server</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="ac7fd9a1e110e0bd4cf0b3f8647d05125"></a><!-- doxytag: member="Gio::DBus::Server::gobj" ref="ac7fd9a1e110e0bd4cf0b3f8647d05125" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GDBusServer* Gio::DBus::Server::gobj </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="el" href="classGio_1_1Initable.html#a30665fda96b812e27231ec5abc47b789">Gio::Initable</a>.</p>

</div>
</div>
<a class="anchor" id="a0cd3fabb952476c1b9c21dee304f39c3"></a><!-- doxytag: member="Gio::DBus::Server::gobj" ref="a0cd3fabb952476c1b9c21dee304f39c3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GDBusServer* Gio::DBus::Server::gobj </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="el" href="classGio_1_1Initable.html#a90206d58591c674e03c5de57623bac18">Gio::Initable</a>.</p>

</div>
</div>
<a class="anchor" id="a13e1153d897482bceec00a0632816095"></a><!-- doxytag: member="Gio::DBus::Server::gobj_copy" ref="a13e1153d897482bceec00a0632816095" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GDBusServer* Gio::DBus::Server::gobj_copy </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="a29f05f3b211b5264e311797f578bd236"></a><!-- doxytag: member="Gio::DBus::Server::is_active" ref="a29f05f3b211b5264e311797f578bd236" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gio::DBus::Server::is_active </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets whether <em>server</em> is active. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000150">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if server is active, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a9a830e48b40489bc84d8014418d0196f"></a><!-- doxytag: member="Gio::DBus::Server::property_active" ref="a9a830e48b40489bc84d8014418d0196f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;bool&gt; Gio::DBus::Server::property_active </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Whether the server is currently active. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a512524a5dd040b0335ff5fcac6385b9d"></a><!-- doxytag: member="Gio::DBus::Server::property_address" ref="a512524a5dd040b0335ff5fcac6385b9d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&gt; Gio::DBus::Server::property_address </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The address to listen on. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a40a9d7c6db1f7093f2de591ed1a240cf"></a><!-- doxytag: member="Gio::DBus::Server::property_authentication_observer" ref="a40a9d7c6db1f7093f2de591ed1a240cf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt; <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1DBus_1_1AuthObserver.html">AuthObserver</a>&gt; &gt; Gio::DBus::Server::property_authentication_observer </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Object used to assist in the authentication process. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a858efb3a101ffe3b830c616d7de55b9b"></a><!-- doxytag: member="Gio::DBus::Server::property_client_address" ref="a858efb3a101ffe3b830c616d7de55b9b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&gt; Gio::DBus::Server::property_client_address </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The address clients can use. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a461917cdc2a947da309a81759794b1d7"></a><!-- doxytag: member="Gio::DBus::Server::property_flags" ref="a461917cdc2a947da309a81759794b1d7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;<a class="el" href="group__giommEnums.html#ga3fbaae392de9b7cb4e91ba94476a82b2">ServerFlags</a>&gt; Gio::DBus::Server::property_flags </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Flags for the server. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a24459c47717224554bc9501495462806"></a><!-- doxytag: member="Gio::DBus::Server::property_guid" ref="a24459c47717224554bc9501495462806" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&gt; Gio::DBus::Server::property_guid </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The guid of the server. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a77d8f4344f2af199ed30dbce6d4f2a94"></a><!-- doxytag: member="Gio::DBus::Server::signal_new_connection" ref="a77d8f4344f2af199ed30dbce6d4f2a94" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a>&lt; bool,const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1DBus_1_1Connection.html">Connection</a>&gt;&amp; &gt; Gio::DBus::Server::signal_new_connection </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when a new authenticated connection has been made. </p>
<p>Use <a class="el" href="classGio_1_1DBus_1_1Connection.html#ad841b9beb348c2e21dcb9e395ee4f28a" title="Gets the credentials of the authenticated peer.">Gio::DBus::Connection::get_peer_credentials()</a> to figure out what identity (if any), was authenticated.</p>
<p>If you want to accept the connection, keep a global reference to the connection (by keeping it in a global RefPtr&lt;&gt;) and return <code>true</code>. When you are done with the connection call <a class="el" href="classGio_1_1DBus_1_1Connection.html#a3e52adb1ec39322086ea46921086a6e5" title="Closes the connection.">Gio::DBus::Connection::close()</a>. Note that the other peer may disconnect at any time - a typical thing to do when accepting a connection is to listen to the <a class="el" href="classGio_1_1DBus_1_1Connection.html#a99d65f5ee4424eb0e48fd1725ff6ab37">Gio::DBus::Connection::signal_closed()</a> signal.</p>
<p>If <a class="el" href="classGio_1_1DBus_1_1Server.html#a461917cdc2a947da309a81759794b1d7" title="Flags for the server.">property_flags()</a> contains Gio::DBus::SERVER_FLAGS_RUN_IN_THREAD then the signal is emitted in a new thread dedicated to the connection. Otherwise the signal is emitted in the thread-default main loop of the thread that server was constructed in.</p>
<p>You are guaranteed that signal handlers for this signal runs before incoming messages on the connection are processed. This means that it's suitable to call <a class="el" href="classGio_1_1DBus_1_1Connection.html#a0c2974543543686c386601b656577593" title="Registers slots for exported objects at object_path with the D-Bus interface that is described in int...">Gio::DBus::Connection::register_object()</a> or similar from the signal handler.</p>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>bool on_my_new_connection(const Glib::RefPtr&lt;Connection&gt;&amp; connection)</code> </dd></dl>

</div>
</div>
<a class="anchor" id="a7ed47fd7598df4f47078d8245fcf8bbb"></a><!-- doxytag: member="Gio::DBus::Server::start" ref="a7ed47fd7598df4f47078d8245fcf8bbb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gio::DBus::Server::start </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Starts <em>server</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000148">Since glibmm 2.26:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a8d2159c52a96a9459e486b316b959bfb"></a><!-- doxytag: member="Gio::DBus::Server::stop" ref="a8d2159c52a96a9459e486b316b959bfb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gio::DBus::Server::stop </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stops <em>server</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000149">Since glibmm 2.26:</a></b></dt><dd></dd></dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a54e250956f902b3df91aabd16398ec7c"></a><!-- doxytag: member="Gio::DBus::Server::wrap" ref="a54e250956f902b3df91aabd16398ec7c" args="(GDBusServer *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGio_1_1DBus_1_1Server.html">Gio::DBus::Server</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GDBusServer *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
    <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue Apr 5 2011 16:07:13 for glibmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>