diff --git a/src/qamqp/amqp_connection.cpp b/src/qamqp/amqp_connection.cpp index a224d83..aba0760 100644 --- a/src/qamqp/amqp_connection.cpp +++ b/src/qamqp/amqp_connection.cpp @@ -59,7 +59,7 @@ void ConnectionPrivate::startOk() QDataStream stream(&arguments_, QIODevice::WriteOnly); QAMQP::Frame::TableField clientProperties; - clientProperties["version"] = QString("0.0.3"); + clientProperties["version"] = QString(QAMQP_VERSION); clientProperties["platform"] = QString("Qt %1").arg(qVersion()); clientProperties["product"] = QString("QAMQP"); QAMQP::Frame::serialize(stream, clientProperties); diff --git a/src/qamqp/amqp_global.h b/src/qamqp/amqp_global.h index e3d29c1..6270f53 100644 --- a/src/qamqp/amqp_global.h +++ b/src/qamqp/amqp_global.h @@ -13,6 +13,10 @@ #define AMQPPSWD "guest" #define FRAME_MAX 131072 +#define QAMQP_VERSION "0.1.0" + + + #define AMQP_CONNECTION_FORCED 320 #define P_DECLARE_PRIVATE(Class) \