Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 622

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qbluetoothserviceinfo.cpp -->
  <title>Qt Mobility 1.2: QBluetoothServiceInfo Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtconnectivity.html">QtConnectivity</a></li>
<li>QBluetoothServiceInfo</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QBluetoothServiceInfo Class Reference</h1>
<!-- $$$QBluetoothServiceInfo-brief -->
<p>The QBluetoothServiceInfo class provides information about services. <a href="#details">More...</a></p>
<!-- @@@QBluetoothServiceInfo -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QBluetoothServiceInfo&gt;</span></pre><ul>
<li><a href="qbluetoothserviceinfo-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo-alternative.html">Alternative</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo-sequence.html">Sequence</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#AttributeId-enum">AttributeId</a></b> { ServiceClassIds, ServiceId, ProtocolDescriptorList, BrowseGroupList, ..., ServiceProvider }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#Protocol-enum">Protocol</a></b> { UnknownProtocol, L2capProtocol, RfcommProtocol }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#QBluetoothServiceInfo">QBluetoothServiceInfo</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#QBluetoothServiceInfo-2">QBluetoothServiceInfo</a></b> ( const QBluetoothServiceInfo &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#dtor.QBluetoothServiceInfo">~QBluetoothServiceInfo</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#attribute">attribute</a></b> ( quint16 <i>attributeId</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;quint16&gt; </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#attributes">attributes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#contains">contains</a></b> ( quint16 <i>attributeId</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBluetoothDeviceInfo </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#device">device</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#isComplete">isComplete</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#isRegistered">isRegistered</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#isValid">isValid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBluetoothServiceInfo::Sequence </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#protocolDescriptor">protocolDescriptor</a></b> ( QBluetoothUuid::ProtocolUuid <i>protocol</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#protocolServiceMultiplexer">protocolServiceMultiplexer</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#registerService">registerService</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#removeAttribute">removeAttribute</a></b> ( quint16 <i>attributeId</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#serverChannel">serverChannel</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> quint8 </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#serviceAvailability">serviceAvailability</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QBluetoothUuid&gt; </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#serviceClassUuids">serviceClassUuids</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#serviceDescription">serviceDescription</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#serviceName">serviceName</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#serviceProvider">serviceProvider</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBluetoothUuid </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#serviceUuid">serviceUuid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setAttribute">setAttribute</a></b> ( quint16 <i>attributeId</i>, const QVariant &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setAttribute-2">setAttribute</a></b> ( quint16 <i>attributeId</i>, const QBluetoothUuid &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setAttribute-3">setAttribute</a></b> ( quint16 <i>attributeId</i>, const QBluetoothServiceInfo::Sequence &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setAttribute-4">setAttribute</a></b> ( quint16 <i>attributeId</i>, const QBluetoothServiceInfo::Alternative &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setDevice">setDevice</a></b> ( const QBluetoothDeviceInfo &amp; <i>device</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setServiceAvailability">setServiceAvailability</a></b> ( quint8 <i>availability</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setServiceDescription">setServiceDescription</a></b> ( const QString &amp; <i>description</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setServiceName">setServiceName</a></b> ( const QString &amp; <i>name</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setServiceProvider">setServiceProvider</a></b> ( const QString &amp; <i>provider</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#setServiceUuid">setServiceUuid</a></b> ( const QBluetoothUuid &amp; <i>uuid</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBluetoothServiceInfo::Protocol </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#socketProtocol">socketProtocol</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#unregisterService">unregisterService</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBluetoothServiceInfo &amp; </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothserviceinfo.html#operator-eq">operator=</a></b> ( const QBluetoothServiceInfo &amp; <i>other</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QBluetoothServiceInfo-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QBluetoothServiceInfo class provides information about services.</p>
<p>QBluetoothServiceInfo provides information about a service offered by a Bluetooth device.</p>
</div>
<!-- @@@QBluetoothServiceInfo -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$AttributeId$$$ServiceRecordHandle$$$ServiceClassIds$$$ServiceId$$$ProtocolDescriptorList$$$BrowseGroupList$$$ServiceAvailability$$$PrimaryLanguageBase$$$ServiceName$$$ServiceDescription$$$ServiceProvider -->
<h3 class="fn"><a name="AttributeId-enum"></a>enum QBluetoothServiceInfo::<span class="name">AttributeId</span></h3>
<p>Bluetooth service attributes.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::ServiceClassIds</tt></td><td class="topAlign"><tt>0x0001</tt></td><td class="topAlign">UUIDs of service classes that the service conforms to.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::ServiceId</tt></td><td class="topAlign"><tt>0x0003</tt></td><td class="topAlign">UUID that uniquely identifies the service.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::ProtocolDescriptorList</tt></td><td class="topAlign"><tt>0x0004</tt></td><td class="topAlign">List of protocols used by the service.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::BrowseGroupList</tt></td><td class="topAlign"><tt>0x0005</tt></td><td class="topAlign">List of browse groups the service is in.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::ServiceAvailability</tt></td><td class="topAlign"><tt>0x0008</tt></td><td class="topAlign">Value indicating the availability of the service.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::PrimaryLanguageBase</tt></td><td class="topAlign"><tt>0x0100</tt></td><td class="topAlign">Base index for primary language text descriptors.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::ServiceRecordHandle</tt></td><td class="topAlign"><tt>0x0000</tt></td><td class="topAlign">Specifies a service record from which attributes can be retrieved</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::ServiceName</tt></td><td class="topAlign"><tt>PrimaryLanguageBase + 0x0000</tt></td><td class="topAlign">Name of the Bluetooth service in the primary language.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::ServiceDescription</tt></td><td class="topAlign"><tt>PrimaryLanguageBase + 0x0001</tt></td><td class="topAlign">Description of the Bluetooth service in the primary language.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::ServiceProvider</tt></td><td class="topAlign"><tt>PrimaryLanguageBase + 0x0002</tt></td><td class="topAlign">Name of the company / entity that provides the Bluetooth service primary language.</td></tr>
</table>
<!-- @@@AttributeId -->
<!-- $$$Protocol$$$UnknownProtocol$$$L2capProtocol$$$RfcommProtocol -->
<h3 class="fn"><a name="Protocol-enum"></a>enum QBluetoothServiceInfo::<span class="name">Protocol</span></h3>
<p>This enum describes the socket protocol used by the service.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::UnknownProtocol</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The service uses an unknown socket protocol.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::L2capProtocol</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The service uses the L2CAP socket protocol.</td></tr>
<tr><td class="topAlign"><tt>QBluetoothServiceInfo::RfcommProtocol</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The service uses the RFCOMM socket protocol.</td></tr>
</table>
<!-- @@@Protocol -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QBluetoothServiceInfo[overload1]$$$QBluetoothServiceInfo -->
<h3 class="fn"><a name="QBluetoothServiceInfo"></a>QBluetoothServiceInfo::<span class="name">QBluetoothServiceInfo</span> ()</h3>
<p>Construct a new invalid <a href="qbluetoothserviceinfo.html">QBluetoothServiceInfo</a>;</p>
<!-- @@@QBluetoothServiceInfo -->
<!-- $$$QBluetoothServiceInfo$$$QBluetoothServiceInfoconstQBluetoothServiceInfo& -->
<h3 class="fn"><a name="QBluetoothServiceInfo-2"></a>QBluetoothServiceInfo::<span class="name">QBluetoothServiceInfo</span> ( const <span class="type">QBluetoothServiceInfo</span> &amp; <i>other</i> )</h3>
<p>Construct a new <a href="qbluetoothserviceinfo.html">QBluetoothServiceInfo</a> that is a copy of <i>other</i>.</p>
<!-- @@@QBluetoothServiceInfo -->
<!-- $$$~QBluetoothServiceInfo[overload1]$$$~QBluetoothServiceInfo -->
<h3 class="fn"><a name="dtor.QBluetoothServiceInfo"></a>QBluetoothServiceInfo::<span class="name">~QBluetoothServiceInfo</span> ()</h3>
<p>Destroys the <a href="qbluetoothserviceinfo.html">QBluetoothServiceInfo</a> object.</p>
<!-- @@@~QBluetoothServiceInfo -->
<!-- $$$attribute[overload1]$$$attributequint16 -->
<h3 class="fn"><a name="attribute"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qvariant.html">QVariant</a></span> QBluetoothServiceInfo::<span class="name">attribute</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>attributeId</i> ) const</h3>
<p>Returns the value of the attribute <i>attributeId</i>.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#setAttribute">setAttribute</a>().</p>
<!-- @@@attribute -->
<!-- $$$attributes[overload1]$$$attributes -->
<h3 class="fn"><a name="attributes"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span>&gt; QBluetoothServiceInfo::<span class="name">attributes</span> () const</h3>
<p>Returns a list of all attribute ids that this service info has.</p>
<!-- @@@attributes -->
<!-- $$$contains[overload1]$$$containsquint16 -->
<h3 class="fn"><a name="contains"></a><span class="type">bool</span> QBluetoothServiceInfo::<span class="name">contains</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>attributeId</i> ) const</h3>
<p>Returns true if the service info contains the attribute <i>attributeId</i>; otherwise returns false.</p>
<!-- @@@contains -->
<!-- $$$device[overload1]$$$device -->
<h3 class="fn"><a name="device"></a><span class="type"><a href="qbluetoothdeviceinfo.html">QBluetoothDeviceInfo</a></span> QBluetoothServiceInfo::<span class="name">device</span> () const</h3>
<p>Returns the address of the Bluetooth device that provides this service.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#setDevice">setDevice</a>().</p>
<!-- @@@device -->
<!-- $$$isComplete[overload1]$$$isComplete -->
<h3 class="fn"><a name="isComplete"></a><span class="type">bool</span> QBluetoothServiceInfo::<span class="name">isComplete</span> () const</h3>
<p>Returns true if the Bluetooth service info object is considered complete; otherwise returns false.</p>
<p>A complete service info contains a <a href="qbluetoothserviceinfo.html#AttributeId-enum">ProtocolDescriptorList</a> attribute.</p>
<!-- @@@isComplete -->
<!-- $$$isRegistered[overload1]$$$isRegistered -->
<h3 class="fn"><a name="isRegistered"></a><span class="type">bool</span> QBluetoothServiceInfo::<span class="name">isRegistered</span> () const</h3>
<p>Returns true if the service info is registered with the platforms service discovery protocol (SDP) implementation; otherwise returns false.</p>
<!-- @@@isRegistered -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QBluetoothServiceInfo::<span class="name">isValid</span> () const</h3>
<p>Returns true if the Bluetooth service info object is valid; otherwise returns false.</p>
<p>An invalid Bluetooth service info has no attributes.</p>
<!-- @@@isValid -->
<!-- $$$protocolDescriptor[overload1]$$$protocolDescriptorQBluetoothUuid::ProtocolUuid -->
<h3 class="fn"><a name="protocolDescriptor"></a><span class="type"><a href="qbluetoothserviceinfo-sequence.html">QBluetoothServiceInfo::Sequence</a></span> QBluetoothServiceInfo::<span class="name">protocolDescriptor</span> ( <span class="type"><a href="qbluetoothuuid.html#ProtocolUuid-enum">QBluetoothUuid::ProtocolUuid</a></span> <i>protocol</i> ) const</h3>
<p>Returns the protocol parameters as a <a href="qbluetoothserviceinfo-sequence.html">QBluetoothServiceInfo::Sequence</a> for protocol <i>protocol</i>.</p>
<p>An empty <a href="qbluetoothserviceinfo-sequence.html">QBluetoothServiceInfo::Sequence</a> is returned if <i>protocol</i> is not supported.</p>
<!-- @@@protocolDescriptor -->
<!-- $$$protocolServiceMultiplexer[overload1]$$$protocolServiceMultiplexer -->
<h3 class="fn"><a name="protocolServiceMultiplexer"></a><span class="type">int</span> QBluetoothServiceInfo::<span class="name">protocolServiceMultiplexer</span> () const</h3>
<p>This is a convenience function. Returns the protocol/service multiplexer for services which support the L2CAP protocol. Otherwise returns -1.</p>
<p>This function is equivalent to extracting the information from the <a href="qbluetoothserviceinfo-sequence.html">QBluetoothServiceInfo::Sequence</a> returned from QBluetoothServiceInfo::attribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ProtocolDescriptorList</a>).</p>
<!-- @@@protocolServiceMultiplexer -->
<!-- $$$registerService[overload1]$$$registerService -->
<h3 class="fn"><a name="registerService"></a><span class="type">bool</span> QBluetoothServiceInfo::<span class="name">registerService</span> () const</h3>
<p>Registers this service with the platforms service discovery protocol (SDP) implementation, making it findable by other devices when they perform service discovery. Returns true if the service is successfully registered, otherwise returns false. Once registered changes to the record cannot be made. The service must be unregistered and registered.</p>
<!-- @@@registerService -->
<!-- $$$removeAttribute[overload1]$$$removeAttributequint16 -->
<h3 class="fn"><a name="removeAttribute"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">removeAttribute</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>attributeId</i> )</h3>
<p>Removes the attribute <i>attributeId</i> from this service info.</p>
<!-- @@@removeAttribute -->
<!-- $$$serverChannel[overload1]$$$serverChannel -->
<h3 class="fn"><a name="serverChannel"></a><span class="type">int</span> QBluetoothServiceInfo::<span class="name">serverChannel</span> () const</h3>
<p>This is a convenience function. Returns the server channel for services which support the RFCOMM protocol. Otherwise returns -1.</p>
<p>This function is equivalent to extracting the information from the <a href="qbluetoothserviceinfo-sequence.html">QBluetoothServiceInfo::Sequence</a> returned from QBluetoothServiceInfo::attribute(QBluetootherServiceInfo::ProtocolDescriptorList).</p>
<!-- @@@serverChannel -->
<!-- $$$serviceAvailability[overload1]$$$serviceAvailability -->
<h3 class="fn"><a name="serviceAvailability"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint8-typedef">quint8</a></span> QBluetoothServiceInfo::<span class="name">serviceAvailability</span> () const</h3>
<p>This is a convenience function. It is equivalent to calling attribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceAvailability</a>).toUInt().</p>
<p>Returns the availability of the service.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#setServiceAvailability">setServiceAvailability</a>() and <a href="qbluetoothserviceinfo.html#attribute">attribute</a>().</p>
<!-- @@@serviceAvailability -->
<!-- $$$serviceClassUuids[overload1]$$$serviceClassUuids -->
<h3 class="fn"><a name="serviceClassUuids"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qbluetoothuuid.html">QBluetoothUuid</a></span>&gt; QBluetoothServiceInfo::<span class="name">serviceClassUuids</span> () const</h3>
<p>This is a convenience function. It is equivalent to calling attribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceClassIds</a>).value&lt;<a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a>&lt;<a href="qbluetoothuuid.html">QBluetoothUuid</a>&gt; &gt;().</p>
<p>Returns a list of UUIDs describing the service classes that this service conforms to.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#attribute">attribute</a>().</p>
<!-- @@@serviceClassUuids -->
<!-- $$$serviceDescription[overload1]$$$serviceDescription -->
<h3 class="fn"><a name="serviceDescription"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QBluetoothServiceInfo::<span class="name">serviceDescription</span> () const</h3>
<p>This is a convenience function. It is equivalent to calling attribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceDescription</a>).toString().</p>
<p>Returns the service description in the primary language.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#setServiceDescription">setServiceDescription</a>() and <a href="qbluetoothserviceinfo.html#attribute">attribute</a>().</p>
<!-- @@@serviceDescription -->
<!-- $$$serviceName[overload1]$$$serviceName -->
<h3 class="fn"><a name="serviceName"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QBluetoothServiceInfo::<span class="name">serviceName</span> () const</h3>
<p>This is a convenience function. It is equivalent to calling attribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceName</a>).toString().</p>
<p>Returns the service name in the primary language.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#setServiceName">setServiceName</a>() and <a href="qbluetoothserviceinfo.html#attribute">attribute</a>().</p>
<!-- @@@serviceName -->
<!-- $$$serviceProvider[overload1]$$$serviceProvider -->
<h3 class="fn"><a name="serviceProvider"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QBluetoothServiceInfo::<span class="name">serviceProvider</span> () const</h3>
<p>This is a convenience function. It is equivalent to calling attribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceProvider</a>).toString().</p>
<p>Returns the service provider in the primary language.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#setServiceProvider">setServiceProvider</a>() and <a href="qbluetoothserviceinfo.html#attribute">attribute</a>().</p>
<!-- @@@serviceProvider -->
<!-- $$$serviceUuid[overload1]$$$serviceUuid -->
<h3 class="fn"><a name="serviceUuid"></a><span class="type"><a href="qbluetoothuuid.html">QBluetoothUuid</a></span> QBluetoothServiceInfo::<span class="name">serviceUuid</span> () const</h3>
<p>This is a convenience function. It is equivalent to calling attribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceId</a>).value&lt;<a href="qbluetoothuuid.html">QBluetoothUuid</a>&gt;().</p>
<p>Returns the UUID of the service.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#setServiceUuid">setServiceUuid</a>() and <a href="qbluetoothserviceinfo.html#attribute">attribute</a>().</p>
<!-- @@@serviceUuid -->
<!-- $$$setAttribute[overload1]$$$setAttributequint16constQVariant& -->
<h3 class="fn"><a name="setAttribute"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setAttribute</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>attributeId</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qvariant.html">QVariant</a></span> &amp; <i>value</i> )</h3>
<p>Sets the attribute identified by <i>attributeId</i> to <i>value</i>.</p>
<p>IF the service info is registered with the platforms SDP database the database entry is also updated.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#attribute">attribute</a>(), <a href="qbluetoothserviceinfo.html#isRegistered">isRegistered</a>(), and <a href="qbluetoothserviceinfo.html#registerService">registerService</a>().</p>
<!-- @@@setAttribute -->
<!-- $$$setAttribute$$$setAttributequint16constQBluetoothUuid& -->
<h3 class="fn"><a name="setAttribute-2"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setAttribute</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>attributeId</i>, const <span class="type"><a href="qbluetoothuuid.html">QBluetoothUuid</a></span> &amp; <i>value</i> )</h3>
<p>This is a convenience function.</p>
<p>Sets the attribute identified by <i>attributeId</i> to <i>value</i>.</p>
<!-- @@@setAttribute -->
<!-- $$$setAttribute$$$setAttributequint16constQBluetoothServiceInfo::Sequence& -->
<h3 class="fn"><a name="setAttribute-3"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setAttribute</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>attributeId</i>, const <span class="type"><a href="qbluetoothserviceinfo-sequence.html">QBluetoothServiceInfo::Sequence</a></span> &amp; <i>value</i> )</h3>
<p>This is a convenience function.</p>
<p>Sets the attribute identified by <i>attributeId</i> to <i>value</i>.</p>
<!-- @@@setAttribute -->
<!-- $$$setAttribute$$$setAttributequint16constQBluetoothServiceInfo::Alternative& -->
<h3 class="fn"><a name="setAttribute-4"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setAttribute</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>attributeId</i>, const <span class="type"><a href="qbluetoothserviceinfo-alternative.html">QBluetoothServiceInfo::Alternative</a></span> &amp; <i>value</i> )</h3>
<p>This is a convenience function.</p>
<p>Sets the attribute identified by <i>attributeId</i> to <i>value</i>.</p>
<!-- @@@setAttribute -->
<!-- $$$setDevice[overload1]$$$setDeviceconstQBluetoothDeviceInfo& -->
<h3 class="fn"><a name="setDevice"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setDevice</span> ( const <span class="type"><a href="qbluetoothdeviceinfo.html">QBluetoothDeviceInfo</a></span> &amp; <i>device</i> )</h3>
<p>Sets the Bluetooth device that provides this service to <i>device</i>.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#device">device</a>().</p>
<!-- @@@setDevice -->
<!-- $$$setServiceAvailability[overload1]$$$setServiceAvailabilityquint8 -->
<h3 class="fn"><a name="setServiceAvailability"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setServiceAvailability</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint8-typedef">quint8</a></span> <i>availability</i> )</h3>
<p>This is a convenience function. It is equivalent to calling setAttribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceAvailability</a>, availability).</p>
<p>Sets the availabiltiy of the service to <i>availability</i>.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#serviceAvailability">serviceAvailability</a>() and <a href="qbluetoothserviceinfo.html#setAttribute">setAttribute</a>().</p>
<!-- @@@setServiceAvailability -->
<!-- $$$setServiceDescription[overload1]$$$setServiceDescriptionconstQString& -->
<h3 class="fn"><a name="setServiceDescription"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setServiceDescription</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>description</i> )</h3>
<p>This is a convenience function. It is equivalent to calling setAttribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceDescription</a>, description).</p>
<p>Sets the service description in the primary language to <i>description</i>.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#serviceDescription">serviceDescription</a>() and <a href="qbluetoothserviceinfo.html#setAttribute">setAttribute</a>().</p>
<!-- @@@setServiceDescription -->
<!-- $$$setServiceName[overload1]$$$setServiceNameconstQString& -->
<h3 class="fn"><a name="setServiceName"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setServiceName</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>name</i> )</h3>
<p>This is a convenience function. It is equivalent to calling setAttribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceName</a>, name).</p>
<p>Sets the service name in the primary language to <i>name</i>.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#serviceName">serviceName</a>() and <a href="qbluetoothserviceinfo.html#setAttribute">setAttribute</a>().</p>
<!-- @@@setServiceName -->
<!-- $$$setServiceProvider[overload1]$$$setServiceProviderconstQString& -->
<h3 class="fn"><a name="setServiceProvider"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setServiceProvider</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>provider</i> )</h3>
<p>This is a convenience function. It is equivalent to calling setAttribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceProvider</a>, provider).</p>
<p>Sets the service provider in the primary language to <i>provider</i>.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#serviceProvider">serviceProvider</a>() and <a href="qbluetoothserviceinfo.html#setAttribute">setAttribute</a>().</p>
<!-- @@@setServiceProvider -->
<!-- $$$setServiceUuid[overload1]$$$setServiceUuidconstQBluetoothUuid& -->
<h3 class="fn"><a name="setServiceUuid"></a><span class="type">void</span> QBluetoothServiceInfo::<span class="name">setServiceUuid</span> ( const <span class="type"><a href="qbluetoothuuid.html">QBluetoothUuid</a></span> &amp; <i>uuid</i> )</h3>
<p>This is a convenience function. It is equivalent to calling setAttribute(<a href="qbluetoothserviceinfo.html#AttributeId-enum">QBluetoothServiceInfo::ServiceId</a>, uuid).</p>
<p>Sets the service UUID to <i>uuid</i>.</p>
<p><b>See also </b><a href="qbluetoothserviceinfo.html#serviceUuid">serviceUuid</a>() and <a href="qbluetoothserviceinfo.html#setAttribute">setAttribute</a>().</p>
<!-- @@@setServiceUuid -->
<!-- $$$socketProtocol[overload1]$$$socketProtocol -->
<h3 class="fn"><a name="socketProtocol"></a><span class="type"><a href="qbluetoothserviceinfo.html#Protocol-enum">QBluetoothServiceInfo::Protocol</a></span> QBluetoothServiceInfo::<span class="name">socketProtocol</span> () const</h3>
<p>Returns the protocol that this service uses.</p>
<!-- @@@socketProtocol -->
<!-- $$$unregisterService[overload1]$$$unregisterService -->
<h3 class="fn"><a name="unregisterService"></a><span class="type">bool</span> QBluetoothServiceInfo::<span class="name">unregisterService</span> () const</h3>
<p>Unregisters this service with the platforms service discovery protocol (SDP) implementation.</p>
<p>This service will not longer be findable by other devices via service discovery.</p>
<p>Returns true if the service is successfully unregistered, otherwise returns false.</p>
<!-- @@@unregisterService -->
<!-- $$$operator=[overload1]$$$operator=constQBluetoothServiceInfo& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QBluetoothServiceInfo</span> &amp; QBluetoothServiceInfo::<span class="name">operator=</span> ( const <span class="type">QBluetoothServiceInfo</span> &amp; <i>other</i> )</h3>
<p>Makes a copy of the <i>other</i> and assigns it to this <a href="qbluetoothserviceinfo.html">QBluetoothServiceInfo</a> object.</p>
<!-- @@@operator= -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
    Free Documentation License version 1.3</a>
    as published by the Free Software Foundation.</p>
</div>
</body>
</html>