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

« back to all changes in this revision

Viewing changes to src/bluetooth/qbluetoothtransfermanager.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:
41
41
 
42
42
#include "qbluetoothtransfermanager.h"
43
43
#include "qbluetoothtransferrequest.h"
 
44
#include "qbluetoothtransferreply.h"
 
45
#ifdef QT_BLUEZ_BLUETOOTH
 
46
#include "qbluetoothtransferreply_bluez_p.h"
 
47
#elif QT_QNX_BLUETOOTH
 
48
#include "qbluetoothtransferreply_qnx_p.h"
 
49
#else
 
50
#endif
44
51
 
45
 
QT_BEGIN_NAMESPACE_BLUETOOTH
 
52
QT_BEGIN_NAMESPACE
46
53
 
47
54
/*!
48
55
    \class QBluetoothTransferManager
83
90
{
84
91
}
85
92
 
 
93
QBluetoothTransferReply *QBluetoothTransferManager::put(const QBluetoothTransferRequest &request,
 
94
                                                        QIODevice *data)
 
95
{
 
96
#ifdef QT_BLUEZ_BLUETOOTH
 
97
    QBluetoothTransferReplyBluez *rep = new QBluetoothTransferReplyBluez(data, request, this);
 
98
    connect(rep, SIGNAL(finished(QBluetoothTransferReply*)), this, SIGNAL(finished(QBluetoothTransferReply*)));
 
99
    return rep;
 
100
#elif QT_QNX_BLUETOOTH
 
101
    QBluetoothTransferReplyQnx *reply = new QBluetoothTransferReplyQnx(data, request, this);
 
102
    connect(reply, SIGNAL(finished(QBluetoothTransferReply*)), this, SIGNAL(finished(QBluetoothTransferReply*)));
 
103
    return reply;
 
104
#else
 
105
    Q_UNUSED(request);
 
106
    Q_UNUSED(data);
 
107
    return 0;
 
108
#endif
 
109
}
86
110
#include "moc_qbluetoothtransfermanager.cpp"
87
111
 
88
 
QT_END_NAMESPACE_BLUETOOTH
 
112
QT_END_NAMESPACE