Files
neochat/src/trayicon_sni.h
2023-12-23 14:50:36 +00:00

31 lines
540 B
C++

// SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include <KStatusNotifierItem>
/**
* @class TrayIcon
*
* A class inheriting KStatusNotifierItem to provide a tray icon.
*
* @sa KStatusNotifierItem
*/
class TrayIcon : public KStatusNotifierItem
{
Q_OBJECT
public:
explicit TrayIcon(QObject *parent = nullptr);
/**
* @brief Show the tray icon.
*/
void show();
/**
* @brief Hide the tray icon.
*/
void hide();
};