2016-10-02 09:30:28 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2016-10-02 09:30:28 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-10-02 09:30:28 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2017-02-28 10:51:00 +00:00
|
|
|
#include "window/notifications_manager.h"
|
2016-11-04 08:23:50 +00:00
|
|
|
|
|
|
|
namespace Platform {
|
|
|
|
namespace Notifications {
|
|
|
|
|
2017-02-28 10:51:00 +00:00
|
|
|
bool SkipAudio();
|
|
|
|
bool SkipToast();
|
2016-11-04 08:23:50 +00:00
|
|
|
|
2017-02-28 10:51:00 +00:00
|
|
|
bool Supported();
|
2017-03-04 19:36:59 +00:00
|
|
|
std::unique_ptr<Window::Notifications::Manager> Create(Window::Notifications::System *system);
|
|
|
|
void FlashBounce();
|
2016-11-04 08:23:50 +00:00
|
|
|
|
|
|
|
} // namespace Notifications
|
|
|
|
} // namespace Platform
|
2017-02-28 10:51:00 +00:00
|
|
|
|
|
|
|
// Platform dependent implementations.
|
|
|
|
|
|
|
|
#ifdef Q_OS_MAC
|
|
|
|
#include "platform/mac/notifications_manager_mac.h"
|
|
|
|
#elif defined Q_OS_LINUX // Q_OS_MAC
|
|
|
|
#include "platform/linux/notifications_manager_linux.h"
|
|
|
|
#elif defined Q_OS_WIN // Q_OS_MAC || Q_OS_LINUX
|
|
|
|
#include "platform/win/notifications_manager_win.h"
|
|
|
|
#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WIN
|