rename customProperty -> customProperties
This commit is contained in:
parent
e9dcb18c44
commit
80ba14136b
|
|
@ -348,7 +348,7 @@ void ClientPrivate::startOk()
|
||||||
clientProperties["version"] = QString(QAMQP_VERSION);
|
clientProperties["version"] = QString(QAMQP_VERSION);
|
||||||
clientProperties["platform"] = QString("Qt %1").arg(qVersion());
|
clientProperties["platform"] = QString("Qt %1").arg(qVersion());
|
||||||
clientProperties["product"] = QString("QAMQP");
|
clientProperties["product"] = QString("QAMQP");
|
||||||
clientProperties.unite(customProperty);
|
clientProperties.unite(customProperties);
|
||||||
Frame::serialize(stream, clientProperties);
|
Frame::serialize(stream, clientProperties);
|
||||||
|
|
||||||
authenticator->write(stream);
|
authenticator->write(stream);
|
||||||
|
|
@ -591,13 +591,13 @@ void Client::setAutoReconnect(bool value)
|
||||||
void Client::addCustomProperty(const QString &name, const QString &value)
|
void Client::addCustomProperty(const QString &name, const QString &value)
|
||||||
{
|
{
|
||||||
Q_D(Client);
|
Q_D(Client);
|
||||||
d->customProperty.insert(name, value);
|
d->customProperties.insert(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Client::customProperty(const QString &name) const
|
QString Client::customProperty(const QString &name) const
|
||||||
{
|
{
|
||||||
Q_D(const Client);
|
Q_D(const Client);
|
||||||
return d->customProperty.value(name).toString();
|
return d->customProperties.value(name).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::connectToHost(const QString &connectionString)
|
void Client::connectToHost(const QString &connectionString)
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ public:
|
||||||
bool closed;
|
bool closed;
|
||||||
bool connected;
|
bool connected;
|
||||||
QPointer<QTimer> heartbeatTimer;
|
QPointer<QTimer> heartbeatTimer;
|
||||||
Frame::TableField customProperty;
|
Frame::TableField customProperties;
|
||||||
|
|
||||||
Client * const q_ptr;
|
Client * const q_ptr;
|
||||||
Q_DECLARE_PUBLIC(Client)
|
Q_DECLARE_PUBLIC(Client)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue