QAmqpTable arguments derives from channel private.

This commit is contained in:
laboratorio 2016-02-04 16:31:10 +01:00
parent 9d567c4aff
commit 20c9d69875
4 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
#include <QPointer> #include <QPointer>
#include "qamqpframe_p.h" #include "qamqpframe_p.h"
#include "qamqptable.h"
#define METHOD_ID_ENUM(name, id) name = id, name ## Ok #define METHOD_ID_ENUM(name, id) name = id, name ## Ok
@ -77,6 +78,7 @@ public:
Q_DECLARE_PUBLIC(QAmqpChannel) Q_DECLARE_PUBLIC(QAmqpChannel)
QAmqpChannel * const q_ptr; QAmqpChannel * const q_ptr;
QAmqpTable arguments;
}; };
#endif // QAMQPCHANNEL_P_H #endif // QAMQPCHANNEL_P_H

View File

@ -34,7 +34,6 @@ public:
QString type; QString type;
QAmqpExchange::ExchangeOptions options; QAmqpExchange::ExchangeOptions options;
QAmqpTable arguments;
bool delayedDeclare; bool delayedDeclare;
bool declared; bool declared;
qlonglong nextDeliveryTag; qlonglong nextDeliveryTag;

View File

@ -328,7 +328,7 @@ int QAmqpQueue::options() const
return d->options; return d->options;
} }
void QAmqpQueue::declare(int options, const QAmqpTable arguments) void QAmqpQueue::declare(int options, const QAmqpTable &arguments)
{ {
Q_D(QAmqpQueue); Q_D(QAmqpQueue);
d->options = options; d->options = options;

View File

@ -89,7 +89,7 @@ Q_SIGNALS:
public Q_SLOTS: public Q_SLOTS:
// AMQP Queue // AMQP Queue
void declare(int options = Durable|AutoDelete, const QAmqpTable& arguments); void declare(int options = Durable|AutoDelete, const QAmqpTable &arguments = QAmqpTable());
void bind(const QString &exchangeName, const QString &key); void bind(const QString &exchangeName, const QString &key);
void bind(QAmqpExchange *exchange, const QString &key); void bind(QAmqpExchange *exchange, const QString &key);
void unbind(const QString &exchangeName, const QString &key); void unbind(const QString &exchangeName, const QString &key);