mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
show status indicators in member list, change some other shit with presences
This commit is contained in:
@@ -54,8 +54,17 @@ ActivityType SetStatusDialog::GetActivityType() const {
|
||||
return static_cast<ActivityType>(std::stoul(x));
|
||||
}
|
||||
|
||||
std::string SetStatusDialog::GetStatusType() const {
|
||||
return m_status_combo.get_active_id();
|
||||
PresenceStatus SetStatusDialog::GetStatusType() const {
|
||||
const auto &x = m_status_combo.get_active_id();
|
||||
if (x == "online")
|
||||
return PresenceStatus::Online;
|
||||
else if (x == "idle")
|
||||
return PresenceStatus::Idle;
|
||||
else if (x == "dnd")
|
||||
return PresenceStatus::DND;
|
||||
else if (x == "offline")
|
||||
return PresenceStatus::Offline;
|
||||
return PresenceStatus::Online;
|
||||
}
|
||||
|
||||
std::string SetStatusDialog::GetActivityName() const {
|
||||
|
||||
@@ -6,7 +6,7 @@ class SetStatusDialog : public Gtk::Dialog {
|
||||
public:
|
||||
SetStatusDialog(Gtk::Window &parent);
|
||||
ActivityType GetActivityType() const;
|
||||
std::string GetStatusType() const;
|
||||
PresenceStatus GetStatusType() const;
|
||||
std::string GetActivityName() const;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user