diff --git a/src/trayicon_sni.h b/src/trayicon_sni.h index 82f06ccab..88e5b1359 100644 --- a/src/trayicon_sni.h +++ b/src/trayicon_sni.h @@ -5,15 +5,32 @@ #include +/** + * @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(); };