Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 191

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="en_US" xml:lang="en_US">

<head>
  <title>dnssd: DNSSD::PublicService Class Reference (dnssd)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">dnssd</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>DNSSD</b>      </li>
      <li class="navelem"><a class="el" href="classDNSSD_1_1PublicService.html">PublicService</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">DNSSD::PublicService Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="DNSSD::PublicService" --><!-- doxytag: inherits="QObject,DNSSD::ServiceBase" -->
<p>This class is most important for application that wants to announce its service on network.  
 <a href="classDNSSD_1_1PublicService.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="publicservice_8h_source.html">publicservice.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for DNSSD::PublicService:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classDNSSD_1_1PublicService.png" usemap="#DNSSD::PublicService_map" alt=""/>
  <map id="DNSSD::PublicService_map" name="DNSSD::PublicService_map">
<area href="qobject.html" alt="QObject" shape="rect" coords="0,0,140,24"/>
<area href="classDNSSD_1_1ServiceBase.html" title="This class is used to carry information about service." alt="DNSSD::ServiceBase" shape="rect" coords="150,0,290,24"/>
</map>
 </div></div>

<p><a href="classDNSSD_1_1PublicService-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#a82b92721e5e16120025e7ca227d3acd4">published</a> (bool)</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#aba08196c900daa315183a2a56528c2c8">PublicService</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;<a class="elRef" href="qobject.html#name">name</a>=QString::null, const <a class="elRef" href="qstring.html">QString</a> &amp;type=QString::null, unsigned int port=0, const <a class="elRef" href="qstring.html">QString</a> &amp;domain=QString::null)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#add2848571a063846abd8c2ad9a6a5db5">stop</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#ab6bf6a8885e05b524fe0e11f74d76e7f">publish</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#a0a4924307783876dfc2ac2a57745697b">isPublished</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#aaba2dcc58ba948a47e59e3096fb9ba8b">publishAsync</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#a5bf386f9cfdf038a603ccb99a8612898">setTextData</a> (const <a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; &amp;textData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#af6cd9f52c82dd09c99faf26f453bcb75">setServiceName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;serviceName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#ae255307df0186652abd3895d9766095f">setType</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#a88997bcde16f96ef432e5465ceee6be0">setPort</a> (unsigned short port)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#afa21e3f76b3c84290df092230d5f71ee">setDomain</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;domain)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const KURL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDNSSD_1_1PublicService.html#a4255fa24e59335a0cf9ccabfe94fc2e6">toInvitation</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;host=QString::null)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a52728f307d2b0a82cfbe7e18bf9fd255"></a><!-- doxytag: member="DNSSD::PublicService::customEvent" ref="a52728f307d2b0a82cfbe7e18bf9fd255" args="(QCustomEvent *event)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>customEvent</b> (<a class="elRef" href="qcustomevent.html">QCustomEvent</a> *<a class="elRef" href="qobject.html#event">event</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a995bc985b35cd38f325fe107028abe5c"></a><!-- doxytag: member="DNSSD::PublicService::virtual_hook" ref="a995bc985b35cd38f325fe107028abe5c" args="(int, void *)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int, void *)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class is most important for application that wants to announce its service on network. </p>
<p>Suppose that you want to make your web server public - this is simplest way:</p>
<div class="fragment"><pre class="fragment"><a class="code" href="classDNSSD_1_1PublicService.html" title="This class is most important for application that wants to announce its service on network...">DNSSD::PublicService</a> *service = <span class="keyword">new</span> <a class="code" href="classDNSSD_1_1PublicService.html#aba08196c900daa315183a2a56528c2c8">DNSSD::PublicService</a>(<span class="stringliteral">&quot;My files&quot;</span>,<span class="stringliteral">&quot;_http._tcp&quot;</span>,80);
<span class="keywordtype">bool</span> isOK = service-&gt;<a class="code" href="classDNSSD_1_1PublicService.html#ab6bf6a8885e05b524fe0e11f74d76e7f" title="Synchrounous publish.">publish</a>();
</pre></div><p>In this example <a class="el" href="classDNSSD_1_1PublicService.html#ab6bf6a8885e05b524fe0e11f74d76e7f" title="Synchrounous publish.">publish()</a> is synchronous - it will not return until publishing is complete. This is usually not too long but it can freeze application's GUI for a moment. Asynchronous publishing is better for responsiveness. Example:</p>
<div class="fragment"><pre class="fragment"><a class="code" href="classDNSSD_1_1PublicService.html" title="This class is most important for application that wants to announce its service on network...">DNSSD::PublicService</a> *service = <span class="keyword">new</span> <a class="code" href="classDNSSD_1_1PublicService.html#aba08196c900daa315183a2a56528c2c8">DNSSD::PublicService</a>(<span class="stringliteral">&quot;My files&quot;</span>,<span class="stringliteral">&quot;_http._tcp&quot;</span>,80);
<a class="codeRef" href="qobject.html#connect">connect</a>(service,SIGNAL(<a class="code" href="classDNSSD_1_1PublicService.html#a82b92721e5e16120025e7ca227d3acd4" title="Emitted when publishing is complete - parameter is set to true if it was successfull.">published</a>(<span class="keywordtype">bool</span>)),<span class="keyword">this</span>,SLOT(wasPublished(<span class="keywordtype">bool</span>)));
service-&gt;<a class="code" href="classDNSSD_1_1PublicService.html#aaba2dcc58ba948a47e59e3096fb9ba8b" title="Asynchronous version of publish().">publishAsync</a>();
</pre></div><p>This class represents local service being published </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Jakub Stachowski </dd></dl>

<p>Definition at line <a class="el" href="publicservice_8h_source.html#l00056">56</a> of file <a class="el" href="publicservice_8h_source.html">publicservice.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aba08196c900daa315183a2a56528c2c8"></a><!-- doxytag: member="DNSSD::PublicService::PublicService" ref="aba08196c900daa315183a2a56528c2c8" args="(const QString &amp;name=QString::null, const QString &amp;type=QString::null, unsigned int port=0, const QString &amp;domain=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DNSSD::PublicService::PublicService </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>type</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>port</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>domain</em> = <code>QString::null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>Service name. If set to QString::null, computer name will be used and will be available via <a class="el" href="classDNSSD_1_1ServiceBase.html#a01aae186d968ec052111937d5d5571aa" title="Returns name of service.">serviceName()</a> after successful registration </td></tr>
    <tr><td class="paramname">type</td><td>Service type. Has to be in form _sometype._udp or _sometype._tcp </td></tr>
    <tr><td class="paramname">port</td><td>Port number. Set to 0 to "reserve" service name. </td></tr>
    <tr><td class="paramname">domain</td><td>Domain name. If left as <a class="elRef" href="qstring.html">QString</a>:null, user configuration will be used. "local." means local LAN </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00053">53</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a0a4924307783876dfc2ac2a57745697b"></a><!-- doxytag: member="DNSSD::PublicService::isPublished" ref="a0a4924307783876dfc2ac2a57745697b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DNSSD::PublicService::isPublished </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true is currently published. </p>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00107">107</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab6bf6a8885e05b524fe0e11f74d76e7f"></a><!-- doxytag: member="DNSSD::PublicService::publish" ref="ab6bf6a8885e05b524fe0e11f74d76e7f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DNSSD::PublicService::publish </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Synchrounous publish. </p>
<p>Application will be freezed until publishing is complete. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if successfull. </dd></dl>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00121">121</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aaba2dcc58ba948a47e59e3096fb9ba8b"></a><!-- doxytag: member="DNSSD::PublicService::publishAsync" ref="aaba2dcc58ba948a47e59e3096fb9ba8b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DNSSD::PublicService::publishAsync </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Asynchronous version of <a class="el" href="classDNSSD_1_1PublicService.html#ab6bf6a8885e05b524fe0e11f74d76e7f" title="Synchrounous publish.">publish()</a>. </p>
<p>It return immediately and emits signal <a class="el" href="classDNSSD_1_1PublicService.html#a82b92721e5e16120025e7ca227d3acd4" title="Emitted when publishing is complete - parameter is set to true if it was successfull.">published(bool)</a> when completed. Note that in case of early detected error (like bad service type) signal may be emitted before return of this function. </p>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00134">134</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a82b92721e5e16120025e7ca227d3acd4"></a><!-- doxytag: member="DNSSD::PublicService::published" ref="a82b92721e5e16120025e7ca227d3acd4" args="(bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DNSSD::PublicService::published </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when publishing is complete - parameter is set to true if it was successfull. </p>
<p>It will also emitted when name, port or type of already published service is changed. </p>

</div>
</div>
<a class="anchor" id="afa21e3f76b3c84290df092230d5f71ee"></a><!-- doxytag: member="DNSSD::PublicService::setDomain" ref="afa21e3f76b3c84290df092230d5f71ee" args="(const QString &amp;domain)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DNSSD::PublicService::setDomain </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>domain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets domain where service is published. </p>
<p>"local." means local LAN. If service is currently published, it will be re-announced with new data. </p>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00079">79</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a88997bcde16f96ef432e5465ceee6be0"></a><!-- doxytag: member="DNSSD::PublicService::setPort" ref="a88997bcde16f96ef432e5465ceee6be0" args="(unsigned short port)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DNSSD::PublicService::setPort </td>
          <td>(</td>
          <td class="paramtype">unsigned short&#160;</td>
          <td class="paramname"><em>port</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets port. </p>
<p>If service is currently published, it will be re-announced with new data. </p>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00098">98</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af6cd9f52c82dd09c99faf26f453bcb75"></a><!-- doxytag: member="DNSSD::PublicService::setServiceName" ref="af6cd9f52c82dd09c99faf26f453bcb75" args="(const QString &amp;serviceName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DNSSD::PublicService::setServiceName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>serviceName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets name of the service. </p>
<p>If service is currently published, it will be re-announced with new data. </p>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00070">70</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5bf386f9cfdf038a603ccb99a8612898"></a><!-- doxytag: member="DNSSD::PublicService::setTextData" ref="a5bf386f9cfdf038a603ccb99a8612898" args="(const QMap&lt; QString, QString &gt; &amp;textData)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DNSSD::PublicService::setTextData </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>textData</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets new text properties. </p>
<p>If services is already published, it will be re-announced with new data. </p>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00112">112</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae255307df0186652abd3895d9766095f"></a><!-- doxytag: member="DNSSD::PublicService::setType" ref="ae255307df0186652abd3895d9766095f" args="(const QString &amp;type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DNSSD::PublicService::setType </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets type of service. </p>
<p>It has to in form of _type._udp or _type._tcp. If service is currently published, it will be re-announced with new data. </p>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00089">89</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="add2848571a063846abd8c2ad9a6a5db5"></a><!-- doxytag: member="DNSSD::PublicService::stop" ref="add2848571a063846abd8c2ad9a6a5db5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DNSSD::PublicService::stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stops publishing or abort incomplete publish request. </p>
<p>Useful when you want to disable service for some time. </p>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00128">128</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4255fa24e59335a0cf9ccabfe94fc2e6"></a><!-- doxytag: member="DNSSD::PublicService::toInvitation" ref="a4255fa24e59335a0cf9ccabfe94fc2e6" args="(const QString &amp;host=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const KURL DNSSD::PublicService::toInvitation </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>host</em> = <code>QString::null</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Translates service into URL that can be sent to another user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">host</td><td>Use specified hostname. If left empty, public IP address (the one used for default route) will be used. </td></tr>
  </table>
  </dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.5 </dd></dl>

<p>Definition at line <a class="el" href="publicservice_8cpp_source.html#l00175">175</a> of file <a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="publicservice_8h_source.html">publicservice.h</a></li>
<li><a class="el" href="publicservice_8cpp_source.html">publicservice.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>dnssd</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classDNSSD_1_1DomainBrowser.html">dnssd::domainbrowser</option>,  <option value="classDNSSD_1_1PublicService.html">dnssd::publicservice</option>,  <option value="classDNSSD_1_1Query.html">dnssd::query</option>,  <option value="classDNSSD_1_1RemoteService.html">dnssd::remoteservice</option>,  <option value="classDNSSD_1_1Responder.html">dnssd::responder</option>,  <option value="classDNSSD_1_1ServiceBase.html">dnssd::servicebase</option>,  <option value="classDNSSD_1_1ServiceBrowser.html">dnssd::servicebrowser</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>