2014-05-29 01:05:51 +08:00
|
|
|
#ifndef amqp_client_p_h__
|
|
|
|
|
#define amqp_client_p_h__
|
2014-05-29 00:25:28 +08:00
|
|
|
|
|
|
|
|
#include <QSharedPointer>
|
|
|
|
|
|
|
|
|
|
#include "amqp_network.h"
|
|
|
|
|
#include "amqp_authenticator.h"
|
|
|
|
|
|
|
|
|
|
namespace QAMQP
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
class Queue;
|
|
|
|
|
class Exchange;
|
2014-06-03 23:50:24 +08:00
|
|
|
class Connection;
|
2014-05-29 00:25:28 +08:00
|
|
|
class ClientPrivate
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ClientPrivate(Client *q);
|
|
|
|
|
~ClientPrivate();
|
|
|
|
|
|
2014-05-30 23:12:09 +08:00
|
|
|
void init(const QUrl &connectionString = QUrl());
|
2014-05-29 00:25:28 +08:00
|
|
|
void connect();
|
|
|
|
|
void disconnect();
|
2014-05-30 23:12:09 +08:00
|
|
|
void parseConnectionString(const QUrl &connectionString);
|
2014-05-29 00:25:28 +08:00
|
|
|
|
|
|
|
|
quint32 port;
|
|
|
|
|
QString host;
|
|
|
|
|
QString virtualHost;
|
|
|
|
|
|
2014-05-29 04:28:45 +08:00
|
|
|
QPointer<Network> network_;
|
|
|
|
|
QPointer<Connection> connection_;
|
2014-05-29 00:25:28 +08:00
|
|
|
QSharedPointer<Authenticator> auth_;
|
|
|
|
|
|
|
|
|
|
bool isSSl() const;
|
|
|
|
|
|
|
|
|
|
Client * const q_ptr;
|
2014-05-29 04:28:45 +08:00
|
|
|
Q_DECLARE_PUBLIC(Client)
|
2014-05-29 00:25:28 +08:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
2014-05-29 01:52:27 +08:00
|
|
|
} // namespace QAMQP
|
|
|
|
|
|
2014-05-29 01:05:51 +08:00
|
|
|
#endif // amqp_client_p_h__
|