Skip to content

Commit

Permalink
Add message headers getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelien ALBERT committed May 19, 2016
1 parent aa2b989 commit bffc945
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qamqpmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 108,11 @@ QVariant QAmqpMessage::header(const QString &header, const QVariant &defaultValu
return d->headers.value(header, defaultValue);
}

const QHash<QString, QVariant>& QAmqpMessage::headers() const
{
return d->headers;
}

#if QT_VERSION < 0x050000
bool QAmqpMessage::isDetached() const
{
Expand Down
1 change: 1 addition & 0 deletions src/qamqpmessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 67,7 @@ class QAMQP_EXPORT QAmqpMessage
bool hasHeader(const QString &header) const;
void setHeader(const QString &header, const QVariant &value);
QVariant header(const QString &header, const QVariant &defaultValue = QVariant()) const;
const QHash<QString, QVariant>& headers() const;

bool isValid() const;
bool isRedelivered() const;
Expand Down

0 comments on commit bffc945

Please sign in to comment.