/* * SPDX-FileCopyrightText: 2019 Weixuan XIAO * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef INDICATORHELPER_H #define INDICATORHELPER_H #include #include #ifdef QSYSTRAY #include #else #include #endif class IndicatorHelper { public: IndicatorHelper(); ~IndicatorHelper(); void preInit(); void postInit(); void iconPathHook(); int daemonHook(QProcess &kdeconnectd); #ifdef QSYSTRAY void systrayIconHook(QSystemTrayIcon &systray); #else void systrayIconHook(KStatusNotifierItem &systray); #endif private: #ifdef Q_OS_MAC QSplashScreen *m_splashScreen; #endif }; #endif