diff options
Diffstat (limited to 'examples/bluetooth/btchat/chatserver.h')
-rw-r--r-- | examples/bluetooth/btchat/chatserver.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/bluetooth/btchat/chatserver.h b/examples/bluetooth/btchat/chatserver.h index f7117b74..c4191db8 100644 --- a/examples/bluetooth/btchat/chatserver.h +++ b/examples/bluetooth/btchat/chatserver.h @@ -51,11 +51,10 @@ #ifndef CHATSERVER_H #define CHATSERVER_H -#include <qbluetoothserviceinfo.h> -#include <qbluetoothaddress.h> +#include <QtCore/qobject.h> -#include <QtCore/QObject> -#include <QtCore/QList> +#include <QtBluetooth/qbluetoothaddress.h> +#include <QtBluetooth/qbluetoothserviceinfo.h> QT_FORWARD_DECLARE_CLASS(QBluetoothServer) QT_FORWARD_DECLARE_CLASS(QBluetoothSocket) @@ -68,7 +67,7 @@ class ChatServer : public QObject Q_OBJECT public: - explicit ChatServer(QObject *parent = 0); + explicit ChatServer(QObject *parent = nullptr); ~ChatServer(); void startServer(const QBluetoothAddress &localAdapter = QBluetoothAddress()); @@ -88,7 +87,7 @@ private slots: void readSocket(); private: - QBluetoothServer *rfcommServer; + QBluetoothServer *rfcommServer = nullptr; QBluetoothServiceInfo serviceInfo; QList<QBluetoothSocket *> clientSockets; }; |