diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-09-10 16:56:28 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-16 09:36:21 +0200 |
commit | 2c5400e0080e7574d048c10e12b308bb1fbade56 (patch) | |
tree | 7baad2f6ca0cb16f3a06fc851bd2b07763da5dac /src/nfc/qllcpserver_p.h | |
parent | e31271a184fe06da8be6cd745a55a6950466d425 (diff) |
Remove LLCP from the public API
QLLCPServer does not work properly yet on BlackBerry so I would want to wait committing to this API till we have a backend that is working properly.
Change-Id: I62cbe9dae00ed47377086e4c8522298b4c9fa5a4
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/nfc/qllcpserver_p.h')
-rw-r--r-- | src/nfc/qllcpserver_p.h | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/src/nfc/qllcpserver_p.h b/src/nfc/qllcpserver_p.h index 00b4c3ac..5d72f558 100644 --- a/src/nfc/qllcpserver_p.h +++ b/src/nfc/qllcpserver_p.h @@ -39,22 +39,37 @@ ** ****************************************************************************/ -#ifndef QLLCPSERVER_P_H -#define QLLCPSERVER_P_H +#ifndef QLLCPSERVER_H +#define QLLCPSERVER_H -#include "qnfcglobal.h" +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// -#include "qllcpserver.h" +#include <QtCore/QObject> +#include <QtNfc/qnfcglobal.h> +#include "qllcpsocket_p.h" QT_BEGIN_NAMESPACE -class QLlcpServerPrivate +class QLlcpServerPrivate; + +class Q_NFC_EXPORT QLlcpServer : public QObject { - Q_DECLARE_PUBLIC(QLlcpServer) + Q_OBJECT + + Q_DECLARE_PRIVATE(QLlcpServer) public: - QLlcpServerPrivate(QLlcpServer *q); - ~QLlcpServerPrivate(); + explicit QLlcpServer(QObject *parent = 0); + virtual ~QLlcpServer(); bool listen(const QString &serviceUri); bool isListening() const; @@ -64,15 +79,18 @@ public: QString serviceUri() const; quint8 serverPort() const; - bool hasPendingConnections() const; - QLlcpSocket *nextPendingConnection(); + virtual bool hasPendingConnections() const; + virtual QLlcpSocket *nextPendingConnection(); QLlcpSocket::SocketError serverError() const; +Q_SIGNALS: + void newConnection(); + private: - QLlcpServer *q_ptr; + QLlcpServerPrivate *d_ptr; }; QT_END_NAMESPACE -#endif // QLLCPSERVER_P_H +#endif // QLLCPSERVER_H |