Commit graph

53 commits

Author SHA1 Message Date
Aleix Pol Gonzalez
695133e69d Apply 2 suggestion(s) to 2 file(s) 2024-03-06 22:18:59 +00:00
Albert Vaca Cintora
e04c43882c Don't install kdeconnectd in libexec
Few programs use libexec so it's not well known and there's no real
reason to "hide" our daemon binary in case somebody wants to run it
manually.
2024-03-06 22:18:59 +00:00
Andreas Sturmlechner
79bc9a85e4 Cleanup all occurences of QT_MAJOR_VERSION in cmake
Follow-up to 7f03aa548c

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-12-28 17:49:07 +01:00
Alexander Lohnau
f740a8bda8 Use target-centric CMake approach for declaring debug category
This makes it easier to read, because we do not have to handle a list of
files that get added to the targets. In other KDE projects, we also
prefer the target centric approach.

In case one wants to reuse the same category in multiple places, it
would be best to create a small static lib. But for now, this is not
needed.
2023-07-22 20:51:19 +00:00
Alexander Lohnau
c5bfc4a5b0 Allow building against Qt6/KF6 2023-07-20 11:15:41 +03:00
Volker Krause
002848efa8 Adapt build system to also support Qt 6
This is complicated by the Qt 5.6 requirement of SailfishOS, hopefully
that didn't get broken by this.
2022-10-29 16:51:41 +02:00
Nicolas Fella
ad01ef1695 Fix activating existing settings window on Wayland
Add the necessary bits for XDG activation to work

Move the code for launching the settings from the daemon to the respective processes so that we don't need to pass activation tokens over another process boundary
2022-07-06 12:55:39 +00:00
Nicolas Fella
f7f3c01ec8 Use undeprecated install dirs
Using kde-dev-scripts/kf5/cmakelists_install_vars.pl
2022-04-21 00:50:14 +02:00
Piyush Aggarwal
ee6e427137 daemon: link to custom icons for better fallback icon in notifications 2021-06-13 05:30:15 +05:30
Piyush Aggarwal
b7ad218c66 kdeconnect_daemon: conditionally configure the daemon service to better support the windows port
BUG 412665
2020-11-10 19:06:30 +05:30
Piyush Aggarwal
bb14a772cd append link libraries for daemon in separate lines 2020-10-31 11:31:51 +00:00
Nicolas Fella
79164ca8ba Replace manual include dir handling with interface target
We use kdeconnect-version.h in several places and therefore it needs to be in the include path. We currently do this by setting target_include_path in a few places. Replace this with an interface library that we can link against that sets up the correct include path. IMO it is cleaner this way.
2020-07-30 10:53:48 +02:00
Antonio Larrosa
1d36164230 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.
2020-05-26 18:55:47 +02:00
Nicolas Fella
4de0f8cb9e Remove non-toplevel project() definitions 2019-06-12 22:47:17 +02:00
Nicolas Fella
23a1035f96 Fix build 2019-05-11 00:38:41 +02:00
Nicolas Fella
4b3f8a734d Install desktop file for kdeconnectd 2019-05-10 22:19:52 +00:00
Nicolas Fella
d4026861ab Clean up includes 2019-04-30 19:03:24 +02:00
Friedrich W. H. Kossebau
bb3ab8b631 Clean-up requirements: cmake 3.0, qt 5.7, use min versions, deduplicate KF5
Summary:
* cmake 2.8.12 is really outdated, 3.0 is minimum in plasma & kf5
* cmake_minimum_required should be at begin of toplevel CMakeLists.txt
* bump qt version to 5.7, matching the min Qt version of kf5 5.42
* with ecm being part of kf5 since early versions, share ${KF5_MIN_VERSION}
* use QT_MIN_VERSION & KF5_MIN_VERSION also for separate find_package calls
* deduplicate all KF5 components searched for in unconditionally included
  subdirs

Test Plan: Still configures and builds with all options OFF & ON

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: nicolasfella

Differential Revision: https://phabricator.kde.org/D11418
2018-03-17 23:34:33 +01:00
Aleix Pol Gonzalez
a465577005 Move the Telepathy infrastructure at the plugin level
At the moment, telepathy integration needs to be compiled within the
daemon. This creates a rather aggressive dependency with Telepathy.

This plugin proposes to move into a plugin, so that if the plugin isn't
present, telepathy becomes out of the picture.

REVIEW: 128149
2016-06-18 11:54:38 +02:00
David Edmundson
e5ff128deb Fix typo in library existing check 2015-09-12 11:11:43 +02:00
David Edmundson
d9be8f970c Check for service validity in more places
BUG: 352582
2015-09-11 21:46:25 +02:00
David Edmundson
e4cbf22519 Telepathy integration
This sends recieved text messages to any Telepathy client and allows the
user to respond from there.
This should work with both our clients and Empathy.

An account on telepathy is created on activation.

As Telepathy clients expect backends to be always running, this is
started by the daemon to
suppress client errors. The plugin system then talks to the same CM via
use of a singleton accessor.

Based on work by Alexandr Akulich then tidied up and rebased.
2015-09-10 20:36:46 +02:00
Patrick von Reth
da5c9bd30e Fix compilation on Windows. 2015-09-10 15:51:38 +02:00
Aleix Pol
11996f56ca Drop dependency of KIO from kdeconnectcore
Use QNetworkAccessManager for storing the files we receive instead of
directly KIO, then provide the KIO-based QNetworkAccessManager from the
daemon. This way we'll still get the KIO network-transparency, but the
library only depenends on QtNetwork, which will be easier to get in some
platforms.

After this change, we only depend on KConfig, KI18n and KCoreAddons, which
are tier1 and really easy to work with on any platform.

REVIEW: 123325
2015-05-05 01:07:29 +02:00
Lasse Liehu
f9d1584dd8 Fix translation domain to match the generated pot file
In Messages.sh the name was kdeconnect-kded.pot.
2015-04-04 20:10:19 +03:00
Aleix Pol
8f777040f7 Remove KNotifications dependency from libkdeconnectcore
Moves the implementation into the actual daemon. This opens the
possibility for different ways to expose these notifications depending on
where the libkdeconnect will be deployed.

REVIEW: 123076
2015-03-24 12:26:37 +01:00
Albert Vaca
a3decd542c Includes cleanup 2015-03-13 21:20:58 -07:00
Aleix Pol
2c612479fe Drop unneeded dependency in the daemon 2015-03-04 22:26:34 +01:00
Albert Vaca
18ba161f17 Fully replaced KDED for autostart + dbus activation, so we work outside KDE 2015-02-23 22:12:45 -08:00
Albert Vaca
36e5d41811 Renamed daemon -> kded 2013-09-02 03:23:34 +02:00
Albert Vaca
deeeb595b3 Implemented encryption in NetworkPackage using QCA2
Fixed some bugs in the pairing process state machine
Keys are now stored in base64 in KConfig (was storing non-allowed chars)
Updated NetworkPackage tests to include encryption
Increased networkpackage version 1 -> 2
2013-09-01 22:13:03 +02:00
Albert Vaca
b5a5416c19 Changed QSslKeys to QCA keys that will actually allow us to encrypt things 2013-08-31 13:04:00 +02:00
Albert Vaca
520d776a47 LinkProviders cleanup 2013-08-28 23:47:39 +02:00
Albert Vaca
238d81a408 Changing dbus interface to improve communication with kcm and the solid backend 2013-08-13 23:23:32 +02:00
Albert Vaca
37de0654df Rename PackageInterface -> Plugin 2013-08-13 05:14:46 +02:00
Albert Vaca
9b7eecc69d Moved plugins into separate folders and added KServiceTypeTrader 2013-08-12 16:09:52 +02:00
Albert Vaca
9022823aef Improved MPRIS controls.
MPRIS now uses xml dbus interfaces-
MPRIS now detects when properties like volume or playbas status change.
Link providers now emit connectionLost and connectionReceived, like in Android.
Disabled connection notifications.
Added some missing const modifiers.
2013-08-10 05:21:55 +02:00
Albert Vaca
e6dfaa5916 Added BroadcastTcpLinkProvider 2013-08-07 11:29:56 +02:00
Albert Vaca
7b0bbebc02 First implementation of the mpris control packageinterface 2013-07-29 18:43:13 +02:00
Albert Vaca
3eb6ecaa3f Implemented batterypackageinterface
Fixed CMake macro
2013-07-28 22:00:45 +02:00
Albert Vaca
43932a4300 Added battery reporting via dbus interface 2013-07-26 16:21:19 +02:00
Albert Vaca
ee7f6b0c6d Fixed cmakelists bug that made necessary to run make without -j
Using a nicer dbus syntax in pausemusicpackageinterface
2013-07-25 17:04:58 +02:00
Albert Vaca
54de8fa2fa Android: Uses Apache Mina to abstract socket management
KDE: Housekeeping
2013-07-24 18:42:33 +02:00
Albert Vaca
30b920b9a1 Added clipboard sync
Merged "package emitters" and "package receivers" in "package interfaces"
2013-07-23 17:50:09 +02:00
Albert Vaca
7ef29fdd69 Implemented bi-directional communication using tcp. 2013-07-23 16:11:54 +02:00
Albert Vaca
acadeef76d Rewritten old package emitters and receivers using the new package format
Splitted up ping receiver from notification receiver in KDE
Improved pausemusic receiver
Fixed same computer being discovered multiple times
Fixed some other minor bugs and compilation warnings
2013-07-04 19:17:22 +02:00
Albert Vaca
b1e4e2d836 New networkpackage format and serialization using qjson and qvariantmap (and templates fun) 2013-07-04 01:09:49 +02:00
Albert Vaca
975892dcd0 Yet another refactor, mostly moving code from from daemon class to device class
Device now has a public dbus interface
Removed wizard from kcm: now the main list shows all the devices and you can pair/unpair using a checkbox
Both Kde and Android now use unique device ids
2013-07-03 03:52:44 +02:00
Albert Vaca
5fbd33e8c5 Implemented communication wizard -> kcm
Renamed androidshine -> kdeconnect
2013-07-02 01:50:32 +02:00
Albert Vaca
df12667f10 Fixed cmake build 2013-06-25 18:43:54 +02:00