Warning, file /network/neochat/src/trayicon_sni.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org> 0002 // SPDX-License-Identifier: GPL-3.0-only 0003 0004 #pragma once 0005 0006 #include <KStatusNotifierItem> 0007 0008 /** 0009 * @class TrayIcon 0010 * 0011 * A class inheriting KStatusNotifierItem to provide a tray icon. 0012 * 0013 * @sa KStatusNotifierItem 0014 */ 0015 class TrayIcon : public KStatusNotifierItem 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit TrayIcon(QObject *parent = nullptr); 0020 0021 /** 0022 * @brief Show the tray icon. 0023 */ 0024 void show(); 0025 0026 /** 0027 * @brief Hide the tray icon. 0028 */ 0029 void hide(); 0030 };