Document trayicon_sni

This commit is contained in:
James Graham
2023-05-05 16:53:38 +00:00
parent 049ae3602f
commit 65d919876c

View File

@@ -5,15 +5,32 @@
#include <KStatusNotifierItem>
/**
* @class TrayIcon
*
* A class inheriting KStatusNotifierItem to provide a tray icon.
*
* @sa KStatusNotifierItem
*/
class TrayIcon : public KStatusNotifierItem
{
Q_OBJECT
public:
TrayIcon(QObject *parent = nullptr);
/**
* @brief Show the tray icon.
*/
void show();
/**
* @brief Hide the tray icon.
*/
void hide();
Q_SIGNALS:
/**
* @brief Triggered when the system tray icon is clicked to request NeoChat be shown.
*/
void showWindow();
};