Commit graph

37 commits

Author SHA1 Message Date
Aleix Pol
b88897847b Reorganize sources
We broke kded into core and kded, core contains the library with the backends
and plugins.
Also we renamed libkdeconnect to interfaces.
2014-06-14 15:22:40 +02:00
Albert Vaca
27483bc0c5 Inform other devices we don't trust them when they talk to us 2014-06-09 11:52:46 +02:00
Albert Vaca
78597637e7 Missing license file 2014-06-09 11:52:16 +02:00
Àlex Fiestas
cbd6809932 Rename pairingTimer to m_pairingTimeout 2014-04-14 21:57:48 +02:00
Albert Vaca
bcf6359dd1 Fixed pairing problems when kdeconnect crashed
This was caused by KConf not being saved to disk in this case
2014-04-14 21:08:13 +02:00
Àlex Fiestas
f314420d4f Coding style (adding brackets) 2014-03-04 02:33:41 +01: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
b1683127a6 Private key bugfix 2014-01-18 02:08:33 +04:00
Samoilenko Yuri
f9bad88aeb using key for auth. A lot of debug outputs 2014-01-17 12:57:07 +04:00
Samoilenko Yuri
599efe541c bugfixes 2014-01-17 00:47:21 +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
445cb84e89 Fixed bug causing plugins not being unloaded
When unpairing from device
2014-01-16 15:48:40 +01:00
Albert Vaca
d782060b39 Code chages for compatibility with MSVC compiler
Thanks to Xiluembo
2013-11-18 02:34:34 +01:00
Albert Vaca
6e5de6f437 qDebug -> kDebug with namespaces
Added 3 namespaces: kdeconnect_kded, kdeconnect_kcm and libkdeconnect
2013-11-06 22:16:55 +01: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
Albert Vaca
8361d7e42a Increased pairing timeout time from 20 to 30 seconds 2013-10-29 17:46:57 +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
Mauro Panzeri
63488781b9 Update device name on reconnection
Since the remote device can now change its name, re-read the device name from
the identityPackage

REVIEW: 113203
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
158e32adcf Debugging filetransfer 2013-09-16 15:21:22 +02:00
Albert Vaca
42e0b4a066 Moved cryptography layer down from Device to DeviceLink
DeviceLinks will need to know what they are sending and receiving to handle
payloads, so encryption can not happen above them.
2013-09-13 23:27:16 +02:00
Albert Vaca
91949acaa5 Refactor: Moved devicelinks and linkproviders to backends 2013-09-09 18:35:56 +02:00
Albert Vaca
aa86ad5c3c Less verbosity: commented lots of QDebugs 2013-09-09 18:28:52 +02:00
Albert Vaca
0ff5600ce2 i18n 2013-09-04 21:19:02 +02:00
Albert Vaca
be45c577ef Added RequestedByPeer status to the state machine 2013-09-03 22:11:13 +02:00
Albert Vaca
402564733f Fixed too early assignment 2013-09-03 19:14:33 +02:00
Albert Vaca
e59b94f03d Simplified unpair logic 2013-09-03 19:14:11 +02:00
Albert Vaca
161ec366cc Using PEM format instead of Base64 encoded DER for the keys. 2013-09-03 16:01:28 +02:00
Albert Vaca
9a0d110769 Removed unused includes and fixed indentation in some lines 2013-09-03 02:14:27 +02:00
Albert Vaca
892385f3fc Simplified NetworkPackage format
Now protocol version is only sent once (in the identity package)
Removed "isEncrypted" bit, using type "kdeconnect.encrypted" instead.
NetworkPackage's decrypt and unserialize return false when find problems
Updated tests.
2013-09-02 13:26:26 +02:00
Albert Vaca
36e5d41811 Renamed daemon -> kded 2013-09-02 03:23:34 +02:00
Renamed from daemon/device.cpp (Browse further)