diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-05-06 18:50:32 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-05-06 18:52:52 (GMT) |
commit | a49e2a1d4d17c36fad6ac1d1313fac955f675a54 (patch) | |
tree | 5403d40ffcd2ec6d3a858db6f9e3320f64c6af87 /Swiften/Elements/Storage.h | |
parent | 0cec4698efdb9fa0072e5d8cbccd6cb806b940e9 (diff) | |
download | swift-contrib-a49e2a1d4d17c36fad6ac1d1313fac955f675a54.zip swift-contrib-a49e2a1d4d17c36fad6ac1d1313fac955f675a54.tar.bz2 |
Completed storage bookmark parser & serializer.
Added URI element.
Diffstat (limited to 'Swiften/Elements/Storage.h')
-rw-r--r-- | Swiften/Elements/Storage.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Swiften/Elements/Storage.h b/Swiften/Elements/Storage.h index 515cd52..dcc4b85 100644 --- a/Swiften/Elements/Storage.h +++ b/Swiften/Elements/Storage.h @@ -25,6 +25,13 @@ namespace Swift { String password; }; + struct URL { + URL() {} + + String name; + String url; + }; + Storage() { } @@ -36,7 +43,16 @@ namespace Swift { conferences.push_back(conference); } + const std::vector<URL>& getURLs() const { + return urls; + } + + void addURL(const URL& url) { + urls.push_back(url); + } + private: std::vector<Conference> conferences; + std::vector<URL> urls; }; } |