diff options
| author | Ted Ross <tross@apache.org> | 2009-08-21 21:19:22 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-08-21 21:19:22 +0000 |
| commit | 95931ede08d91630c1cb8b1d3c3ca2d22079e4ba (patch) | |
| tree | 62bf28863cb08958e735f3f7f26d6ae6af93e18a /qpid/cpp/include | |
| parent | 9f47dd256ecab2e710c3ac33e057404a1f504b04 (diff) | |
| download | qpid-python-95931ede08d91630c1cb8b1d3c3ca2d22079e4ba.tar.gz | |
Implemented the new QMF ConnectionSettings and incorporated into the bindings.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@806725 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qmf/Connection.h | 2 | ||||
| -rw-r--r-- | qpid/cpp/include/qmf/ConnectionSettings.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/qpid/cpp/include/qmf/Connection.h b/qpid/cpp/include/qmf/Connection.h index b910cdad19..f648b1427f 100644 --- a/qpid/cpp/include/qmf/Connection.h +++ b/qpid/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/qpid/cpp/include/qmf/ConnectionSettings.h b/qpid/cpp/include/qmf/ConnectionSettings.h index 53a83dfd2a..9bd6922a56 100644 --- a/qpid/cpp/include/qmf/ConnectionSettings.h +++ b/qpid/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; }; |
