2014-05-29 01:52:27 +08:00
|
|
|
#ifndef amqp_message_h__
|
|
|
|
|
#define amqp_message_h__
|
|
|
|
|
|
2014-05-29 00:25:28 +08:00
|
|
|
#include <QByteArray>
|
|
|
|
|
#include <QHash>
|
2014-06-06 03:34:08 +08:00
|
|
|
#include <QExplicitlySharedDataPointer>
|
2014-05-29 00:25:28 +08:00
|
|
|
|
2014-05-29 03:33:15 +08:00
|
|
|
#include "amqp_frame.h"
|
|
|
|
|
#include "amqp_global.h"
|
|
|
|
|
|
2014-05-29 00:25:28 +08:00
|
|
|
namespace QAMQP
|
|
|
|
|
{
|
|
|
|
|
|
2014-06-06 03:34:08 +08:00
|
|
|
class MessagePrivate;
|
|
|
|
|
class QAMQP_EXPORT Message
|
2014-05-29 00:25:28 +08:00
|
|
|
{
|
2014-06-06 03:34:08 +08:00
|
|
|
public:
|
2014-05-29 00:25:28 +08:00
|
|
|
Message();
|
2014-06-06 03:34:08 +08:00
|
|
|
Message(const Message &other);
|
|
|
|
|
Message &operator=(const Message &other);
|
|
|
|
|
~Message();
|
2014-05-29 00:25:28 +08:00
|
|
|
|
2014-06-06 03:34:08 +08:00
|
|
|
qlonglong deliveryTag() const;
|
|
|
|
|
bool redelivered() const;
|
|
|
|
|
QString exchangeName() const;
|
|
|
|
|
QString routingKey() const;
|
|
|
|
|
QByteArray payload() const;
|
2014-06-10 21:16:04 +08:00
|
|
|
MessageProperties properties() const;
|
2014-06-06 03:34:08 +08:00
|
|
|
Frame::TableField headers() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QExplicitlySharedDataPointer<MessagePrivate> d;
|
|
|
|
|
friend class QueuePrivate;
|
|
|
|
|
friend class Queue;
|
2014-05-29 00:25:28 +08:00
|
|
|
|
2014-06-06 03:34:08 +08:00
|
|
|
};
|
2014-05-29 01:52:27 +08:00
|
|
|
|
|
|
|
|
} // namespace QAMQP
|
2014-05-29 00:25:28 +08:00
|
|
|
|
2014-05-29 01:52:27 +08:00
|
|
|
#endif // amqp_message_h__
|