summaryrefslogtreecommitdiffstats
blob: 37f5da261f1e96ad929207f5ad382cbfb928f61d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2013 Tobias Markmann
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <QString>

#include <Swiften/Elements/VCard.h>

namespace Swift {

class ContactRosterItem;
class QtScaledAvatarCache;

class RosterTooltip {
	public:
		static QString buildDetailedTooltip(ContactRosterItem* contact, QtScaledAvatarCache* cachedImageScaler);

	private:
		static QString buildVCardSummary(VCard::ref vcard);
		static QString buildVCardField(bool preferred, const QString& name, const QString& content);
};

}