Includes cleanup
This commit is contained in:
parent
549f4c0815
commit
a3decd542c
12 changed files with 31 additions and 33 deletions
|
@ -14,6 +14,8 @@ find_package(Qt5 5.2 REQUIRED COMPONENTS Quick Test)
|
||||||
find_package(KF5 REQUIRED COMPONENTS I18n KIO Notifications ConfigWidgets DBusAddons KCMUtils IconThemes)
|
find_package(KF5 REQUIRED COMPONENTS I18n KIO Notifications ConfigWidgets DBusAddons KCMUtils IconThemes)
|
||||||
find_package(Qca-qt5 2.1.0 REQUIRED)
|
find_package(Qca-qt5 2.1.0 REQUIRED)
|
||||||
|
|
||||||
|
include_directories(${CMAKE_SOURCE_DIR})
|
||||||
|
|
||||||
configure_file(kdeconnect-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h)
|
configure_file(kdeconnect-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h)
|
||||||
|
|
||||||
include(KDEInstallDirs)
|
include(KDEInstallDirs)
|
||||||
|
@ -29,6 +31,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
add_subdirectory(core)
|
add_subdirectory(core)
|
||||||
add_subdirectory(kcm)
|
add_subdirectory(kcm)
|
||||||
|
add_subdirectory(kcmplugin)
|
||||||
add_subdirectory(kio)
|
add_subdirectory(kio)
|
||||||
add_subdirectory(icon)
|
add_subdirectory(icon)
|
||||||
add_subdirectory(interfaces)
|
add_subdirectory(interfaces)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
include_directories(${CMAKE_SOURCE_DIR})
|
|
||||||
|
|
||||||
add_executable(kdeconnect-cli kdeconnect-cli.cpp)
|
add_executable(kdeconnect-cli kdeconnect-cli.cpp)
|
||||||
|
|
||||||
|
|
|
@ -18,17 +18,18 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <interfaces/devicesmodel.h>
|
|
||||||
#include <interfaces/notificationsmodel.h>
|
|
||||||
#include <interfaces/dbusinterfaces.h>
|
|
||||||
#include <QDBusMessage>
|
#include <QDBusMessage>
|
||||||
#include <QDBusConnection>
|
#include <QDBusConnection>
|
||||||
#include <QGuiApplication>
|
#include <QCoreApplication>
|
||||||
#include <KAboutData>
|
|
||||||
#include <KLocalizedString>
|
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
|
||||||
#include "../kdeconnect-version.h"
|
#include <KAboutData>
|
||||||
|
#include <KLocalizedString>
|
||||||
|
|
||||||
|
#include "interfaces/devicesmodel.h"
|
||||||
|
#include "interfaces/notificationsmodel.h"
|
||||||
|
#include "interfaces/dbusinterfaces.h"
|
||||||
|
#include "kdeconnect-version.h"
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,7 +9,9 @@ include_directories(
|
||||||
add_subdirectory(backends/lan)
|
add_subdirectory(backends/lan)
|
||||||
add_subdirectory(backends/loopback)
|
add_subdirectory(backends/loopback)
|
||||||
|
|
||||||
set(kded_kdeconnect_SRCS
|
find_package(KF5Notifications 5.9 REQUIRED)
|
||||||
|
|
||||||
|
set(kdeconnectcore_SRCS
|
||||||
${backends_kdeconnect_SRCS}
|
${backends_kdeconnect_SRCS}
|
||||||
|
|
||||||
backends/linkprovider.cpp
|
backends/linkprovider.cpp
|
||||||
|
@ -26,7 +28,7 @@ set(kded_kdeconnect_SRCS
|
||||||
device.cpp
|
device.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(kdeconnectcore SHARED ${kded_kdeconnect_SRCS})
|
add_library(kdeconnectcore SHARED ${kdeconnectcore_SRCS})
|
||||||
target_link_libraries(kdeconnectcore
|
target_link_libraries(kdeconnectcore
|
||||||
PUBLIC
|
PUBLIC
|
||||||
Qt5::Network
|
Qt5::Network
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QtCrypto>
|
#include <QtCrypto>
|
||||||
|
|
||||||
#include "../networkpackage.h"
|
#include "core/networkpackage.h"
|
||||||
|
|
||||||
class NetworkPackage;
|
class NetworkPackage;
|
||||||
class LinkProvider;
|
class LinkProvider;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
#include <QNetworkSession>
|
#include <QNetworkSession>
|
||||||
|
|
||||||
#include "../networkpackage.h"
|
#include "core/networkpackage.h"
|
||||||
|
|
||||||
class DeviceLink;
|
class DeviceLink;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
project(kdeconnectd)
|
project(kdeconnectd)
|
||||||
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR})
|
|
||||||
|
|
||||||
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-daemon")
|
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-daemon")
|
||||||
|
|
||||||
add_executable(kdeconnectd kdeconnectd.cpp)
|
add_executable(kdeconnectd kdeconnectd.cpp)
|
||||||
|
|
|
@ -29,8 +29,7 @@
|
||||||
#include <KDBusService>
|
#include <KDBusService>
|
||||||
|
|
||||||
#include "core/daemon.h"
|
#include "core/daemon.h"
|
||||||
|
#include "kdeconnect-version.h"
|
||||||
#include "../kdeconnect-version.h"
|
|
||||||
|
|
||||||
static int sigtermfd[2];
|
static int sigtermfd[2];
|
||||||
const static char deadbeef = 1;
|
const static char deadbeef = 1;
|
||||||
|
|
|
@ -21,13 +21,14 @@
|
||||||
#include "pingplugin.h"
|
#include "pingplugin.h"
|
||||||
|
|
||||||
#include <KNotification>
|
#include <KNotification>
|
||||||
#include <QIcon>
|
|
||||||
#include <QDebug>
|
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
#include <KPluginFactory>
|
#include <KPluginFactory>
|
||||||
#include <QLoggingCategory>
|
|
||||||
#include <core/device.h>
|
#include <QDebug>
|
||||||
#include <QDBusConnection>
|
#include <QDBusConnection>
|
||||||
|
#include <QLoggingCategory>
|
||||||
|
|
||||||
|
#include <core/device.h>
|
||||||
|
|
||||||
K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< PingPlugin >(); )
|
K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< PingPlugin >(); )
|
||||||
|
|
||||||
|
|
|
@ -21,20 +21,17 @@
|
||||||
#include "shareplugin.h"
|
#include "shareplugin.h"
|
||||||
#include "share_debug.h"
|
#include "share_debug.h"
|
||||||
|
|
||||||
#include <QIcon>
|
|
||||||
#include <KLocalizedString>
|
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
#include <KSharedConfig>
|
#include <QProcess>
|
||||||
#include <KConfigGroup>
|
|
||||||
#include <KJobTrackerInterface>
|
|
||||||
#include <KPluginFactory>
|
|
||||||
|
|
||||||
#include <qprocess.h>
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QDBusConnection>
|
#include <QDBusConnection>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
#include <KLocalizedString>
|
||||||
|
#include <KJobTrackerInterface>
|
||||||
|
#include <KPluginFactory>
|
||||||
|
|
||||||
#include <core/filetransferjob.h>
|
#include <core/filetransferjob.h>
|
||||||
#include "autoclosingqfile.h"
|
#include "autoclosingqfile.h"
|
||||||
|
|
||||||
|
@ -188,7 +185,6 @@ void SharePlugin::openDestinationFolder()
|
||||||
|
|
||||||
void SharePlugin::shareUrl(const QUrl& url)
|
void SharePlugin::shareUrl(const QUrl& url)
|
||||||
{
|
{
|
||||||
qDebug() << url;
|
|
||||||
NetworkPackage package(PACKAGE_TYPE_SHARE);
|
NetworkPackage package(PACKAGE_TYPE_SHARE);
|
||||||
if(url.isLocalFile()) {
|
if(url.isLocalFile()) {
|
||||||
QSharedPointer<QIODevice> ioFile(new QFile(url.toLocalFile()));
|
QSharedPointer<QIODevice> ioFile(new QFile(url.toLocalFile()));
|
||||||
|
|
|
@ -22,12 +22,11 @@
|
||||||
#define TELEPHONYPLUGIN_H
|
#define TELEPHONYPLUGIN_H
|
||||||
|
|
||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
#include <knotification.h>
|
|
||||||
|
#include <KNotification>
|
||||||
|
|
||||||
#include <core/kdeconnectplugin.h>
|
#include <core/kdeconnectplugin.h>
|
||||||
|
|
||||||
#include <KStatusNotifierItem>
|
|
||||||
|
|
||||||
#define PACKAGE_TYPE_TELEPHONY QLatin1String("kdeconnect.telephony")
|
#define PACKAGE_TYPE_TELEPHONY QLatin1String("kdeconnect.telephony")
|
||||||
|
|
||||||
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_TELEPHONY)
|
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_TELEPHONY)
|
||||||
|
|
|
@ -4,10 +4,10 @@ include_directories(
|
||||||
)
|
)
|
||||||
|
|
||||||
set(kdeconnect_libraries
|
set(kdeconnect_libraries
|
||||||
|
kdeconnectcore
|
||||||
KF5::KIOWidgets
|
KF5::KIOWidgets
|
||||||
Qt5::Network
|
Qt5::Network
|
||||||
Qt5::Test
|
Qt5::Test
|
||||||
kdeconnectcore
|
|
||||||
qca-qt5
|
qca-qt5
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue