summaryrefslogtreecommitdiffstats
blob: 0174dea599583a0197b49fa19f3e3e3b12531fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2010 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#include "Swiften/VCards/VCardManager.h"

namespace Swift {

VCardManager::VCardManager(IQRouter* iqRouter, VCardStorage* vcardStorage) : iqRouter(iqRouter), storage(vcardStorage) {
}

boost::shared_ptr<VCard> VCardManager::getVCardAndRequestWhenNeeded(const JID& jid) const {
	boost::shared_ptr<VCard> vcard = storage->getVCard(jid);
	if (!vcard) {
		// TODO: Request vcard if necessary
	}
	return vcard;
}
	
}