Commit graph

16 commits

Author SHA1 Message Date
Aleix Pol
5c9d3a9d42 Make a new kdeconnectcore library
Solves the need of compiling device.cpp against all plugins. Also
networkpackage and others don't need to either.

REVIEW: 118742
2014-06-14 14:31:31 +02:00
Àlex Fiestas
cbd6809932 Rename pairingTimer to m_pairingTimeout 2014-04-14 21:57:48 +02:00
Albert Vaca
830dd34402 PrivateKey field in KConfig is now PrivateKeyPath
It was causing errors on pre-existent installations, that used the field
as if it contained the key.

Relaxed permissions check, as it was silently return if they were wrong
and this is very confusing for a user (that should open the log to see the
error)
2014-01-23 21:00:24 +01:00
Samoilenko Yuri
b0c9f48efc QObject parent semantic in Device 2014-01-23 02:31:27 +04:00
Samoilenko Yuri
f9bad88aeb using key for auth. A lot of debug outputs 2014-01-17 12:57:07 +04:00
Samoilenko Yuri
b1de40d29e PrivateKey management refactored
- privateKey now stored in ~/.kde4/apps/kdeconnect/key.pem
 - publicKey now stored in ~/.kde4/apps/kdeconnect/key.pub
 - Daemon checks right permission(very strict) when starting

Testing needed :)
2014-01-16 20:36:05 +04:00
Albert Vaca
b1c8726cac Refactor to remove code duplication in Device 2013-11-06 21:34:55 +01:00
Albert Vaca
2ca7436e2c Device now reads and keeps the deviceType it receives in identityPackages 2013-11-06 21:34:55 +01:00
Aleix Pol Gonzalez
5e151d185e Improved package dispatch to the different plugins
Before this patch, all plugins had to discard received packages that were
not for themselves. This could be a security problem (a plugin could sniff
other plugin's packages) and also adds some complexity and processing.

This patch makes the device instance aware of what services are required
by the different plugins and when a package is received the corresponding
plugins will get the package.

These services will be listed on the plugin's desktop file, so the user
can decide whether to enable a plugin.

Note that this only works for receiving, not sending.

REVIEW: 113210
2013-10-29 17:46:57 +01:00
Aleix Pol
faa3daa585 Code review
Fixes/adds some comments.
Proper use of some Qt API.

REVIEW: 113195
2013-10-11 15:20:04 +02:00
Albert Vaca
920d945a5d ProtocolVersion is read for already known devices too
It might have changed since last connection, so we don't store it
2013-10-01 03:11:22 +02:00
Albert Vaca
4363ea8fdb Device class now stores the protocolVersion of the device 2013-10-01 01:09:20 +02:00
Albert Vaca
2fd082f4a0 Includes and cmakelists cleanup 2013-09-26 17:49:40 +02:00
Albert Vaca
f8825e013e KCM updated when pairing state changes externally
Added an unpaired() signal to KDED's Device exported by dbus
2013-09-20 16:03:17 +02:00
Albert Vaca
be45c577ef Added RequestedByPeer status to the state machine 2013-09-03 22:11:13 +02:00
Albert Vaca
36e5d41811 Renamed daemon -> kded 2013-09-02 03:23:34 +02:00
Renamed from daemon/device.h (Browse further)