From 2ad1a5da3732b280d9b780313969bef4da05f113 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 21 Aug 2009 21:19:22 +0000 Subject: Implemented the new QMF ConnectionSettings and incorporated into the bindings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@806725 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qmf/Connection.h | 2 ++ cpp/include/qmf/ConnectionSettings.h | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'cpp/include') diff --git a/cpp/include/qmf/Connection.h b/cpp/include/qmf/Connection.h index b910cdad19..f648b1427f 100644 --- a/cpp/include/qmf/Connection.h +++ b/cpp/include/qmf/Connection.h @@ -47,6 +47,8 @@ namespace qmf { /** * Called each time the state of the connection changes. + * + * @param state the new state */ virtual void newState(ConnectionState state); diff --git a/cpp/include/qmf/ConnectionSettings.h b/cpp/include/qmf/ConnectionSettings.h index 53a83dfd2a..9bd6922a56 100644 --- a/cpp/include/qmf/ConnectionSettings.h +++ b/cpp/include/qmf/ConnectionSettings.h @@ -21,6 +21,7 @@ */ #include "qmf/QmfImportExport.h" +#include "qpid/sys/IntegerTypes.h" namespace qmf { @@ -35,6 +36,8 @@ namespace qmf { class ConnectionSettings { public: + ConnectionSettings(const ConnectionSettings& copy); + /** * Create a set of default connection settings. * @@ -79,8 +82,10 @@ namespace qmf { * Get the value of an attribute. * * @param key A null-terminated attribute name. + * + * @return The value associated with the attribute name. */ - QMF_EXTERN const Value& getAttr(const char* key) const; + QMF_EXTERN Value getAttr(const char* key) const; /** * Get the attribute string (the portion of the URL following the '?') for the settings. @@ -129,6 +134,7 @@ namespace qmf { QMF_EXTERN void setRetry(int delayMin = 1, int delayMax = 128, int delayFactor = 2); private: + friend class ResilientConnectionImpl; ConnectionSettingsImpl* impl; }; -- cgit v1.2.1