summaryrefslogtreecommitdiffstats
blob: f76c43812f2144756fed1cdbfb9eca2a956ffd94 (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
/*
 * Copyright (c) 2013 Tobias Markmann
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#include <Swift/QtUI/QtResourceHelper.h>

namespace Swift {

QString statusShowTypeToIconPath(StatusShow::Type type) {
	QString iconString;
	switch (type) {
		case StatusShow::Online: iconString = "online";break;
		case StatusShow::Away: iconString = "away";break;
		case StatusShow::XA: iconString = "away";break;
		case StatusShow::FFC: iconString = "online";break;
		case StatusShow::DND: iconString = "dnd";break;
		case StatusShow::None: iconString = "offline";break;
	}
	return QString(":/icons/%1.png").arg(iconString);
}

}