mirror-chatterino2/src/singletons/Toasts.hpp
2018-09-01 13:01:54 +02:00

25 lines
545 B
C++

#pragma once
#include "Application.hpp"
#include "common/Singleton.hpp"
namespace chatterino {
enum class Platform : uint8_t;
class Toasts final : public Singleton
{
public:
void sendChannelNotification(const QString &channelName, Platform p);
static bool isEnabled();
private:
#ifdef Q_OS_WIN
void sendWindowsNotification(const QString &channelName, Platform p);
#endif
static void fetchChannelAvatar(
const QString channelName,
std::function<void(QString)> successCallback);
};
} // namespace chatterino