diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-04-08 19:10:45 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-04-08 19:10:45 (GMT) |
commit | d53ceecb25f336fd1e7e5d9a6ae52599ff2cb12b (patch) | |
tree | bc59b7ea1adf2b94c1594dfd74d7f9353386e133 /Swiften/VCards/VCardManager.h | |
parent | 0313b451afbeffc33cc0060ce6fd7b4f2ee9a2bb (diff) | |
parent | f2637331516790242317997ca099e1bc1901c935 (diff) | |
download | swift-contrib-d53ceecb25f336fd1e7e5d9a6ae52599ff2cb12b.zip swift-contrib-d53ceecb25f336fd1e7e5d9a6ae52599ff2cb12b.tar.bz2 |
Merge branch 'copyrights'
Diffstat (limited to 'Swiften/VCards/VCardManager.h')
-rw-r--r-- | Swiften/VCards/VCardManager.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Swiften/VCards/VCardManager.h b/Swiften/VCards/VCardManager.h new file mode 100644 index 0000000..bbf07c0 --- /dev/null +++ b/Swiften/VCards/VCardManager.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include "Swiften/Elements/VCard.h" + +namespace Swift { + class JID; + class VCardStorage; + + class VCardManager { + public: + VCardManager(IQRouter* iqRouter, VCardStorage* vcardStorage); + + virtual boost::shared_ptr<VCard> getVCardAndRequestWhenNeeded(const JID& jid) const ; + + public: + boost::signal<void (const JID&)> onVCardChanged; + + private: + IQRouter* iqRouter; + VCardStorage* storage; + }; +} |