/* * SPDX-FileCopyrightText: 2019 Weixuan XIAO * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #include #include #include #include "indicatorhelper.h" IndicatorHelper::IndicatorHelper() {} IndicatorHelper::~IndicatorHelper() {} void IndicatorHelper::preInit() {} void IndicatorHelper::postInit() {} void IndicatorHelper::iconPathHook() {} int IndicatorHelper::daemonHook(QProcess &kdeconnectd) { kdeconnectd.start(QStringLiteral("kdeconnectd.exe")); return 0; } #ifdef QSYSTRAY void IndicatorHelper::systrayIconHook(QSystemTrayIcon &systray) { systray.setIcon(QIcon::fromTheme(QStringLiteral("kdeconnect-tray"))); } #else void IndicatorHelper::systrayIconHook(KStatusNotifierItem &systray) { Q_UNUSED(systray); } #endif