24 #include <KLocalizedString>
25 #include <KIconLoader>
42 const QString &name(
iconName(useImIcons));
43 if (!name.isEmpty()) {
50 const QString &name(
iconName(useImIcons));
51 if (!name.isEmpty()) {
53 KIconLoader::global(),
62 case Tp::ConnectionPresenceTypeAvailable:
63 return useImIcons ? QLatin1String(
"im-user") : QLatin1String(
"user-online");
64 case Tp::ConnectionPresenceTypeBusy:
65 return useImIcons ? QLatin1String(
"im-user-busy") : QLatin1String(
"user-busy");
66 case Tp::ConnectionPresenceTypeAway:
67 return useImIcons ? QLatin1String(
"im-user-away") : QLatin1String(
"user-away");
68 case Tp::ConnectionPresenceTypeExtendedAway:
70 return useImIcons ? QLatin1String(
"im-user-away") : QLatin1String(
"user-away-extended");
71 case Tp::ConnectionPresenceTypeHidden:
72 return useImIcons ? QLatin1String(
"im-invisible-user") : QLatin1String(
"user-invisible");
73 case Tp::ConnectionPresenceTypeOffline:
74 return useImIcons ? QLatin1String(
"im-user-offline") : QLatin1String(
"user-offline");
85 return (statusMessage() < other.statusMessage());
94 case Tp::ConnectionPresenceTypeAvailable:
95 return i18nc(
"IM presence: a person is available",
"Available");
96 case Tp::ConnectionPresenceTypeBusy:
97 return i18nc(
"IM presence: a person is busy",
"Busy");
98 case Tp::ConnectionPresenceTypeAway:
99 return i18nc(
"IM presence: a person is away",
"Away");
100 case Tp::ConnectionPresenceTypeExtendedAway:
101 return i18nc(
"IM presence: a person is not available",
"Not Available");
102 case Tp::ConnectionPresenceTypeHidden:
103 return i18nc(
"IM presence: a person is invisible",
"Invisible");
104 case Tp::ConnectionPresenceTypeOffline:
105 return i18nc(
"IM presence: a person is offline",
"Offline");
114 case Tp::ConnectionPresenceTypeAvailable:
116 case Tp::ConnectionPresenceTypeBusy:
118 case Tp::ConnectionPresenceTypeHidden:
120 case Tp::ConnectionPresenceTypeAway:
122 case Tp::ConnectionPresenceTypeExtendedAway:
125 case Tp::ConnectionPresenceTypeError:
126 case Tp::ConnectionPresenceTypeUnknown:
127 case Tp::ConnectionPresenceTypeUnset:
129 case Tp::ConnectionPresenceTypeOffline: