summaryrefslogtreecommitdiffstats
path: root/src/imports/bluetooth/qdeclarativebluetoothservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/bluetooth/qdeclarativebluetoothservice.cpp')
-rw-r--r--src/imports/bluetooth/qdeclarativebluetoothservice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/bluetooth/qdeclarativebluetoothservice.cpp b/src/imports/bluetooth/qdeclarativebluetoothservice.cpp
index 0d5d0e68..7180be7b 100644
--- a/src/imports/bluetooth/qdeclarativebluetoothservice.cpp
+++ b/src/imports/bluetooth/qdeclarativebluetoothservice.cpp
@@ -350,12 +350,12 @@ int QDeclarativeBluetoothServicePrivate::listen() {
qWarning() << "Unknown protocol, can't make service" << m_protocol;
return -1;
}
- QBluetoothServer::ServerType serverType;
+ QBluetoothServiceInfo::Protocol serverType;
if (m_protocol == "l2cap") {
- serverType = QBluetoothServer::L2capServer;
+ serverType = QBluetoothServiceInfo::L2capProtocol;
}
else if (m_protocol == "rfcomm") {
- serverType = QBluetoothServer::RfcommServer;
+ serverType = QBluetoothServiceInfo::RfcommProtocol;
}
QBluetoothServer *server = new QBluetoothServer(serverType);