1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Contact: https://www.qt.io/licensing/
5**
6** This file is part of the QtNfc module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see https://www.qt.io/terms-conditions. For further
15** information use the contact form at https://www.qt.io/contact-us.
16**
17** GNU Lesser General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU Lesser
19** General Public License version 3 as published by the Free Software
20** Foundation and appearing in the file LICENSE.LGPL3 included in the
21** packaging of this file. Please review the following information to
22** ensure the GNU Lesser General Public License version 3 requirements
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
24**
25** GNU General Public License Usage
26** Alternatively, this file may be used under the terms of the GNU
27** General Public License version 2.0 or (at your option) the GNU General
28** Public license version 3 or any later version approved by the KDE Free
29** Qt Foundation. The licenses are as published by the Free Software
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
31** included in the packaging of this file. Please review the following
32** information to ensure the GNU General Public License requirements will
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34** https://www.gnu.org/licenses/gpl-3.0.html.
35**
36** $QT_END_LICENSE$
37**
38****************************************************************************/
39
40#include "qllcpsocket_p_p.h"
41
42QT_BEGIN_NAMESPACE
43
44QLlcpSocketPrivate::QLlcpSocketPrivate(QLlcpSocket *q)
45: q_ptr(q)
46{
47}
48
49QLlcpSocketPrivate::~QLlcpSocketPrivate()
50{
51
52}
53
54void QLlcpSocketPrivate::connectToService(QNearFieldTarget *target, const QString &serviceUri)
55{
56 Q_UNUSED(target);
57 Q_UNUSED(serviceUri);
58}
59
60void QLlcpSocketPrivate::disconnectFromService()
61{
62}
63
64bool QLlcpSocketPrivate::bind(quint8 port)
65{
66 Q_UNUSED(port);
67
68 return false;
69}
70
71bool QLlcpSocketPrivate::hasPendingDatagrams() const
72{
73 return false;
74}
75
76qint64 QLlcpSocketPrivate::pendingDatagramSize() const
77{
78 return -1;
79}
80
81qint64 QLlcpSocketPrivate::writeDatagram(const char *data, qint64 size)
82{
83 Q_UNUSED(data);
84 Q_UNUSED(size);
85
86 return -1;
87}
88
89qint64 QLlcpSocketPrivate::writeDatagram(const QByteArray &datagram)
90{
91 Q_UNUSED(datagram);
92
93 return -1;
94}
95
96qint64 QLlcpSocketPrivate::readDatagram(char *data, qint64 maxSize,
97 QNearFieldTarget **target, quint8 *port)
98{
99 Q_UNUSED(data);
100 Q_UNUSED(maxSize);
101 Q_UNUSED(target);
102 Q_UNUSED(port);
103
104 return -1;
105}
106
107qint64 QLlcpSocketPrivate::writeDatagram(const char *data, qint64 size,
108 QNearFieldTarget *target, quint8 port)
109{
110 Q_UNUSED(data);
111 Q_UNUSED(size);
112 Q_UNUSED(target);
113 Q_UNUSED(port);
114
115 return -1;
116}
117
118qint64 QLlcpSocketPrivate::writeDatagram(const QByteArray &datagram,
119 QNearFieldTarget *target, quint8 port)
120{
121 Q_UNUSED(datagram);
122 Q_UNUSED(target);
123 Q_UNUSED(port);
124
125 return -1;
126}
127
128QLlcpSocket::SocketError QLlcpSocketPrivate::error() const
129{
130 return QLlcpSocket::UnknownSocketError;
131}
132
133QLlcpSocket::SocketState QLlcpSocketPrivate::state() const
134{
135 return QLlcpSocket::UnconnectedState;
136}
137
138qint64 QLlcpSocketPrivate::readData(char *data, qint64 maxlen)
139{
140 Q_UNUSED(data);
141 Q_UNUSED(maxlen);
142
143 return -1;
144}
145
146qint64 QLlcpSocketPrivate::writeData(const char *data, qint64 len)
147{
148 Q_UNUSED(data);
149 Q_UNUSED(len);
150
151 return -1;
152}
153
154qint64 QLlcpSocketPrivate::bytesAvailable() const
155{
156 return 0;
157}
158
159bool QLlcpSocketPrivate::canReadLine() const
160{
161 return false;
162}
163
164bool QLlcpSocketPrivate::waitForReadyRead(int msecs)
165{
166 Q_UNUSED(msecs);
167
168 return false;
169}
170
171bool QLlcpSocketPrivate::waitForBytesWritten(int msecs)
172{
173 Q_UNUSED(msecs);
174
175 return false;
176}
177
178bool QLlcpSocketPrivate::waitForConnected(int msecs)
179{
180 Q_UNUSED(msecs);
181
182 return false;
183}
184
185bool QLlcpSocketPrivate::waitForDisconnected(int msecs)
186{
187 Q_UNUSED(msecs);
188
189 return false;
190}
191
192QT_END_NAMESPACE
193

source code of qtconnectivity/src/nfc/qllcpsocket_p.cpp