File indexing completed on 2024-10-06 10:23:57
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 0025 Q_SIGNALS: 0026 /** 0027 * @brief Triggered when the system tray icon is clicked to request NeoChat be shown. 0028 */ 0029 void showWindow(); 0030 };