style fixes
This commit is contained in:
parent
477cca3d69
commit
4aa8397f2a
|
|
@ -12,9 +12,8 @@ namespace QAMQP
|
|||
|
||||
class Exchange;
|
||||
class Queue;
|
||||
class ClientPrivate;
|
||||
class Authenticator;
|
||||
class ConnectionPrivate;
|
||||
class ClientPrivate;
|
||||
class QAMQP_EXPORT Client : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ Type Base::type() const
|
|||
}
|
||||
|
||||
Base::~Base()
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
void Base::setChannel(qint16 channel)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -143,11 +143,14 @@ void Network::readyRead()
|
|||
|
||||
void Network::sendFrame(const Frame::Base &frame)
|
||||
{
|
||||
if (socket_->state() == QAbstractSocket::ConnectedState) {
|
||||
if (socket_->state() != QAbstractSocket::ConnectedState) {
|
||||
qDebug() << Q_FUNC_INFO << "socket not connected: " << socket_->state();
|
||||
return;
|
||||
}
|
||||
|
||||
QDataStream stream(socket_);
|
||||
frame.toStream(stream);
|
||||
}
|
||||
}
|
||||
|
||||
bool Network::isSsl() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@ public:
|
|||
~Network();
|
||||
|
||||
void disconnect();
|
||||
void sendFrame();
|
||||
|
||||
void sendFrame(const Frame::Base &frame);
|
||||
|
||||
bool isSsl() const;
|
||||
|
|
@ -41,7 +39,7 @@ public:
|
|||
void addContentHandlerForChannel(Channel channel, Frame::ContentHandler *pHandler);
|
||||
void addContentBodyHandlerForChannel(Channel channel, Frame::ContentBodyHandler *pHandler);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void connectTo(const QString &host = QString(), quint16 port = 0);
|
||||
void error(QAbstractSocket::SocketError socketError);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue