2026-05-30 14:50:18 +03:00
|
|
|
#ifndef WINTRAYICON_H
|
|
|
|
|
#define WINTRAYICON_H
|
|
|
|
|
|
|
|
|
|
#include "core/protocols/vpnProtocol.h"
|
|
|
|
|
|
|
|
|
|
#include <QColor>
|
|
|
|
|
#include <QIcon>
|
|
|
|
|
#include <QSystemTrayIcon>
|
|
|
|
|
|
|
|
|
|
class QMenu;
|
|
|
|
|
class QString;
|
|
|
|
|
|
|
|
|
|
namespace WinTrayIcon
|
|
|
|
|
{
|
2026-06-05 09:00:14 +03:00
|
|
|
QIcon buildIcon(Vpn::ConnectionState state, bool darkTheme);
|
2026-05-30 14:50:18 +03:00
|
|
|
void applyTo(QSystemTrayIcon &trayIcon, Vpn::ConnectionState state, bool darkTheme);
|
|
|
|
|
QIcon buildNotifyIcon(bool darkTheme);
|
|
|
|
|
|
|
|
|
|
void configure(QSystemTrayIcon &trayIcon, QMenu *menu, const QString &tooltip);
|
|
|
|
|
void show(QSystemTrayIcon &trayIcon);
|
|
|
|
|
void showMessage(QSystemTrayIcon &trayIcon, const QString &title, const QString &message, bool darkTheme,
|
|
|
|
|
int timerMsec);
|
|
|
|
|
} // namespace WinTrayIcon
|
|
|
|
|
|
|
|
|
|
#endif // WINTRAYICON_H
|