summaryrefslogtreecommitdiffstats
blob: a802b19ad2a6b337a90fe774c4c82b9815c4a7ec (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);
}

}