2019-12-11 15:00:39 +00:00
|
|
|
/*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2019 Weixuan XIAO <veyx.shaw@gmail.com>
|
2019-12-11 15:00:39 +00:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2019-12-11 15:00:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <QFile>
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QStandardPaths>
|
|
|
|
|
|
|
|
#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)
|
|
|
|
{
|
2020-10-19 12:38:47 +01:00
|
|
|
systray.setIcon(QIcon::fromTheme(QStringLiteral("kdeconnect-tray")));
|
2019-12-11 15:00:39 +00:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
void IndicatorHelper::systrayIconHook(KStatusNotifierItem &systray)
|
|
|
|
{
|
|
|
|
Q_UNUSED(systray);
|
|
|
|
}
|
|
|
|
#endif
|