1 #ifndef amqp_exchange_h__
2 #define amqp_exchange_h__
4 #include "amqp_channel.h"
10 class ExchangePrivate;
12 using namespace QAMQP::Frame;
18 Q_PROPERTY(QString type READ type);
19 Q_PROPERTY(ExchangeOptions option READ option );
23 friend class ClientPrivate;
38 Q_DECLARE_FLAGS(ExchangeOptions, ExchangeOption)
43 ExchangeOptions option()
const;
45 void declare(
const QString &type = QString::fromLatin1(
"direct"), ExchangeOptions option = NoOptions,
const TableField & arg = TableField());
46 void remove(
bool ifUnused =
true,
bool noWait =
true);
49 void bind(
const QString & queueName);
50 void bind(
const QString & queueName,
const QString &key);
52 void publish(
const QString & message,
const QString & key);
53 void publish(
const QByteArray & message,
const QString & key,
const QString &mimeType);
54 void publish(
const QByteArray & message,
const QString & key,
const QVariantHash &headers,
const QString &mimeType);
62 Q_DECLARE_OPERATORS_FOR_FLAGS(QAMQP::Exchange::ExchangeOptions)
63 #endif // amqp_exchange_h__