Commit graph

279 commits

Author SHA1 Message Date
Samoilenko Yuri
8fafdad584 some little crash fixes 2014-02-27 23:29:34 +04:00
l10n daemon script
197405887f SVN_SILENT made messages (.desktop file) 2014-02-24 04:39:11 +00:00
l10n daemon script
b9b7964c95 SVN_SILENT made messages (.desktop file) 2014-02-23 04:50:35 +00:00
Albert Vaca
29719ccce5 New icon by Malcer <malcer@gmx.com> 2014-02-19 21:10:41 +01:00
Albert Vaca
bc66984b60 Browse now opens the KIO 2014-02-19 14:26:19 +01:00
l10n daemon script
0ec9ea1706 SVN_SILENT made messages (.desktop file) 2014-02-19 05:17:04 +00:00
l10n daemon script
c4c1c8e73d SVN_SILENT made messages (.desktop file) 2014-02-18 05:13:00 +00:00
l10n daemon script
22f34ecde1 SVN_SILENT made messages (.desktop file) 2014-02-17 04:41:38 +00:00
Samoilenko Yuri
5da6cbe4c0 FS mount/unmount notify with default action None
You can enable nototfication popups(or any other action) in systemsettings->notifications dialog.
2014-02-16 14:33:18 +04:00
l10n daemon script
cf65ef9fc7 SVN_SILENT made messages (.desktop file) 2014-02-16 06:56:20 +00:00
l10n daemon script
ffba8bedc3 SVN_SILENT made messages (.desktop file) 2014-02-15 04:22:13 +00:00
Albert Vaca
5b91610e3f Added a commented out snippet of code 2014-02-14 20:13:06 +01:00
Albert Vaca
278dcd72e0 Disabled loopback device locator, that was enabled at some point 2014-02-14 17:31:41 +01:00
Albert Vaca
0410729136 Fixing problem with sshfs asking to add host to the "known hosts" file 2014-02-14 17:12:15 +01:00
Albert Vaca
e1649f1b1e Changed some KNotifications to KDebugs 2014-02-14 17:11:12 +01:00
Albert Vaca
245ee18089 Fixed "unknown host" problem in sftp plugin 2014-02-14 15:37:14 +01:00
Albert Vaca
6b94e7faf8 Merge branch 'qmlsftp'
Conflicts:
	kded/daemon.cpp
2014-02-14 13:07:52 +01:00
Albert Vaca
a389ce41fb Merge branch 'daemonsplit' into qmlsftp
Conflicts:
	kded/plugins/sftp/sftpplugin.cpp
2014-02-14 13:03:37 +01:00
Samoilenko Yuri
5e0ddd2d8f kdeconnectd aboutData for future 2014-02-06 19:25:50 +04:00
Samoilenko Yuri
22718a0bd9 DeclarativePlugin::BatteryInterface removed
Due to bug occured in QML property access(when object derived from QDBusAbstract interface) C++
part of BatteryPlugin in plasmoid rewritten in pure QML.
BatteryPluginDBusInterface fixed to avoid this bug.

Bug occuring when QML try to access any property of any object derived from
QDBusAvstractInterface - QML engine crashes.
2014-02-06 00:37:55 +04:00
Samoilenko Yuri
9b3382d2b8 Sftp qml module polished 2014-02-05 23:26:54 +04:00
Albert Vaca
c18661fdd3 Renamed sftp plugin to "filesystem browser" 2014-02-02 21:59:09 +01:00
l10n daemon script
a64d6cd215 SVN_SILENT made messages (.desktop file) 2014-02-01 04:09:05 +00:00
Samoilenko Yuri
749b54c42f signalling from sftp 2014-01-31 14:06:51 +04:00
Samoilenko Yuri
eafa0194d5 simple bugfix 2014-01-30 20:25:38 +04:00
Samoilenko Yuri
c18ee6f1d8 simple bugfix 2014-01-30 20:05:23 +04:00
Samoilenko Yuri
55c1221223 almost work... 2014-01-28 21:22:09 +04:00
Lukáš Tinkl
6c0bb7b2c3 use the correct catalog name
if you create a kdeconnect-kded catalog, then USE it... sigh^2
2014-01-28 02:08:34 +01:00
Samoilenko Yuri
1d8ea764b1 dealing with DBus from QML 2014-01-28 00:39:24 +04:00
Albert Vaca
e9f31abd98 PauseMusic plugin can now mute system instead of pause 2014-01-23 21:08:23 +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
l10n daemon script
318a77aaca SVN_SILENT made messages (.desktop file) 2014-01-23 04:05:48 +00:00
Samoilenko Yuri
b0c9f48efc QObject parent semantic in Device 2014-01-23 02:31:27 +04:00
Samoilenko Yuri
d9018cb9f8 Merge branch 'filebrowsing' into daemonsplit 2014-01-23 01:59:59 +04:00
Samoilenko Yuri
71283bbe49 SFTP plugin refactored
- Mounter class take all work for managing sshfs process
- SftpPlugin became much more easy and cleaner
2014-01-23 01:58:53 +04:00
Samoilenko Yuri
75155b1b68 Merge branch 'filebrowsing' into daemonsplit 2014-01-21 23:54:10 +04:00
Samoilenko Yuri
0f18b9c79c blocking mount 2014-01-21 23:49:50 +04:00
Samoilenko Yuri
7e9ae84b4c Merge branch 'filebrowsing' into daemonsplit 2014-01-21 17:11:25 +04:00
Samoilenko Yuri
bbca88eff2 playing with blocking mounting 2014-01-21 17:06:51 +04:00
Samoilenko Yuri
9f77c77c7c Merge branch 'filebrowsing' into daemonsplit 2014-01-18 11:43:24 +04:00
Samoilenko Yuri
225c25197e bugfix 2014-01-18 11:42:59 +04:00
Samoilenko Yuri
e502c07311 Merge branch 'filebrowsing' into daemonsplit 2014-01-18 02:10:18 +04:00
Samoilenko Yuri
f83ad76a5f Daemon works now 2014-01-18 02:09:58 +04:00
Samoilenko Yuri
b1683127a6 Private key bugfix 2014-01-18 02:08:33 +04:00
Samoilenko Yuri
da29b6ee6e closing unused communication channels 2014-01-17 18:16:24 +04:00
Samoilenko Yuri
24cabc741e unused includes removed 2014-01-17 18:05:27 +04:00
Samoilenko Yuri
5ee45bce45 kded_kdeconnect splitted to module and daemon
kded_kdeconnect KDEDModule is a very simple daemon manager now, which allow to start/stop/restart
real daemon.

kdeconnectd is almost unmodified implementation of Daemon class wrapped with main() and QCoreApplication.
2014-01-17 17:58:53 +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
259b8f50eb Merge branch 'master' into filebrowsing 2014-01-16 15:51:28 +01: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
90e9ded926 Added KIO slave and icon in Dolphin's places for file browsing 2014-01-16 15:32:35 +01:00
Albert Vaca
781c41da5b Merge branch 'master' into filebrowsing
Conflicts:
	libkdeconnect/dbusinterfaces.cpp
2014-01-16 12:28:48 +01:00
Albert Vaca
3073e66bb3 Daemon devices() can now filter by visible and/or paired
visibleDevices() is not needed anymore and has been removed
2014-01-16 12:14:05 +01:00
Samoilenko Yuri
c90eebd489 Idle timeout for SFTP plugin 2014-01-16 02:07:58 +04:00
Samoilenko Yuri
9fc9e72374 Code cleaning and stabilization
- SftpDbusInterface merged to SftpPlugin object
- mountpoint cleaning technique to avoid fuse errors with dangling mountpoints
2014-01-15 20:36:01 +04:00
Samoilenko Yuri
ecc06971b4 settings for sftp plugin 2014-01-15 01:39:27 +04:00
Samoilenko Yuri
25b2f17b1b SftpPlugin used sshfs now 2014-01-15 01:03:20 +04:00
Samoilenko Yuri
ed1158fd48 Constant getter for package body 2014-01-15 01:02:38 +04:00
Samoilenko Yuri
d2c1982ea3 Merge remote-tracking branch 'origin/master' into filebrowsing 2014-01-12 09:06:54 +04:00
Albert Vaca
0eb8e5cbdf Commented a chunk of code for the future 2014-01-10 19:01:09 +01:00
Albert Vaca
d31089aebf Fixed a bug causing new notifications not being shown as popup. 2014-01-10 18:04:39 +01:00
Samoilenko Yuri
9441a22478 properly using of KRun 2014-01-08 00:38:16 +04:00
Samoilenko Yuri
d912e20861 mount path fix 2014-01-07 17:41:15 +04:00
Samoilenko Yuri
16f8675bb6 imtegrating plugin to kdeconnect system 2014-01-07 01:01:21 +04:00
Samoilenko Yuri
f4813b88bc sftp plugin 2014-01-07 01:01:21 +04:00
l10n daemon script
c3bef92b73 SVN_SILENT made messages (.desktop file) 2013-12-29 04:11:58 +00:00
Kai Uwe Broulik
d823acc32b Use xdg Download folder instead of Desktop folder as default location for the share plugin
REVIEW: 114677
2013-12-27 00:29:04 +01:00
Albert Vaca
8cee011caf Fixed build for Ubuntu 12.04 2013-12-23 16:26:18 +01:00
l10n daemon script
cb0f27cb3f SVN_SILENT made messages (.desktop file) 2013-12-10 04:05:36 +00:00
l10n daemon script
a9aaa50992 SVN_SILENT made messages (.desktop file) 2013-11-27 04:09:33 +00:00
l10n daemon script
b8cc27155d SVN_SILENT made messages (.desktop file) 2013-11-26 04:14:34 +00:00
l10n daemon script
e9a4e939ef SVN_SILENT made messages (.desktop file) 2013-11-25 04:11:57 +00:00
Albert Vaca
5ea667ab7a Ooops, missing flag in Messages.sh 2013-11-24 17:48:14 +01:00
l10n daemon script
126214a129 SVN_SILENT made messages (.desktop file) 2013-11-24 04:09:57 +00:00
Albert Vaca
39190a4a1b Share plugin changed name! Please run make uninstall before make install
Sharereceiver is now called share plugin (soon it will not only receive ;)
Added a config dialog to be able to select a directory for incoming files
Changed  Messages.sh to translate config new .ui files too
Fixed typo in pausemusicplugin.cpp
Fixed multiple file transfer notifications bug
Added minimal error checking to share plugin.
2013-11-23 01:39:10 +01:00
Albert Vaca
2fdffd5cfd Added a config dialog to pausemusic plugin
Before this it was not possible to change the pause condition (was a TODO).
2013-11-22 22:49:40 +01:00
Albert Vaca
958be9dc25 Added a TODO 2013-11-22 19:08:04 +01:00
Albert Vaca
17f8ebb686 Added standalone binary to run kdeconnect without kded 2013-11-18 03:31:59 +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
1bc4fcfa23 Ooops incorrect comparison 2013-11-18 02:34:17 +01:00
Mauro Panzeri
e77a2af07b The battery percentage for low battery level is now signaled by the device
Added a field "thresholdEvent" to battery network packages.

REVIEW: 113835
2013-11-14 16:32:51 +01:00
l10n daemon script
7e270bbc80 SVN_SILENT made messages (.desktop file) 2013-11-11 04:03:02 +00: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
3d21b01da9 Wrong KdeConnect-SupportedPackageType in Notifications and Telephony
It was missing in the telephony plugin and had a typo in the notifications
one, so those plugins were not working in the 0.4 release!
2013-11-06 21:34:55 +01:00
Albert Vaca
52dceacd14 Trying to fix a crash in LanDeviceLink/SocketLineReader
ReadyRead is emitted more than once, and there is no data the second time
2013-11-06 21:34:54 +01:00
Albert Vaca
35d2f8472c Added deviceType to the identity packages
This will tell if we are a phone, tablet, laptop or desktop
2013-11-06 21:34:54 +01:00
l10n daemon script
47f531c91d SVN_SILENT made messages (.desktop file) 2013-11-04 04:01:00 +00:00
l10n daemon script
714867d01d SVN_SILENT made messages (.desktop file) 2013-11-02 03:45:01 +00:00
Albert Vaca
5bbfcd860f LanDeviceLink now waits to read an entire line before trying to read it
Packages always end in \n, so this way we make sure we have a complete
package to unserialize. Before this patch, some long packages that were
divided in chunks weren't received correctly.
2013-10-30 01:18:25 +01:00
Maksim Krylosov
cf503ec9c1 Added rewind and fast-forward to MPRIS controls 2013-10-29 20:17:42 +01:00
Albert Vaca
8361d7e42a Increased pairing timeout time from 20 to 30 seconds 2013-10-29 17:46:57 +01:00
Albert Vaca
cf869dfd57 CMake now enforces QJson version 8.1 or greater 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
l10n daemon script
f68d336e88 SVN_SILENT made messages (.desktop file) 2013-10-18 04:20:52 +00:00
l10n daemon script
b27651e2e6 SVN_SILENT made messages (.desktop file) 2013-10-14 04:20:28 +00:00
Aleix Pol
83b7ac0aba Add missing const on the plugin loader 2013-10-12 01:54:08 +02: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
l10n daemon script
5119d17d6d SVN_SILENT made messages (.desktop file) 2013-10-11 04:30:46 +00:00
l10n daemon script
eb346a6d61 SVN_SILENT made messages (.desktop file) 2013-10-07 04:10:17 +00:00
Albert Vaca
b5f2a3cb2c Fixed compilation
Missing include file
2013-10-06 17:14:19 +02:00
Albert Vaca
9af0bc342d LanDeviceLink now uses readLine instead of readAll 2013-10-05 17:20:13 +02:00
Albert Vaca
fc45b64362 Added check for RSA support in QCA.
It was crashing KDED for some users when not present.
2013-10-05 15:56:07 +02:00
Albert Vaca
5cac14bc96 LanLinkProvider's onNetworkChange has no effect if onStop was called first 2013-10-05 15:56:06 +02:00
l10n daemon script
b56d14d3a1 SVN_SILENT made messages (.desktop file) 2013-10-02 04:17:40 +00:00
l10n daemon script
7c9bda8d59 SVN_SILENT made messages (.desktop file) 2013-10-01 04:24:39 +00:00
Albert Vaca
bf09a248db Commented console json output 2013-10-01 03:26:34 +02:00
Albert Vaca
ddad10016e Merge branch 'filetransfer-debug' 2013-10-01 03:20:29 +02:00
Albert Vaca
2054288cac KCM updated when pairing state changes externally
Added an unpaired() signal to KDED's Device exported by dbus
2013-10-01 03:20:07 +02:00
Albert Vaca
2d065ab8f8 Commented LoopbackLinkProvider
It is confusing users
2013-10-01 03:19:38 +02:00
Albert Vaca
8f0e1a2279 Renamed plugin filetransfer -> sharereceiver 2013-10-01 03:12:32 +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
a06cf677f4 Added button to open incoming file transfer's folder in browser 2013-10-01 02:44:49 +02:00
Albert Vaca
4363ea8fdb Device class now stores the protocolVersion of the device 2013-10-01 01:09:20 +02:00
l10n daemon script
f7bf963efe SVN_SILENT made messages (.desktop file) 2013-09-27 04:29:59 +00:00
Albert Vaca
44f5c7093e Finished implementing file transfer
Implemented support for text and url share
2013-09-27 03:01:13 +02:00
Albert Vaca
f53f70d7c4 Fixed file transfer
Apparently KIO is so dumb it can't create files
Also we have lots of commented qDebugs now
2013-09-27 00:01:59 +02:00
Albert Vaca
cfe13a739c Changed QSharedPointer<QIODevice> to <QTcpSocket>
So we don't need a separate pointer.
2013-09-26 21:34:08 +02:00
Albert Vaca
2fd082f4a0 Includes and cmakelists cleanup 2013-09-26 17:49:40 +02:00
Albert Vaca
95ef31acea Documentation
Added a README to each plugin explaining the content of the packages they
send and receive
Explained the format of encrypted packages.
2013-09-24 14:14:34 +02:00
Albert Vaca
4bd5d2e427 Payloads are now QSharedPointer<QIODevice> instead of QIODevice* 2013-09-24 14:13:02 +02:00
Albert Vaca
a53ec2a9ea Notification Plugin can now receive payloads with the notification icon 2013-09-24 14:11:11 +02:00
Albert Vaca
e20adde7fd Moved filetransferjob from filetransfer plugin to networkpackage 2013-09-24 14:10:25 +02:00
Albert Vaca
e86897cfe3 Fixed file transfer, added file size to protocol (optional)
Increased protocol version to 5
Updated README
2013-09-20 16:03:17 +02:00
Albert Vaca
cbe275106c Added a qDebug with an error message in UploadJob 2013-09-20 16:03:17 +02:00
Albert Vaca
060addb881 qDebugs incorrectly placed 2013-09-20 16:03:17 +02:00
Albert Vaca
79a55d8ec0 Fixed landevice link not setting the payload to the proper package
Wrong variable name
2013-09-20 16:03:17 +02:00
Albert Vaca
ddbbafab63 Fixed crash
QIODevice was deleted when DownloadJob was autodeleted, causing dangling
pointers.
2013-09-20 16:03:17 +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
8883b2770e Debugging filetransfer 2013-09-20 16:03:17 +02:00
l10n daemon script
28f00e0371 SVN_SILENT made messages (.desktop file) 2013-09-20 16:02:43 +02:00
l10n daemon script
40c6ed7388 SVN_SILENT made messages (.desktop file) 2013-09-20 16:02:11 +02:00
Albert Vaca
8e295ee364 Less verbosity: commented lots of QDebugs 2013-09-20 16:01:09 +02:00
l10n daemon script
a344022202 SVN_SILENT made messages (.desktop file) 2013-09-19 04:15:35 +00:00
Albert Vaca
158e32adcf Debugging filetransfer 2013-09-16 15:21:22 +02:00
l10n daemon script
874ac43dab SVN_SILENT made messages (.desktop file) 2013-09-15 04:17:17 +00:00
Albert Vaca
7d4143b944 First and untested implementation of payload transfer in LAN backend
Encryption not implemented yet for transfers, but should be easy to do
2013-09-14 17:30:12 +02:00
l10n daemon script
cc8261b849 SVN_SILENT made messages (.desktop file) 2013-09-14 04:02:16 +00: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
d1f38a16b2 Fixed possible double-free crash 2013-09-13 21:20:23 +02:00
Simon Cadman
72db75e11b SMS message notification didn't show any text
QString content was shadowing a previously declared variable

BUG: 324857
2013-09-13 19:30:36 +02:00
Tim Creech
817a6c8d3e Didn't build on FreeBSD because it does not define SOL_TCP
Replaced SOL_TCP with getprotobyname("TCP")->p_proto

BUG: 324766
2013-09-13 19:30:36 +02:00
Simon Cadman
028fc30470 SMS message notification didn't show any text
QString content was shadowing a previously declared variable

BUG: 324857
2013-09-13 19:22:32 +02:00
Tim Creech
006a0b8dad Didn't build on FreeBSD because it does not define SOL_TCP
Replaced SOL_TCP with getprotobyname("TCP")->p_proto

BUG: 324766
2013-09-13 19:22:32 +02:00
Albert Vaca
111ee7f054 First iteration of filetransfer plugin
Now it just downloads to the user desktop payloads received in packages
with type kdeconnect.filetransfer.
Added the package type define.
Created an an auxiliar QFile-like class with a small needed modification.
Added a commented test in the filetransfer plugin code (to be moved).
2013-09-10 19:01:46 +02:00
Albert Vaca
3cf3c54222 Fixed a bug that caused notification spam when a notification was updated
BUG: 324744
2013-09-10 15:37:35 +02:00