mirror-chatterino2/src/singletons/Toasts.hpp

24 lines
522 B
C++
Raw Normal View History

2018-08-11 12:47:03 +02:00
#pragma once
#include "Application.hpp"
#include "common/Singleton.hpp"
namespace chatterino {
2018-08-12 18:54:32 +02:00
enum class Platform : uint8_t;
2018-08-11 12:47:03 +02:00
class Toasts final : public Singleton
{
public:
2018-08-12 18:54:32 +02:00
void sendChannelNotification(const QString &channelName, Platform p);
2018-08-12 18:54:32 +02:00
static bool isEnabled();
private:
2018-08-12 18:54:32 +02:00
void sendWindowsNotification(const QString &channelName, Platform p);
2018-08-19 15:09:00 +02:00
static void fetchChannelAvatar(
const QString channelName,
std::function<void(QString)> successCallback);
2018-08-11 12:47:03 +02:00
};
} // namespace chatterino