update, should now be working Toasts for splitheader channels

This commit is contained in:
apa420
2018-08-11 16:11:51 +02:00
parent 77411f7012
commit 2de99ca9f5
3 changed files with 126 additions and 13 deletions
+5 -1
View File
@@ -12,12 +12,16 @@ class Toasts final : public Singleton
public:
Toasts();
virtual void initialize(Settings &settings, Paths &paths) override final;
private:
void updateLiveChannels(const QString &channelName);
void removeFromLiveChannels(const QString &channelName);
private:
bool wasChannelLive(const QString &channelName);
void shouldChannelBeNotified(const QString &channelName);
void sendChannelNotification(const QString &channelName);
void sendWindowsNotification(const QString &channelName);
std::vector<QString> liveChannels;
std::mutex mutex_;
};