l10n daemon script
fe7763026d
SVN_SILENT made messages (.desktop file)
2014-04-20 04:38:36 +00:00
Àlex Fiestas
c8a9796093
Avoid doing qobject_cast on an already destroyed QObject
...
QObject::destroyed is emitted from the QObject destructor, because of
that the object that inherit from it (in this case DeviceLink) will not
exist anymore, hence we can't cast to it.
So we are saving the needed information in an QObject property so we
do not have to do any cast.
2014-04-15 20:14:22 +02:00
Àlex Fiestas
cbd6809932
Rename pairingTimer to m_pairingTimeout
2014-04-14 21:57:48 +02:00
Àlex Fiestas
258739cd93
Fix compile
...
Double declared variable plus missing ;, sorry :/
2014-04-14 21:57:48 +02:00
Àlex Fiestas
0f734de3e9
Simplify socketlinereader by using Qt build in parser
...
This also speeds it a lot making it possible to pass long lines.
REVIEW:116645
2014-04-14 21:57:48 +02:00
Àlex Fiestas
4a74f413ae
Accept all connections until none are available
...
When newConnection is called pendingConnections may have more than
one connectio, so we have to iterate and use all of them.
2014-04-14 21:57:48 +02:00
Àlex Fiestas
e4e4004912
Fix leak on connectError
...
We were not deleting the networkpacket not removing it from the map.
2014-04-14 21:57:48 +02:00
Àlex Fiestas
3735ca2cd1
Coding style and return early refactoring
2014-04-14 21:57:48 +02:00
Àlex Fiestas
e3e0eac779
Removed extra lines and trailing spaces
2014-04-14 21:57:48 +02:00
Àlex Fiestas
2a235f6496
Add const in lanDeviceLink
2014-04-14 21:57:48 +02:00
Albert Vaca
60e8eb2a32
Removed commented code
2014-04-14 21:21:09 +02:00
Albert Vaca
1b559019ca
Implemented migration from older versions of KDE Connect
...
That stored private keys in KConf instead of PEM files.
2014-04-14 21:08:41 +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
Albert Vaca
d7e9a42a7b
Moved unit tests together
2014-04-12 23:04:35 +02:00
Albert Vaca
f1bd54a508
Daemon is a KUniqueApplication now, to avoid having more than one instance
2014-04-12 22:49:00 +02:00
Albert Vaca
de252af3a6
Wrong if condition to mute kmix
2014-04-12 21:41:38 +02:00
Albert Vaca
baa0e5ff95
Made some methods const
2014-04-05 20:05:22 +02:00
l10n daemon script
51429b9ebe
SVN_SILENT made messages (.desktop file)
2014-03-29 04:57:06 +00:00
l10n daemon script
13970fed8b
SVN_SILENT made messages (.desktop file)
2014-03-26 04:43:05 +00:00
l10n daemon script
b6475a8d37
SVN_SILENT made messages (.desktop file)
2014-03-24 04:36:04 +00:00
l10n daemon script
77b924574a
SVN_SILENT made messages (.desktop file)
2014-03-20 04:45:04 +00:00
l10n daemon script
bd89104599
SVN_SILENT made messages (.desktop file)
2014-03-19 07:06:09 +00:00
l10n daemon script
bb28de3373
SVN_SILENT made messages (.desktop file)
2014-03-18 05:07:34 +00:00
l10n daemon script
b3bfb41f29
SVN_SILENT made messages (.desktop file)
2014-03-10 04:46:57 +00:00
Àlex Fiestas
3fff0a33e6
Test that we do not treat "\n" as a package.
...
We have to ignore the empty new lines.
2014-03-07 01:04:09 +01:00
Àlex Fiestas
71d339adea
Added autotest for SocketLineReader
...
I want to re-write this class, so before I can do that I must
make sure that I don't break existing behavior.
The test basically sends 5 lines and then checks that those 5 lines
have been correctly identified.
2014-03-07 00:37:48 +01:00
l10n daemon script
5290189811
SVN_SILENT made messages (.desktop file)
2014-03-05 04:38:53 +00:00
Àlex Fiestas
30c028b6cd
Added const all around
2014-03-04 02:34:09 +01:00
Àlex Fiestas
f314420d4f
Coding style (adding brackets)
2014-03-04 02:33:41 +01:00
Àlex Fiestas
8a216531cb
Specify that we only support Kill.
2014-03-03 22:34:25 +01:00
Àlex Fiestas
e4c3e8c4cd
Implement virtual KJob::doKill in FileTransferJob
...
This basically allows killing the job from the JobTrakcer
aka Plasma.
2014-03-03 22:34:03 +01:00
Àlex Fiestas
a75bfe5f0d
Use KIO::RenameDialgo if the file exists
...
If we are receiving a file that we already have on the
system, use KIO::RenameDialog instead of just overwriting
the destination file.
2014-03-03 22:33:22 +01:00
Àlex Fiestas
82a686dbe5
Calculate the speed in FileTransferJob if we know the size
...
KJob doesn't do this for us so we have to do the math
ourselves.
2014-03-03 21:12:06 +01:00
Àlex Fiestas
39589434bd
Set the deviceName from SharePlugin
2014-03-03 21:11:32 +01:00
Àlex Fiestas
39225d54d4
Set the name of kdeconnect to kdeconnectd
...
We have an icon for kdeconnect but we do not for kdeconnectd,
some libraries (like KJob) use this name to try to fetch the
app icon, so it is useful to have a name that has an icon
with the same name.
2014-03-03 21:10:30 +01:00
Àlex Fiestas
af2c0a431e
In the KDED, call start in the next loop.
...
This is useful to start all KDED's before blocking even
for some ms.
2014-03-03 21:09:05 +01:00
Àlex Fiestas
ee5bf89071
Fallback to body->size if payLoadsize is empty
...
For some reason body->size is exactly as big as the
payload I'm trying to send (using android app). This is
probably a bug in the Android app, I decided to commit
the workaround anyway so we keep compatibility with
current (and old) versions of the Android app.
CCMAIL: albertvaka@gmail.com
2014-03-03 21:08:34 +01:00
Àlex Fiestas
556c3a5fae
Added const into an inline method
2014-03-03 21:07:17 +01:00
Àlex Fiestas
93c0763e63
Emit a description in filetransferjob
...
This basically allows Plasma (or any other job trakcer) to show
a nice description showing FROM and TO, kinda:
From: Nexus5
To: ~/afiestas/Downloads/foo.mkv
2014-03-03 21:07:02 +01:00
Àlex Fiestas
3b276855a0
Add the FileTransferJob into the globalTracker
2014-03-03 21:03:56 +01:00
Àlex Fiestas
f4dce72d41
Never block the kded
...
Never block the kded even if things go wrong.
In order to do this we need to switch to a completely asynchronous
way of doing things, meaning that instead of returning bool on
start/stop we have to emit signals.
REVIEW: 116575
2014-03-03 19:58:05 +01:00
Àlex Fiestas
10a186795f
Adapt coding style to kdelibs
...
Using kdelibs style is not enforced but it is nice to use so all
kde hackers can work on this code without feeling out of place.
2014-03-03 19:27:39 +01:00
Aleix Pol
566a671b15
Make it possible to send files from the kded plugin
...
Expose the share plugin on dbus
Add a shareUrl method that will send the file if it's a local url and just
send a URL otherwise.
REVIEW: 113344
2014-03-03 04:53:11 +01:00
Aleix Pol
ab8ea93812
When uploading a file start reading the file
...
Otherwise it will wait for ::readyRead() to be called indefinitely.
2014-03-03 04:51:36 +01:00
Aleix Pol
614b8fe813
Initialize the payload size when sending a package with payload
2014-03-03 04:50:53 +01:00
l10n daemon script
24c4a6ab44
SVN_SILENT made messages (.desktop file)
2014-03-02 05:38:29 +00:00
Aleix Pol
1f9176ad92
Simplify path handling in the share plugin
...
Prefer ::toLocalFile() to ::path(). ::path() won't work on Windows properly.
Let KUrl handle the trailing slash adjusting, no need to do the string
handling ourselves.
Take advantage of the fact that it can be a url, at the moment it was just
doing silly type conversions.
REVIEW: 116484
2014-03-02 00:50:11 +01:00
Lukáš Tinkl
39c72cb4b2
i18n fixes
2014-02-28 18:50:06 +01:00
Àlex Fiestas
34bee764e8
Use i18n properly using arguments rather than replaces
...
i18n accepts extra arguments to properly perform the
replacements of %1 by the proper value, we have to use that
instead of calling .arg in the resulting QString so i18n can
do some magic for us.
2014-02-28 17:36:03 +01:00
Àlex Fiestas
0686374bb5
Use correct catalog name in kded/kdeconnect.cpp
2014-02-28 17:36:03 +01:00
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