~ubuntu-branches/ubuntu/wily/qtconnectivity-opensource-src/wily

« back to all changes in this revision

Viewing changes to src/bluetooth/qbluetoothdevicediscoveryagent.cpp

  • Committer: Package Import Robot
  • Author(s): Lisandro Damián Nicanor Pérez Meyer, Timo Jyrinki
  • Date: 2014-02-23 00:01:49 UTC
  • mfrom: (0.1.3 experimental) (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140223000149-ht3k3x21dr5n5dol
Tags: 5.2.1-1
[ Timo Jyrinki ]
* New upstream release
* Move mkspecs to the new location
* Make private headers cleaning non version specific
* Add examples package
* Add dependencies to build against the 5.2.1 versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include "qbluetoothdevicediscoveryagent.h"
43
43
#include "qbluetoothdevicediscoveryagent_p.h"
44
44
 
45
 
QT_BEGIN_NAMESPACE_BLUETOOTH
 
45
QT_BEGIN_NAMESPACE
46
46
 
47
47
/*!
48
48
    \class QBluetoothDeviceDiscoveryAgent
69
69
    Indicates all possible error conditions found during Bluetooth device discovery.
70
70
 
71
71
    \value NoError          No error has occurred.
72
 
    \value PoweredOff       The Bluetooth adaptor is powered off, power it on before doing discovery.
73
 
    \value IOFailure        Writing or reading from the device resulted in an error.
 
72
    \value PoweredOffError  The Bluetooth adaptor is powered off, power it on before doing discovery.
 
73
    \value InputOutputError    Writing or reading from the device resulted in an error.
74
74
    \value UnknownError     An unknown error has occurred.
75
75
*/
76
76
 
128
128
    Constructs a new Bluetooth device discovery agent with parent \a parent.
129
129
*/
130
130
QBluetoothDeviceDiscoveryAgent::QBluetoothDeviceDiscoveryAgent(QObject *parent)
131
 
: QObject(parent), d_ptr(new QBluetoothDeviceDiscoveryAgentPrivate)
 
131
    : QObject(parent), d_ptr(new QBluetoothDeviceDiscoveryAgentPrivate(QBluetoothAddress()))
 
132
{
 
133
    d_ptr->q_ptr = this;
 
134
}
 
135
 
 
136
/*!
 
137
    Constructs a new Bluetooth device discovery agent with parent \a parent and uses the adapter \a deviceAdapter
 
138
    for the device search. If \a deviceAdapter is default constructed the resulting
 
139
    QBluetoothDeviceDiscoveryAgent object will use the local default Bluetooth adapter.
 
140
*/
 
141
QBluetoothDeviceDiscoveryAgent::QBluetoothDeviceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent)
 
142
    : QObject(parent), d_ptr(new QBluetoothDeviceDiscoveryAgentPrivate(deviceAdapter))
132
143
{
133
144
    d_ptr->q_ptr = this;
134
145
}
228
239
 
229
240
#include "moc_qbluetoothdevicediscoveryagent.cpp"
230
241
 
231
 
QT_END_NAMESPACE_BLUETOOTH
 
242
QT_END_NAMESPACE
232
243