summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/bluetooth/btchat/chatclient.cpp2
-rw-r--r--examples/bluetooth/btchat/chatserver.cpp2
-rw-r--r--examples/bluetooth/bttennis/tennisclient.cpp2
-rw-r--r--examples/bluetooth/bttennis/tennisserver.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/bluetooth/btchat/chatclient.cpp b/examples/bluetooth/btchat/chatclient.cpp
index 30e36b06..b6ba7c52 100644
--- a/examples/bluetooth/btchat/chatclient.cpp
+++ b/examples/bluetooth/btchat/chatclient.cpp
@@ -59,7 +59,7 @@ void ChatClient::startClient(const QBluetoothServiceInfo &remoteService)
return;
// Connect to service
- socket = new QBluetoothSocket(QBluetoothSocket::RfcommSocket);
+ socket = new QBluetoothSocket(QBluetoothServiceInfo::RfcommProtocol);
qDebug() << "Create socket";
socket->connectToService(remoteService);
qDebug() << "ConnecttoService done";
diff --git a/examples/bluetooth/btchat/chatserver.cpp b/examples/bluetooth/btchat/chatserver.cpp
index ca7023f1..863078fc 100644
--- a/examples/bluetooth/btchat/chatserver.cpp
+++ b/examples/bluetooth/btchat/chatserver.cpp
@@ -63,7 +63,7 @@ void ChatServer::startServer()
return;
//! [Create the server]
- rfcommServer = new QBluetoothServer(QBluetoothServer::RfcommServer, this);
+ rfcommServer = new QBluetoothServer(QBluetoothServiceInfo::RfcommProtocol, this);
connect(rfcommServer, SIGNAL(newConnection()), this, SLOT(clientConnected()));
rfcommServer->listen();
//! [Create the server]
diff --git a/examples/bluetooth/bttennis/tennisclient.cpp b/examples/bluetooth/bttennis/tennisclient.cpp
index 01b30820..080c3a07 100644
--- a/examples/bluetooth/bttennis/tennisclient.cpp
+++ b/examples/bluetooth/bttennis/tennisclient.cpp
@@ -69,7 +69,7 @@ void TennisClient::startClient(const QBluetoothServiceInfo &remoteService)
serviceInfo = remoteService;
// Connect to service
- socket = new QBluetoothSocket(QBluetoothSocket::L2capSocket);
+ socket = new QBluetoothSocket(QBluetoothServiceInfo::L2capProtocol);
qDebug() << "Create socket";
socket->connectToService(remoteService);
qDebug() << "ConnecttoService done";
diff --git a/examples/bluetooth/bttennis/tennisserver.cpp b/examples/bluetooth/bttennis/tennisserver.cpp
index 853b14ac..be6a0370 100644
--- a/examples/bluetooth/bttennis/tennisserver.cpp
+++ b/examples/bluetooth/bttennis/tennisserver.cpp
@@ -74,7 +74,7 @@ void TennisServer::startServer()
return;
//! [Create the server]
- l2capServer = new QBluetoothServer(QBluetoothServer::L2capServer, this);
+ l2capServer = new QBluetoothServer(QBluetoothServiceInfo::L2capProtocol, this);
connect(l2capServer, SIGNAL(newConnection()), this, SLOT(clientConnected()));
l2capServer->listen();
//! [Create the server]