Use ecm_qt_declare_logging_category to declare the logging categories
This automatizes the generation of logging categories so a kdeconnect-kde.categories is generated and installed to /usr/share/qlogging-categories5/ so kdebugsettings can use it. Also, sets the default logging level to Warning. So now the logs of users won't be filled with debug messages but they can modify the configuration easily with kdebugsettings.
This commit is contained in:
parent
8bf49850f1
commit
1d36164230
99 changed files with 328 additions and 318 deletions
|
@ -20,6 +20,7 @@ include(KDECMakeSettings)
|
|||
include(ECMAddTests)
|
||||
include(ECMSetupVersion)
|
||||
include(ECMInstallIcons)
|
||||
include(ECMQtDeclareLoggingCategory)
|
||||
include(FeatureSummary)
|
||||
include(GenerateExportHeader)
|
||||
if (NOT SAILFISHOS)
|
||||
|
@ -124,4 +125,6 @@ if(BUILD_TESTING)
|
|||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
ecm_qt_install_logging_categories(EXPORT kdeconnect-kde FILE kdeconnect-kde.categories SORT DESTINATION "${KDE_INSTALL_LOGGINGCATEGORIESDIR}")
|
||||
|
||||
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\")
|
||||
|
||||
set(debug_file_SRCS)
|
||||
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER kdeconnect_debug.h
|
||||
IDENTIFIER KDECONNECT_CORE CATEGORY_NAME kdeconnect.core
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (core)")
|
||||
|
||||
set(KDECONNECT_PRIVATE_DBUS_ADDR unix:tmpdir=/tmp)
|
||||
if(WIN32)
|
||||
set(KDECONNECT_PRIVATE_DBUS_ADDR tcp:host=localhost,port=0)
|
||||
|
@ -39,6 +47,7 @@ set(kdeconnectcore_SRCS
|
|||
device.cpp
|
||||
core_debug.cpp
|
||||
notificationserverinfo.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
add_library(kdeconnectcore ${kdeconnectcore_SRCS})
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
|
||||
#include "core_debug.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_CORE, "kdeconnect.core")
|
||||
|
||||
#if defined(__GNU_LIBRARY__)
|
||||
#include <execinfo.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -21,11 +21,8 @@
|
|||
#ifndef CORE_DEBUG_H
|
||||
#define CORE_DEBUG_H
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include "kdeconnectcore_export.h"
|
||||
|
||||
KDECONNECTCORE_EXPORT Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_CORE)
|
||||
#include "kdeconnect_debug.h"
|
||||
|
||||
void logBacktrace();
|
||||
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kded")
|
||||
|
||||
add_executable(kdeconnectd kdeconnectd.cpp)
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER kdeconnectd_debug.h
|
||||
IDENTIFIER KDECONNECT_DAEMON CATEGORY_NAME kdeconnect.daemon
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (daemon)")
|
||||
|
||||
add_executable(kdeconnectd kdeconnectd.cpp ${debug_file_SRCS})
|
||||
target_include_directories(kdeconnectd PUBLIC ${CMAKE_BINARY_DIR})
|
||||
target_link_libraries(kdeconnectd kdeconnectcore KF5::KIOWidgets KF5::DBusAddons KF5::Notifications KF5::I18n Qt5::Widgets)
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include <QApplication>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QTimer>
|
||||
#include <QLoggingCategory>
|
||||
#include <QCommandLineOption>
|
||||
#include <QCommandLineParser>
|
||||
#include <QDBusMessage>
|
||||
|
@ -42,9 +41,7 @@
|
|||
#include "core/device.h"
|
||||
#include "core/backends/pairinghandler.h"
|
||||
#include "kdeconnect-version.h"
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_DAEMON)
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_DAEMON, "kdeconnect.daemon")
|
||||
#include "kdeconnectd_debug.h"
|
||||
|
||||
class DesktopDaemon : public Daemon
|
||||
{
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-fileitemaction")
|
||||
|
||||
add_library(kdeconnectfileitemaction MODULE sendfileitemaction.cpp)
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER kdeconnect_fileitemaction_debug.h
|
||||
IDENTIFIER KDECONNECT_FILEITEMACTION CATEGORY_NAME kdeconnect.fileitemaction
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (fileitemaction)")
|
||||
|
||||
add_library(kdeconnectfileitemaction MODULE sendfileitemaction.cpp ${debug_file_SRCS})
|
||||
target_link_libraries(
|
||||
kdeconnectfileitemaction
|
||||
KF5::KIOWidgets
|
||||
|
|
|
@ -37,9 +37,9 @@
|
|||
|
||||
#include <dbushelper.h>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(SendFileItemAction, "kdeconnectsendfile.json")
|
||||
#include "kdeconnect_fileitemaction_debug.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_FILEITEMACTION, "kdeconnect.fileitemaction")
|
||||
K_PLUGIN_CLASS_WITH_JSON(SendFileItemAction, "kdeconnectsendfile.json")
|
||||
|
||||
SendFileItemAction::SendFileItemAction(QObject* parent, const QVariantList& ): KAbstractFileItemActionPlugin(parent)
|
||||
{
|
||||
|
|
|
@ -23,13 +23,11 @@
|
|||
|
||||
#include <KFileItemListProperties>
|
||||
#include <KAbstractFileItemActionPlugin>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
class QAction;
|
||||
class KFileItemListProperties;
|
||||
class QWidget;
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_FILEITEMACTION)
|
||||
class SendFileItemAction : public KAbstractFileItemActionPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
@ -10,6 +10,19 @@ function(geninterface source_h output_h)
|
|||
set(libkdeconnect_SRC ${libkdeconnect_SRC} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
set(debug_files_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_files_SRCS HEADER interfaces_conversation_message_debug.h
|
||||
IDENTIFIER CONVERSATION_MESSAGE_LOGGING_CATEGORY CATEGORY_NAME kdeconnect.interfaces.conversationmessage
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (conversation message)")
|
||||
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_files_SRCS HEADER interfaces_debug.h
|
||||
IDENTIFIER KDECONNECT_INTERFACES CATEGORY_NAME kdeconnect.interfaces
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (interfaces)")
|
||||
|
||||
set(libkdeconnect_SRC
|
||||
dbusinterfaces.cpp
|
||||
devicesmodel.cpp
|
||||
|
@ -20,6 +33,7 @@ set(libkdeconnect_SRC
|
|||
remotesinksmodel.cpp
|
||||
devicespluginfilterproxymodel.cpp
|
||||
# modeltest.cpp
|
||||
${debug_files_SRCS}
|
||||
)
|
||||
|
||||
geninterface(${PROJECT_SOURCE_DIR}/core/daemon.h daemoninterface)
|
||||
|
|
|
@ -20,10 +20,9 @@
|
|||
|
||||
#include "conversationmessage.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QVariantMap>
|
||||
|
||||
Q_LOGGING_CATEGORY(CONVERSATION_MESSAGE_LOGGING_CATEGORY, "kdeconnect.interfaces.conversationmessage")
|
||||
#include "interfaces_conversation_message_debug.h"
|
||||
|
||||
ConversationMessage::ConversationMessage(const QVariantMap& args)
|
||||
: m_eventField(args[QStringLiteral("event")].toInt()),
|
||||
|
|
|
@ -22,12 +22,9 @@
|
|||
#define PLUGINS_TELEPHONY_CONVERSATIONMESSAGE_H_
|
||||
|
||||
#include <QDBusMetaType>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include "kdeconnectinterfaces_export.h"
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(CONVERSATION_MESSAGE_LOGGING_CATEGORY)
|
||||
|
||||
class ConversationAddress;
|
||||
|
||||
class KDECONNECTINTERFACES_EXPORT ConversationMessage
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <dbushelper.h>
|
||||
// #include "modeltest.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_INTERFACES, "kdeconnect.interfaces");
|
||||
#include "interfaces_debug.h"
|
||||
|
||||
static QString createId() { return QCoreApplication::instance()->applicationName()+QString::number(QCoreApplication::applicationPid()); }
|
||||
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/**
|
||||
* Copyright 2014 Alejandro Fiestas Olivares <afiestas@kde.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License or (at your option) version 3 or any later version
|
||||
* accepted by the membership of KDE e.V. (or its successor approved
|
||||
* by the membership of KDE e.V.), which shall act as a proxy
|
||||
* defined in Section 14 of version 3 of the license.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KDECONNECT_INTERFACES_DEBUG_H
|
||||
#define KDECONNECT_INTERFACES_DEBUG_H
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_INTERFACES)
|
||||
|
||||
#endif //KDECONNECT_INTERFACES_DEBUG_H
|
|
@ -19,7 +19,6 @@
|
|||
*/
|
||||
|
||||
#include "notificationsmodel.h"
|
||||
#include "interfaces_debug.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QIcon>
|
||||
|
@ -30,6 +29,7 @@
|
|||
|
||||
//In older Qt released, qAsConst isnt available
|
||||
#include "core/qtcompat_p.h"
|
||||
#include "interfaces_debug.h"
|
||||
|
||||
NotificationsModel::NotificationsModel(QObject* parent)
|
||||
: QAbstractListModel(parent)
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
include_directories(${CMAKE_SOURCE_DIR})
|
||||
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kio")
|
||||
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER kdeconnectkio_debug.h
|
||||
IDENTIFIER KDECONNECT_KIO CATEGORY_NAME kdeconnect.kio
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (kio)")
|
||||
|
||||
set(kio_kdeconnect_PART_SRCS
|
||||
kiokdeconnect.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
add_library(kio_kdeconnect MODULE ${kio_kdeconnect_PART_SRCS})
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <QDebug>
|
||||
#include <QtPlugin>
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_KIO, "kdeconnect.kio")
|
||||
#include "kdeconnectkio_debug.h"
|
||||
|
||||
class KIOPluginForMetaData : public QObject
|
||||
{
|
||||
|
|
|
@ -22,14 +22,11 @@
|
|||
#define KIOKDECONNECT_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <kio/slavebase.h>
|
||||
|
||||
#include "interfaces/dbusinterfaces.h"
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_KIO)
|
||||
|
||||
class KioKdeconnect : public QObject, public KIO::SlaveBase
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_battery_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_BATTERY CATEGORY_NAME kdeconnect.plugin.battery
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin battery)")
|
||||
|
||||
set(kdeconnect_battery_SRCS
|
||||
batteryplugin.cpp
|
||||
batterydbusinterface.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_battery JSON kdeconnect_battery.json SOURCES ${kdeconnect_battery_SRCS})
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <QDebug>
|
||||
#include <core/device.h>
|
||||
#include "plugin_battery_debug.h"
|
||||
|
||||
QMap<QString, BatteryDbusInterface *> BatteryDbusInterface::s_dbusInterfaces;
|
||||
|
||||
|
|
|
@ -30,11 +30,10 @@
|
|||
#include <core/daemon.h>
|
||||
|
||||
#include "batterydbusinterface.h"
|
||||
#include "plugin_battery_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(BatteryPlugin, "kdeconnect_battery.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_BATTERY, "kdeconnect.plugin.battery")
|
||||
|
||||
BatteryPlugin::BatteryPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
, batteryDbusInterface(new BatteryDbusInterface(device()))
|
||||
|
|
|
@ -21,13 +21,11 @@
|
|||
#ifndef BATTERYPLUGIN_H
|
||||
#define BATTERYPLUGIN_H
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
#define PACKET_TYPE_BATTERY QStringLiteral("kdeconnect.battery")
|
||||
#define PACKET_TYPE_BATTERY_REQUEST QStringLiteral("kdeconnect.battery.request")
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_BATTERY)
|
||||
class BatteryDbusInterface;
|
||||
|
||||
class BatteryPlugin
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_clipboard_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_CLIPBOARD CATEGORY_NAME kdeconnect.plugin.clipboard
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin clipboard)")
|
||||
|
||||
set(kdeconnect_clipboard_SRCS
|
||||
clipboardplugin.cpp
|
||||
clipboardlistener.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_clipboard JSON kdeconnect_clipboard.json SOURCES ${kdeconnect_clipboard_SRCS})
|
||||
|
|
|
@ -21,13 +21,12 @@
|
|||
#include "clipboardplugin.h"
|
||||
|
||||
#include "clipboardlistener.h"
|
||||
#include "plugin_clipboard_debug.h"
|
||||
|
||||
#include <KPluginFactory>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(ClipboardPlugin, "kdeconnect_clipboard.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_CLIPBOARD, "kdeconnect.plugin.clipboard")
|
||||
|
||||
ClipboardPlugin::ClipboardPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -23,11 +23,8 @@
|
|||
|
||||
#include <QObject>
|
||||
#include <QClipboard>
|
||||
#include <QLoggingCategory>
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_CLIPBOARD)
|
||||
|
||||
/**
|
||||
* Packet containing just clipboard contents, sent when a device updates its clipboard.
|
||||
* <p>
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_contacts_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_CONTACTS CATEGORY_NAME kdeconnect.plugin.contacts
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin contacts)")
|
||||
|
||||
set(kdeconnect_contacts_SRCS
|
||||
contactsplugin.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_contacts JSON kdeconnect_contacts.json SOURCES ${kdeconnect_contacts_SRCS})
|
||||
|
|
|
@ -24,16 +24,15 @@
|
|||
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusMetaType>
|
||||
#include <QLoggingCategory>
|
||||
#include <QFile>
|
||||
#include <QDir>
|
||||
#include <QIODevice>
|
||||
|
||||
#include <core/device.h>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(ContactsPlugin, "kdeconnect_contacts.json")
|
||||
#include "plugin_contacts_debug.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_CONTACTS, "kdeconnect.plugin.contacts")
|
||||
K_PLUGIN_CLASS_WITH_JSON(ContactsPlugin, "kdeconnect_contacts.json")
|
||||
|
||||
ContactsPlugin::ContactsPlugin(QObject* parent, const QVariantList& args) :
|
||||
KdeConnectPlugin(parent, args)
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_findthisdevice_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_FINDTHISDEVICE CATEGORY_NAME kdeconnect.plugin.findthisdevice
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin findthisdevice)")
|
||||
|
||||
set(kdeconnect_findthisdevice_SRCS
|
||||
findthisdeviceplugin.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_findthisdevice
|
||||
|
@ -22,7 +30,7 @@ endif()
|
|||
set(kdeconnect_findthisdevice_config_SRCS findthisdevice_config.cpp)
|
||||
ki18n_wrap_ui(kdeconnect_findthisdevice_config_SRCS findthisdevice_config.ui)
|
||||
|
||||
add_library(kdeconnect_findthisdevice_config MODULE ${kdeconnect_findthisdevice_config_SRCS})
|
||||
add_library(kdeconnect_findthisdevice_config MODULE ${kdeconnect_findthisdevice_config_SRCS} ${debug_file_SRCS})
|
||||
target_link_libraries(kdeconnect_findthisdevice_config
|
||||
kdeconnectpluginkcm
|
||||
Qt5::Multimedia
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
// Qt
|
||||
#include <QDBusConnection>
|
||||
#include <QMediaPlayer>
|
||||
#include "plugin_findthisdevice_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(FindThisDevicePlugin, "kdeconnect_findthisdevice.json")
|
||||
|
||||
|
|
|
@ -33,16 +33,10 @@
|
|||
#include <QUrl>
|
||||
#endif
|
||||
// Qt
|
||||
#include <QLoggingCategory>
|
||||
#include "plugin_findthisdevice_debug.h"
|
||||
|
||||
#define PACKET_TYPE_FINDMYPHONE_REQUEST QStringLiteral("kdeconnect.findmyphone.request")
|
||||
|
||||
static const QLoggingCategory &KDECONNECT_PLUGIN_FINDTHISDEVICE()
|
||||
{
|
||||
static const QLoggingCategory category("kdeconnect.plugin.findthisdevice");
|
||||
return category;
|
||||
}
|
||||
|
||||
class FindThisDevicePlugin
|
||||
: public KdeConnectPlugin
|
||||
{
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
qt5_add_dbus_interface(lockdevice_SRCS org.freedesktop.ScreenSaver.xml screensaverdbusinterface)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_lockdevice JSON kdeconnect_lockdevice.json SOURCES lockdeviceplugin.cpp ${lockdevice_SRCS})
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_lock_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_LOCKREMOTE CATEGORY_NAME kdeconnect.plugin.lock
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin lockremote)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_lockdevice JSON kdeconnect_lockdevice.json SOURCES lockdeviceplugin.cpp ${lockdevice_SRCS} ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_lockdevice
|
||||
kdeconnectcore
|
||||
|
|
|
@ -24,16 +24,14 @@
|
|||
#include <KPluginFactory>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QLoggingCategory>
|
||||
#include "screensaverdbusinterface.h"
|
||||
#include "plugin_lock_debug.h"
|
||||
|
||||
#include <core/device.h>
|
||||
#include <dbushelper.h>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(LockDevicePlugin, "kdeconnect_lockdevice.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_LOCKREMOTE, "kdeconnect.plugin.lock")
|
||||
|
||||
LockDevicePlugin::LockDevicePlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
, m_remoteLocked(false)
|
||||
|
|
|
@ -20,7 +20,14 @@ qt5_add_dbus_interface(kdeconnect_mpriscontrol_SRCS org.mpris.MediaPlayer2.xml m
|
|||
|
||||
endif()
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_mpriscontrol JSON kdeconnect_mpriscontrol.json SOURCES ${kdeconnect_mpriscontrol_SRCS})
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_mpris_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_MPRIS CATEGORY_NAME kdeconnect.plugin.mpris
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mpris)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_mpriscontrol JSON kdeconnect_mpriscontrol.json SOURCES ${kdeconnect_mpriscontrol_SRCS} ${debug_file_SRCS})
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore)
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "mpriscontrolplugin-win.h"
|
||||
#include <core/device.h>
|
||||
#include "plugin_mpris_debug.h"
|
||||
|
||||
#include <KPluginFactory>
|
||||
|
||||
|
@ -27,8 +28,6 @@
|
|||
|
||||
K_PLUGIN_CLASS_WITH_JSON(MprisControlPlugin, "kdeconnect_mpriscontrol.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_MPRIS, "kdeconnect.plugin.mpris")
|
||||
|
||||
MprisControlPlugin::MprisControlPlugin(QObject *parent, const QVariantList &args) : KdeConnectPlugin(parent, args) { }
|
||||
|
||||
bool MprisControlPlugin::receivePacket(const NetworkPacket &np)
|
||||
|
|
|
@ -24,14 +24,11 @@
|
|||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
#include <QString>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#define PLAYERNAME QStringLiteral("Media Player")
|
||||
|
||||
#define PACKET_TYPE_MPRIS QStringLiteral("kdeconnect.mpris")
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_MPRIS)
|
||||
|
||||
class MprisControlPlugin
|
||||
: public KdeConnectPlugin
|
||||
{
|
||||
|
|
|
@ -34,12 +34,10 @@
|
|||
#include "dbusproperties.h"
|
||||
#include "mprisplayer.h"
|
||||
#include "mprisroot.h"
|
||||
#include "plugin_mpris_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(MprisControlPlugin, "kdeconnect_mpriscontrol.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_MPRIS, "kdeconnect.plugin.mpris")
|
||||
|
||||
|
||||
MprisPlayer::MprisPlayer(const QString& serviceName, const QString& dbusObjectPath, const QDBusConnection& busConnection)
|
||||
: m_serviceName(serviceName)
|
||||
, m_propertiesInterface(new OrgFreedesktopDBusPropertiesInterface(serviceName, dbusObjectPath, busConnection))
|
||||
|
|
|
@ -23,13 +23,11 @@
|
|||
|
||||
#include <QString>
|
||||
#include <QHash>
|
||||
#include <QLoggingCategory>
|
||||
#include <QDBusServiceWatcher>
|
||||
#include <QSharedPointer>
|
||||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
|
||||
class OrgFreedesktopDBusPropertiesInterface;
|
||||
class OrgMprisMediaPlayer2PlayerInterface;
|
||||
|
||||
|
@ -53,8 +51,6 @@ private:
|
|||
|
||||
#define PACKET_TYPE_MPRIS QStringLiteral("kdeconnect.mpris")
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_MPRIS)
|
||||
|
||||
class MprisControlPlugin
|
||||
: public KdeConnectPlugin
|
||||
{
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
kdeconnect_add_plugin(kdeconnect_mprisremote JSON kdeconnect_mprisremote.json SOURCES mprisremoteplugin.cpp mprisremoteplayer.cpp mprisremoteplayermediaplayer2.cpp mprisremoteplayermediaplayer2player.cpp)
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_mprisremote_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_MPRISREMOTE CATEGORY_NAME kdeconnect.plugin.mprisremote
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mprisremote)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_mprisremote JSON kdeconnect_mprisremote.json SOURCES mprisremoteplugin.cpp mprisremoteplayer.cpp mprisremoteplayermediaplayer2.cpp mprisremoteplayermediaplayer2player.cpp ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_mprisremote
|
||||
kdeconnectcore
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
#include <KPluginFactory>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <core/device.h>
|
||||
|
||||
#include "plugin_mprisremote_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(MprisRemotePlugin, "kdeconnect_mprisremote.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_MPRISREMOTE, "kdeconnect.plugin.mprisremote")
|
||||
|
||||
MprisRemotePlugin::MprisRemotePlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_notification_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_NOTIFICATION CATEGORY_NAME kdeconnect.plugin.notification
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin notification)")
|
||||
|
||||
set(kdeconnect_notifications_SRCS
|
||||
notification.cpp
|
||||
notificationsplugin.cpp
|
||||
notificationsdbusinterface.cpp
|
||||
sendreplydialog.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
ki18n_wrap_ui(kdeconnect_notifications_SRCS sendreplydialog.ui)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "notification.h"
|
||||
#include "notification_debug.h"
|
||||
#include "plugin_notification_debug.h"
|
||||
|
||||
#include <KNotification>
|
||||
#include <QtGlobal>
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/**
|
||||
* Copyright 2014 Alejandro Fiestas Olivares <afiestas@kde.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License or (at your option) version 3 or any later version
|
||||
* accepted by the membership of KDE e.V. (or its successor approved
|
||||
* by the membership of KDE e.V.), which shall act as a proxy
|
||||
* defined in Section 14 of version 3 of the license.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef NOTIFICATION_DEBUG_H
|
||||
#define NOTIFICATION_DEBUG_H
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_NOTIFICATION)
|
||||
|
||||
#endif //NOTIFICATION_DEBUG_H
|
|
@ -19,7 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "notificationsdbusinterface.h"
|
||||
#include "notification_debug.h"
|
||||
#include "plugin_notification_debug.h"
|
||||
#include "notification.h"
|
||||
|
||||
#include <core/device.h>
|
||||
|
|
|
@ -21,14 +21,12 @@
|
|||
#include "notificationsplugin.h"
|
||||
|
||||
#include "notificationsdbusinterface.h"
|
||||
#include "notification_debug.h"
|
||||
#include "plugin_notification_debug.h"
|
||||
|
||||
#include <KPluginFactory>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(NotificationsPlugin, "kdeconnect_notifications.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_NOTIFICATION, "kdeconnect.plugin.notification")
|
||||
|
||||
NotificationsPlugin::NotificationsPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -8,9 +8,16 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_pausemusic_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_PAUSEMUSIC CATEGORY_NAME kdeconnect.plugin.pausemusic
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin pausemusic)")
|
||||
|
||||
qt5_add_dbus_interface(kdeconnect_pausemusic_SRCS org.mpris.MediaPlayer2.Player.xml mprisplayer)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_pausemusic JSON kdeconnect_pausemusic.json SOURCES ${kdeconnect_pausemusic_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_pausemusic JSON kdeconnect_pausemusic.json SOURCES ${kdeconnect_pausemusic_SRCS} ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_pausemusic
|
||||
kdeconnectcore
|
||||
|
|
|
@ -22,11 +22,10 @@
|
|||
#include "pausemusicplugin-win.h"
|
||||
|
||||
#include <KPluginFactory>
|
||||
#include "plugin_pausemusic_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(PauseMusicPlugin, "kdeconnect_pausemusic.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PAUSEMUSIC, "kdeconnect.plugin.pausemusic")
|
||||
|
||||
PauseMusicPlugin::PauseMusicPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -28,13 +28,9 @@
|
|||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <mmdeviceapi.h>
|
||||
#include <endpointvolume.h>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PAUSEMUSIC)
|
||||
|
||||
class PauseMusicPlugin
|
||||
: public KdeConnectPlugin
|
||||
{
|
||||
|
|
|
@ -29,11 +29,10 @@
|
|||
|
||||
//In older Qt released, qAsConst isnt available
|
||||
#include "qtcompat_p.h"
|
||||
#include "plugin_pausemusic_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(PauseMusicPlugin, "kdeconnect_pausemusic.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PAUSEMUSIC, "kdeconnect.plugin.pausemusic")
|
||||
|
||||
PauseMusicPlugin::PauseMusicPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
, mutedSinks()
|
||||
|
|
|
@ -27,10 +27,6 @@
|
|||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PAUSEMUSIC)
|
||||
|
||||
class PauseMusicPlugin
|
||||
: public KdeConnectPlugin
|
||||
{
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_photo_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_PHOTO CATEGORY_NAME kdeconnect.plugin.photo
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin photo)")
|
||||
|
||||
set(kdeconnect_photo_SRCS
|
||||
photoplugin.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_photo JSON kdeconnect_photo.json SOURCES ${kdeconnect_photo_SRCS})
|
||||
|
|
|
@ -23,14 +23,12 @@
|
|||
#include <KPluginFactory>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <core/filetransferjob.h>
|
||||
#include "plugin_photo_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(PhotoPlugin, "kdeconnect_photo.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PHOTO, "kdeconnect.plugin.photo")
|
||||
|
||||
PhotoPlugin::PhotoPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_ping_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_PING CATEGORY_NAME kdeconnect.plugin.ping
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin ping)")
|
||||
|
||||
set(kdeconnect_ping_SRCS
|
||||
pingplugin.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_ping JSON kdeconnect_ping.json SOURCES ${kdeconnect_ping_SRCS})
|
||||
|
|
|
@ -25,14 +25,13 @@
|
|||
|
||||
#include <QDebug>
|
||||
#include <QDBusConnection>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <core/device.h>
|
||||
#include <core/daemon.h>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(PingPlugin, "kdeconnect_ping.json")
|
||||
#include "plugin_ping_debug.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PING, "kdeconnect.plugin.ping")
|
||||
K_PLUGIN_CLASS_WITH_JSON(PingPlugin, "kdeconnect_ping.json")
|
||||
|
||||
PingPlugin::PingPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
qt5_add_resources(presenter_SRCS assets.qrc)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_presenter JSON kdeconnect_presenter.json SOURCES presenterplugin.cpp ${presenter_SRCS})
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_presenter_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_PRESENT CATEGORY_NAME kdeconnect.plugin.presenter
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin presenter)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_presenter JSON kdeconnect_presenter.json SOURCES presenterplugin.cpp ${presenter_SRCS} ${debug_file_SRCS})
|
||||
target_link_libraries(kdeconnect_presenter
|
||||
kdeconnectcore
|
||||
Qt5::DBus
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include <QDebug>
|
||||
#include <QDBusConnection>
|
||||
#include <QLoggingCategory>
|
||||
#include <QQuickView>
|
||||
#include <QQmlError>
|
||||
#include <QQuickItem>
|
||||
|
@ -34,11 +33,10 @@
|
|||
#include <core/device.h>
|
||||
#include <core/daemon.h>
|
||||
#include <QScreen>
|
||||
#include "plugin_presenter_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(PresenterPlugin, "kdeconnect_presenter.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PRESENT, "kdeconnect.plugin.presenter")
|
||||
|
||||
class PresenterView : public QQuickView
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_remotecommands_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_REMOTECOMMANDS CATEGORY_NAME kdeconnect.plugin.remotecommands
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecommands)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_remotecommands JSON kdeconnect_remotecommands.json
|
||||
SOURCES remotecommandsplugin.cpp
|
||||
SOURCES remotecommandsplugin.cpp ${debug_file_SRCS}
|
||||
)
|
||||
|
||||
|
||||
target_link_libraries(kdeconnect_remotecommands
|
||||
kdeconnectcore
|
||||
Qt5::DBus
|
||||
|
|
|
@ -22,17 +22,15 @@
|
|||
|
||||
#include <KPluginFactory>
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <core/networkpacket.h>
|
||||
#include <core/device.h>
|
||||
|
||||
#include "plugin_remotecommands_debug.h"
|
||||
|
||||
#define PACKET_TYPE_RUNCOMMAND_REQUEST QLatin1String("kdeconnect.runcommand.request")
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(RemoteCommandsPlugin, "kdeconnect_remotecommands.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_REMOTECOMMANDS, "kdeconnect.plugin.remotecommands")
|
||||
|
||||
RemoteCommandsPlugin::RemoteCommandsPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
, m_commands("{}")
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
kdeconnect_add_plugin(kdeconnect_remotecontrol JSON kdeconnect_remotecontrol.json SOURCES remotecontrolplugin.cpp)
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_remotecontrol_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_REMOTECONTROL CATEGORY_NAME kdeconnect.plugin.remotecontrol
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecontrol)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_remotecontrol JSON kdeconnect_remotecontrol.json SOURCES remotecontrolplugin.cpp ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_remotecontrol
|
||||
kdeconnectcore
|
||||
|
|
|
@ -26,14 +26,12 @@
|
|||
#include <QDebug>
|
||||
#include <QDBusConnection>
|
||||
#include <QPoint>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <core/device.h>
|
||||
#include "plugin_remotecontrol_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(RemoteControlPlugin, "kdeconnect_remotecontrol.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_REMOTECONTROL, "kdeconnect.plugin.remotecontrol")
|
||||
|
||||
RemoteControlPlugin::RemoteControlPlugin(QObject* parent, const QVariantList &args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_remotekeyboard_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_REMOTEKEYBOARD CATEGORY_NAME kdeconnect.plugin.remotekeyboard
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotekeyboard)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_remotekeyboard JSON kdeconnect_remotekeyboard.json
|
||||
SOURCES remotekeyboardplugin.cpp)
|
||||
SOURCES remotekeyboardplugin.cpp ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_remotekeyboard
|
||||
kdeconnectcore
|
||||
|
|
|
@ -23,11 +23,10 @@
|
|||
#include <QDebug>
|
||||
#include <QString>
|
||||
#include <QVariantMap>
|
||||
#include "plugin_remotekeyboard_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(RemoteKeyboardPlugin, "kdeconnect_remotekeyboard.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_REMOTEKEYBOARD, "kdeconnect.plugin.remotekeyboard");
|
||||
|
||||
// Mapping of Qt::Key to internal codes, corresponds to the mapping in mousepadplugin
|
||||
QMap<int, int> specialKeysMap = {
|
||||
//0, // Invalid
|
||||
|
|
|
@ -23,13 +23,10 @@
|
|||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
#include <QDBusInterface>
|
||||
#include <QLoggingCategory>
|
||||
#include <QVariantMap>
|
||||
|
||||
struct FakeKey;
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_REMOTEKEYBOARD);
|
||||
|
||||
#define PACKET_TYPE_MOUSEPAD_REQUEST QLatin1String("kdeconnect.mousepad.request")
|
||||
#define PACKET_TYPE_MOUSEPAD_ECHO QLatin1String("kdeconnect.mousepad.echo")
|
||||
#define PACKET_TYPE_MOUSEPAD_KEYBOARDSTATE QLatin1String("kdeconnect.mousepad.keyboardstate")
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_remotesystemvolume_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_REMOTESYSTEMVOLUME CATEGORY_NAME kdeconnect.plugin.remotesystemvolume
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotesystemvolume)")
|
||||
|
||||
set(kdeconnect_remotesystemvolume_SRCS
|
||||
remotesystemvolumeplugin.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_remotesystemvolume JSON kdeconnect_remotesystemvolume.json SOURCES ${kdeconnect_remotesystemvolume_SRCS})
|
||||
|
|
|
@ -25,16 +25,15 @@
|
|||
|
||||
#include <QDebug>
|
||||
#include <QDBusConnection>
|
||||
#include <QLoggingCategory>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonDocument>
|
||||
|
||||
#include <core/device.h>
|
||||
#include <core/daemon.h>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(RemoteSystemVolumePlugin, "kdeconnect_remotesystemvolume.json")
|
||||
#include "plugin_remotesystemvolume_debug.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_REMOTESYSTEMVOLUME, "kdeconnect.plugin.remotesystemvolume")
|
||||
K_PLUGIN_CLASS_WITH_JSON(RemoteSystemVolumePlugin, "kdeconnect_remotesystemvolume.json")
|
||||
|
||||
RemoteSystemVolumePlugin::RemoteSystemVolumePlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_runcommand_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_RUNCOMMAND CATEGORY_NAME kdeconnect.plugin.runcommand
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin runcommand)")
|
||||
|
||||
set(kdeconnect_runcommand_SRCS
|
||||
runcommandplugin.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_runcommand JSON kdeconnect_runcommand.json SOURCES ${kdeconnect_runcommand_SRCS})
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include <QDBusConnection>
|
||||
#include <QProcess>
|
||||
#include <QDir>
|
||||
#include <QLoggingCategory>
|
||||
#include <QSettings>
|
||||
#include <QJsonDocument>
|
||||
|
||||
|
@ -39,6 +38,8 @@
|
|||
#include <core/networkpacket.h>
|
||||
#include <core/device.h>
|
||||
|
||||
#include "plugin_runcommand_debug.h"
|
||||
|
||||
#define PACKET_TYPE_RUNCOMMAND QStringLiteral("kdeconnect.runcommand")
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
@ -53,8 +54,6 @@
|
|||
|
||||
K_PLUGIN_CLASS_WITH_JSON(RunCommandPlugin, "kdeconnect_runcommand.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_RUNCOMMAND, "kdeconnect.plugin.runcommand")
|
||||
|
||||
RunCommandPlugin::RunCommandPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,14 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_screensaver_inhibit JSON kdeconnect_screensaver_inhibit.json SOURCES ${kdeconnect_screensaver_inhibit_SRCS})
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER kdeconnect_screensaverinhibit_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_SCREENSAVERINHIBIT CATEGORY_NAME kdeconnect.plugin.screensaverinhibit
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin screensaverinhibit)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_screensaver_inhibit JSON kdeconnect_screensaver_inhibit.json SOURCES ${kdeconnect_screensaver_inhibit_SRCS} ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_screensaver_inhibit kdeconnectcore)
|
||||
if(NOT APPLE AND NOT WIN32)
|
||||
|
|
|
@ -21,12 +21,10 @@
|
|||
#include "screensaverinhibitplugin-macos.h"
|
||||
|
||||
#include <KPluginFactory>
|
||||
#include <QLoggingCategory>
|
||||
#include "kdeconnect_screensaverinhibit_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(ScreensaverInhibitPlugin, "kdeconnect_screensaver_inhibit.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SCREENSAVERINHIBIT, "kdeconnect.plugin.screensaverinhibit")
|
||||
|
||||
ScreensaverInhibitPlugin::ScreensaverInhibitPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args), m_caffeinateProcess(nullptr)
|
||||
{
|
||||
|
|
|
@ -21,13 +21,11 @@
|
|||
#include "screensaverinhibitplugin-win.h"
|
||||
|
||||
#include <KPluginFactory>
|
||||
#include <QLoggingCategory>
|
||||
#include <Windows.h>
|
||||
#include "kdeconnect_screensaverinhibit_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(ScreensaverInhibitPlugin, "kdeconnect_screensaver_inhibit.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SCREENSAVERINHIBIT, "kdeconnect.plugin.screensaverinhibit")
|
||||
|
||||
ScreensaverInhibitPlugin::ScreensaverInhibitPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -22,14 +22,12 @@
|
|||
|
||||
#include <KLocalizedString>
|
||||
#include <KPluginFactory>
|
||||
#include <QLoggingCategory>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusInterface>
|
||||
#include "kdeconnect_screensaverinhibit_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(ScreensaverInhibitPlugin, "kdeconnect_screensaver_inhibit.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SCREENSAVERINHIBIT, "kdeconnect.plugin.screensaverinhibit")
|
||||
|
||||
#define INHIBIT_SERVICE QStringLiteral("org.freedesktop.ScreenSaver")
|
||||
#define INHIBIT_INTERFACE INHIBIT_SERVICE
|
||||
#define INHIBIT_PATH QStringLiteral("/ScreenSaver")
|
||||
|
|
|
@ -6,11 +6,19 @@ endif()
|
|||
|
||||
configure_file(kdeconnect_sendnotifications.json.in kdeconnect_sendnotifications.json)
|
||||
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_sendnotification_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_SENDNOTIFICATION CATEGORY_NAME kdeconnect.plugin.sendnotification
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sendnotification)")
|
||||
|
||||
set(kdeconnect_sendnotifications_SRCS
|
||||
sendnotificationsplugin.cpp
|
||||
notificationslistener.cpp
|
||||
notifyingapplication.cpp
|
||||
kdeconnect_sendnotifications.json
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_sendnotifications JSON "${CMAKE_CURRENT_BINARY_DIR}/kdeconnect_sendnotifications.json" SOURCES ${kdeconnect_sendnotifications_SRCS})
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <QDBusInterface>
|
||||
#include <QDBusArgument>
|
||||
#include <QtDebug>
|
||||
#include <QLoggingCategory>
|
||||
#include <QStandardPaths>
|
||||
#include <QImage>
|
||||
#include <KConfig>
|
||||
|
@ -36,7 +35,7 @@
|
|||
#include <dbushelper.h>
|
||||
|
||||
#include "sendnotificationsplugin.h"
|
||||
#include "sendnotification_debug.h"
|
||||
#include "plugin_sendnotification_debug.h"
|
||||
#include "notifyingapplication.h"
|
||||
|
||||
//In older Qt released, qAsConst isnt available
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/**
|
||||
* Copyright 2014 Alejandro Fiestas Olivares <afiestas@kde.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License or (at your option) version 3 or any later version
|
||||
* accepted by the membership of KDE e.V. (or its successor approved
|
||||
* by the membership of KDE e.V.), which shall act as a proxy
|
||||
* defined in Section 14 of version 3 of the license.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef SENDNOTIFICATION_DEBUG_H
|
||||
#define SENDNOTIFICATION_DEBUG_H
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SENDNOTIFICATION)
|
||||
|
||||
#endif //NOTIFICATION_DEBUG_H
|
|
@ -21,14 +21,12 @@
|
|||
#include "sendnotificationsplugin.h"
|
||||
|
||||
#include "notificationslistener.h"
|
||||
#include "sendnotification_debug.h"
|
||||
#include "plugin_sendnotification_debug.h"
|
||||
|
||||
#include <KPluginFactory>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(SendNotificationsPlugin, "kdeconnect_sendnotifications.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SENDNOTIFICATION, "kdeconnect.plugin.sendnotification")
|
||||
|
||||
SendNotificationsPlugin::SendNotificationsPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -14,7 +14,14 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_sftp JSON kdeconnect_sftp.json SOURCES ${kdeconnect_sftp_SRCS})
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_sftp_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_SFTP CATEGORY_NAME kdeconnect.plugin.sftp
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sftp)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_sftp JSON kdeconnect_sftp.json SOURCES ${kdeconnect_sftp_SRCS} ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_sftp
|
||||
kdeconnectcore
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include "mountloop.h"
|
||||
#include "config-sftp.h"
|
||||
#include "sftp_debug.h"
|
||||
#include "plugin_sftp_debug.h"
|
||||
#include "kdeconnectconfig.h"
|
||||
|
||||
Mounter::Mounter(SftpPlugin* sftp)
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/**
|
||||
* Copyright 2014 Alejandro Fiestas Olivares <afiestas@kde.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License or (at your option) version 3 or any later version
|
||||
* accepted by the membership of KDE e.V. (or its successor approved
|
||||
* by the membership of KDE e.V.), which shall act as a proxy
|
||||
* defined in Section 14 of version 3 of the license.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef SFTP_DEBUG_H
|
||||
#define SFTP_DEBUG_H
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SFTP)
|
||||
|
||||
#endif //SFTP_DEBUG_H
|
|
@ -29,12 +29,10 @@
|
|||
#include <KLocalizedString>
|
||||
#include <KPluginFactory>
|
||||
|
||||
#include "sftp_debug.h"
|
||||
#include "plugin_sftp_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(SftpPlugin, "kdeconnect_sftp.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SFTP, "kdeconnect.plugin.sftp")
|
||||
|
||||
SftpPlugin::SftpPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -32,12 +32,10 @@
|
|||
#include <KPluginFactory>
|
||||
|
||||
#include "mounter.h"
|
||||
#include "sftp_debug.h"
|
||||
#include "plugin_sftp_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(SftpPlugin, "kdeconnect_sftp.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SFTP, "kdeconnect.plugin.sftp")
|
||||
|
||||
static const QSet<QString> fields_c = QSet<QString>() << QStringLiteral("ip") << QStringLiteral("port") << QStringLiteral("user") << QStringLiteral("port") << QStringLiteral("path");
|
||||
|
||||
struct SftpPlugin::Pimpl
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_share_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_SHARE CATEGORY_NAME kdeconnect.plugin.share
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin share)")
|
||||
|
||||
set(kdeconnect_share_SRCS
|
||||
shareplugin.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_share JSON kdeconnect_share.json SOURCES ${kdeconnect_share_SRCS})
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/**
|
||||
* Copyright 2014 Alejandro Fiestas Olivares <afiestas@kde.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License or (at your option) version 3 or any later version
|
||||
* accepted by the membership of KDE e.V. (or its successor approved
|
||||
* by the membership of KDE e.V.), which shall act as a proxy
|
||||
* defined in Section 14 of version 3 of the license.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef SHARE_DEBUG_H
|
||||
#define SHARE_DEBUG_H
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SHARE)
|
||||
|
||||
#endif //SHARE_DEBUG_H
|
|
@ -19,7 +19,6 @@
|
|||
*/
|
||||
|
||||
#include "shareplugin.h"
|
||||
#include "share_debug.h"
|
||||
|
||||
#include <QStandardPaths>
|
||||
#include <QProcess>
|
||||
|
@ -39,11 +38,10 @@
|
|||
|
||||
#include "core/filetransferjob.h"
|
||||
#include "core/daemon.h"
|
||||
#include "plugin_share_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(SharePlugin, "kdeconnect_share.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SHARE, "kdeconnect.plugin.share")
|
||||
|
||||
SharePlugin::SharePlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
, m_compositeJob()
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_sms_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_SMS CATEGORY_NAME kdeconnect.plugin.sms
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sms)")
|
||||
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER kdeconnect_conversations_debug.h
|
||||
IDENTIFIER KDECONNECT_CONVERSATIONS CATEGORY_NAME kdeconnect.conversations
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (conversations)")
|
||||
|
||||
set(kdeconnect_sms_SRCS
|
||||
smsplugin.cpp
|
||||
conversationsdbusinterface.cpp
|
||||
requestconversationworker.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
include_directories(${CMAKE_BINARY_DIR})
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <core/device.h>
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_CONVERSATIONS, "kdeconnect.conversations")
|
||||
#include "kdeconnect_conversations_debug.h"
|
||||
|
||||
QMap<QString, ConversationsDbusInterface*> ConversationsDbusInterface::liveConversationInterfaces;
|
||||
|
||||
|
|
|
@ -26,18 +26,16 @@
|
|||
|
||||
#include <QDebug>
|
||||
#include <QDBusConnection>
|
||||
#include <QLoggingCategory>
|
||||
#include <QProcess>
|
||||
|
||||
#include <core/device.h>
|
||||
#include <core/daemon.h>
|
||||
|
||||
#include "sendreplydialog.h"
|
||||
#include "plugin_sms_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(SmsPlugin, "kdeconnect_sms.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SMS, "kdeconnect.plugin.sms")
|
||||
|
||||
SmsPlugin::SmsPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
, m_telepathyInterface(QStringLiteral("org.freedesktop.Telepathy.ConnectionManager.kdeconnect"), QStringLiteral("/kdeconnect"))
|
||||
|
|
|
@ -12,7 +12,13 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_systemvolume JSON kdeconnect_systemvolume.json SOURCES ${kdeconnect_systemvolume_SRCS})
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_systemvolume_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_SYSTEMVOLUME CATEGORY_NAME kdeconnect.plugin.systemvolume
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin systemvolume)")
|
||||
kdeconnect_add_plugin(kdeconnect_systemvolume JSON kdeconnect_systemvolume.json SOURCES ${kdeconnect_systemvolume_SRCS} ${debug_file_SRCS})
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(kdeconnect_systemvolume
|
||||
|
|
|
@ -23,14 +23,13 @@
|
|||
#include <KPluginFactory>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QLoggingCategory>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include "plugin_systemvolume_debug.h"
|
||||
|
||||
K_PLUGIN_FACTORY_WITH_JSON( KdeConnectPluginFactory, "kdeconnect_systemvolume.json", registerPlugin< SystemvolumePlugin >(); )
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SYSTEMVOLUME, "kdeconnect.plugin.systemvolume")
|
||||
|
||||
class MacOSCoreAudioDevice
|
||||
{
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <KPluginFactory>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QLoggingCategory>
|
||||
#include <QProcess>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonDocument>
|
||||
|
@ -33,10 +32,10 @@
|
|||
|
||||
#include <PulseAudioQt/Sink>
|
||||
#include <PulseAudioQt/Context>
|
||||
#include "plugin_systemvolume_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(SystemvolumePlugin, "kdeconnect_systemvolume.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SYSTEMVOLUME, "kdeconnect.plugin.systemvolume")
|
||||
|
||||
SystemvolumePlugin::SystemvolumePlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include "systemvolumeplugin-win.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QLoggingCategory>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
|
@ -32,9 +31,9 @@
|
|||
|
||||
#include <core/device.h>
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(SystemvolumePlugin, "kdeconnect_systemvolume.json")
|
||||
#include "plugin_systemvolume_debug.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SYSTEMVOLUME, "kdeconnect.plugin.systemvolume")
|
||||
K_PLUGIN_CLASS_WITH_JSON(SystemvolumePlugin, "kdeconnect_systemvolume.json")
|
||||
|
||||
// Private classes of SystemvolumePlugin
|
||||
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_telephony_debug.h
|
||||
IDENTIFIER KDECONNECT_PLUGIN_TELEPHONY CATEGORY_NAME kdeconnect.plugin.telephony
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin telephony)")
|
||||
|
||||
set(kdeconnect_telephony_SRCS
|
||||
telephonyplugin.cpp
|
||||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
include_directories(${CMAKE_BINARY_DIR})
|
||||
|
|
|
@ -27,11 +27,10 @@
|
|||
|
||||
#include <KPluginFactory>
|
||||
#include <KNotification>
|
||||
#include "plugin_telephony_debug.h"
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(TelephonyPlugin, "kdeconnect_telephony.json")
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_TELEPHONY, "kdeconnect.plugin.telephony")
|
||||
|
||||
TelephonyPlugin::TelephonyPlugin(QObject* parent, const QVariantList& args)
|
||||
: KdeConnectPlugin(parent, args)
|
||||
{
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#ifndef TELEPHONYPLUGIN_H
|
||||
#define TELEPHONYPLUGIN_H
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QPointer>
|
||||
|
||||
#include <KNotification>
|
||||
|
@ -45,8 +44,6 @@
|
|||
|
||||
#define PACKET_TYPE_TELEPHONY_REQUEST_MUTE QStringLiteral("kdeconnect.telephony.request_mute")
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_TELEPHONY)
|
||||
|
||||
class TelephonyPlugin
|
||||
: public KdeConnectPlugin
|
||||
{
|
||||
|
|
|
@ -2,9 +2,30 @@ qt5_add_resources(KCSMS_SRCS resources.qrc)
|
|||
|
||||
find_package(KF5People)
|
||||
|
||||
set(smshelper_debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
smshelper_debug_file_SRCS HEADER smshelper_debug.h
|
||||
IDENTIFIER KDECONNECT_SMS_SMSHELPER CATEGORY_NAME kdeconnect.sms.smshelper
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (smshelper)")
|
||||
|
||||
set(sms_debug_files_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
sms_debug_files_SRCS HEADER sms_conversation_debug.h
|
||||
IDENTIFIER KDECONNECT_SMS_CONVERSATION_MODEL CATEGORY_NAME kdeconnect.sms.conversation
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (sms conversation model)")
|
||||
|
||||
ecm_qt_declare_logging_category(
|
||||
sms_debug_files_SRCS HEADER sms_conversations_list_debug.h
|
||||
IDENTIFIER KDECONNECT_SMS_CONVERSATIONS_LIST_MODEL CATEGORY_NAME kdeconnect.sms.conversations_list
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (sms conversations list)")
|
||||
|
||||
add_library(kdeconnectsmshelper
|
||||
smshelper.cpp
|
||||
gsmasciimap.cpp
|
||||
${smshelper_debug_file_SRCS}
|
||||
)
|
||||
|
||||
set_target_properties(kdeconnectsmshelper PROPERTIES
|
||||
|
@ -35,7 +56,8 @@ add_executable(kdeconnect-sms
|
|||
conversationlistmodel.cpp
|
||||
conversationmodel.cpp
|
||||
conversationssortfilterproxymodel.cpp
|
||||
${KCSMS_SRCS})
|
||||
${KCSMS_SRCS}
|
||||
${sms_debug_files_SRCS})
|
||||
|
||||
target_include_directories(kdeconnect-sms PUBLIC ${CMAKE_BINARY_DIR})
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include "conversationlistmodel.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QLoggingCategory>
|
||||
#include <QPainter>
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
@ -30,8 +29,7 @@
|
|||
#include "interfaces/conversationmessage.h"
|
||||
#include "interfaces/dbusinterfaces.h"
|
||||
#include "smshelper.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_SMS_CONVERSATIONS_LIST_MODEL, "kdeconnect.sms.conversations_list")
|
||||
#include "sms_conversations_list_debug.h"
|
||||
|
||||
#define INVALID_THREAD_ID -1
|
||||
#define INVALID_DATE -1
|
||||
|
|
|
@ -23,13 +23,10 @@
|
|||
#define CONVERSATIONLISTMODEL_H
|
||||
|
||||
#include <QStandardItemModel>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include "interfaces/conversationmessage.h"
|
||||
#include "interfaces/dbusinterfaces.h"
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_SMS_CONVERSATIONS_LIST_MODEL)
|
||||
|
||||
class ConversationListModel
|
||||
: public QStandardItemModel
|
||||
{
|
||||
|
|
|
@ -21,14 +21,12 @@
|
|||
|
||||
#include "conversationmodel.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
||||
#include "interfaces/conversationmessage.h"
|
||||
#include "smshelper.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_SMS_CONVERSATION_MODEL, "kdeconnect.sms.conversation")
|
||||
#include "sms_conversation_debug.h"
|
||||
|
||||
ConversationModel::ConversationModel(QObject* parent)
|
||||
: QStandardItemModel(parent)
|
||||
|
|
|
@ -23,14 +23,11 @@
|
|||
#define CONVERSATIONMODEL_H
|
||||
|
||||
#include <QStandardItemModel>
|
||||
#include <QLoggingCategory>
|
||||
#include <QSet>
|
||||
|
||||
#include "interfaces/conversationmessage.h"
|
||||
#include "interfaces/dbusinterfaces.h"
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_SMS_CONVERSATION_MODEL)
|
||||
|
||||
#define INVALID_THREAD_ID -1
|
||||
|
||||
class ConversationModel
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include <QPainter>
|
||||
#include <QRegularExpression>
|
||||
#include <QString>
|
||||
#include <QLoggingCategory>
|
||||
#include <QStandardPaths>
|
||||
#include <QHash>
|
||||
|
||||
|
@ -35,8 +34,7 @@
|
|||
|
||||
#include "interfaces/conversationmessage.h"
|
||||
#include "smsapp/gsmasciimap.h"
|
||||
|
||||
Q_LOGGING_CATEGORY(KDECONNECT_SMS_SMSHELPER, "kdeconnect.sms.smshelper")
|
||||
#include "smshelper_debug.h"
|
||||
|
||||
QObject* SmsHelper::singletonProvider(QQmlEngine *engine, QJSEngine *scriptEngine)
|
||||
{
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <QIcon>
|
||||
#include <QJSEngine>
|
||||
#include <QLoggingCategory>
|
||||
#include <QQmlEngine>
|
||||
#include <QSharedPointer>
|
||||
|
||||
|
@ -34,8 +33,6 @@
|
|||
#include "kdeconnectsms_export.h"
|
||||
#include "smsapp/smscharcount.h"
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_SMS_SMSHELPER)
|
||||
|
||||
class PersonsCache;
|
||||
|
||||
class KDECONNECTSMSAPPLIB_EXPORT SmsHelper : public QObject
|
||||
|
|
Loading…
Reference in a new issue