File indexing completed on 2024-04-21 04:59:31

0001 // SPDX-FileCopyrightText: 2019 Black Hat <bhat@encom.eu.org>
0002 // SPDX-License-Identifier: GPL-3.0-only
0003 
0004 #pragma once
0005 
0006 // Modified from mujx/nheko's TrayIcon.
0007 
0008 #include <QSystemTrayIcon>
0009 
0010 /**
0011  * @class TrayIcon
0012  *
0013  * A class inheriting from QSystemTrayIcon to handle setting the system tray icon.
0014  *
0015  * Works for Windows, Linux and MacOS.
0016  *
0017  * @sa QSystemTrayIcon
0018  */
0019 class TrayIcon : public QSystemTrayIcon
0020 {
0021     Q_OBJECT
0022 public:
0023     TrayIcon(QObject *parent = nullptr);
0024 };