Albert Vaca
7da30ddbb1
Use the pairing handler instead of accessing the device directly on error
2016-07-12 12:34:56 +02:00
Albert Vaca
0b3de33d74
Minor
2016-07-12 12:33:57 +02:00
Albert Vaca
4e8a325479
Do not specify type for struct
2016-07-12 12:32:58 +02:00
Albert Vaca
6248f03256
Made a QString const refrence.
2016-07-07 01:09:07 +02:00
Albert Vaca
47c78427cb
Removed outdated comment
2016-07-07 01:07:51 +02:00
Aleix Pol
81634303b2
Make capabilities static
...
As discussed with Albert, move the population of capabilities into the
identity package, making them static along the execution of the link.
When we receive the identityPackage, we collect the plugins we can use with
the device and stick to those. This should simplify the implementation and
remove the possibility to lose packages if packages are received before the
capabilities are processed in the former approach.
REVIEW: 128386
2016-07-06 17:37:22 +02:00
Aleix Pol
afdac88885
Proper i18n use
2016-07-06 16:41:38 +02:00
Aleix Pol
8d7d820ef4
Naming consistency. Capabilities is the correct name
2016-07-06 15:55:04 +02:00
Aleix Pol
0e76082fc6
Remove commented code
...
Used to be used when we encrypted and decrypted using QCA. Now it's done
by the device link.
2016-07-06 00:59:37 +02:00
Albert Vaca
5933c6810c
More unused includes cleanup
2016-07-05 14:27:53 +02:00
Albert Vaca
7c0fbbc034
Unused include cleanup
2016-07-05 14:13:48 +02:00
Aleix Pol
0d6a7bafcf
Remove unused variable
2016-07-05 13:14:55 +02:00
Aleix Pol
5a265a55de
Start consuming right away, if there's data available from the start
...
Fixes sendfiletest
2016-07-05 13:14:47 +02:00
Albert Vaca
963a15bd08
Fixed crash where a device was destroyed but links tried to use it.
2016-07-05 12:42:57 +02:00
Albert Vaca
9c736583e2
Use the actual connection origin, so we don't keep all connections open.
2016-07-05 12:42:39 +02:00
Albert Vaca
8c07d88c17
Int was too large.
2016-07-05 12:28:31 +02:00
Aleix Pol
2b451097eb
Make sure errors get reported
2016-07-05 01:00:02 +02:00
Albert Vaca
385bf77480
Fixed bug which didn't allow to pair a new device
2016-07-04 19:52:37 +02:00
Aleix Pol
359194c2ed
Use initializers to construct it
2016-07-04 19:18:13 +02:00
Albert Vaca
308a89f5ea
playerList was sometimes sent as null since this change (maybe when empty?)
...
Reverted to the previous, saner, syntax.
2016-06-26 17:11:08 +02:00
Albert Vaca
04713de718
Remove qdebugs
2016-06-26 15:48:37 +02:00
Albert Vaca
c154d9702b
Only return if telepathy actually handles the message
2016-06-26 15:48:37 +02:00
Albert Vaca
e896449e74
Moved telepathy component to its own repo: telepathy-kdeconnect
2016-06-26 15:48:37 +02:00
l10n daemon script
60c3bf9b90
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2016-06-22 16:33:04 +00:00
Aleix Pol
ef98fb4587
Fix file transfer under SSL
...
Introduces a big fat buffer :(
Actually test the trasfers :)
Takes QSslSocket causistic into account, for some reason QNAM refuses to
mark as finished when the QSslSocket (through QIODevice) closes.
It would be good to look into dropping the QBuffer, doing so with the test
in place will help.
2016-06-22 17:49:45 +02:00
Aleix Pol
86b086e392
Make warnings actual warnings
2016-06-22 16:31:01 +02:00
Albert Vaca
7af35b00f2
Send sms to a number, not a contact name. Use the contact name for display.
...
CCMAIL: david@davidedmundson.co.uk
2016-06-22 14:27:31 +02:00
Albert Vaca
9939b58df0
Merge telephonyplugin and telepathy plugin
...
We now use the telepathy interface when it's available, and fall back to
our custom dialog when it's not. This also makes the kdeconnect telepathy
connection manager be completely decoupled from the kdeconnect code.
CCMAIL: david@davidedmundson.co.uk
2016-06-22 14:27:09 +02:00
Albert Vaca
01139d31d1
De-duplicated socket SSL configuration code
2016-06-22 14:27:09 +02:00
Aleix Pol
f011191eca
Fix few issues in FileTransferJob
...
Handle errors from different endpoints
Don't ::startTransfer when we find a colliding file
2016-06-22 12:42:51 +02:00
Aleix Pol
4cb50d69d8
Fix some issues in the downloadjob and its test
...
Test on KJob abstraction, this way we can check if it has an error when it
breaks.
Handle errors in a different branch of the code.
2016-06-22 12:40:14 +02:00
l10n daemon script
a2683f4762
SVN_SILENT made messages (after extraction)
2016-06-22 07:48:42 +00:00
Aleix Pol
49713d8aca
Enforce Qt-specific keywords
...
Reviewed by Albert Vaca
2016-06-21 20:19:14 +02:00
Aleix Pol
f9406e8afc
Introduce QVariantMap as an argument of NetworkPackage
...
Makes it possible to specify the different properties sent at once,
rather than one by one as we used to do.
Also port whenever possible to the initializer-list syntax.
REVIEW: 128269
2016-06-21 20:07:12 +02:00
Albert Vaca
4dde19c8cc
Added missing license header
2016-06-21 19:57:07 +02:00
Albert Vaca
17f18f0686
Fixed dbus-activation of telepathy connection manager service
2016-06-21 19:56:52 +02:00
Albert Vaca
aa41b40ab5
Changed magic number by constant
2016-06-21 18:42:53 +02:00
Albert Vaca
e880e14ed5
Preffer Q_FOREACH to foreach
2016-06-21 14:50:17 +02:00
Albert Vaca
6deef8b605
Comment was no longer true
2016-06-21 14:43:33 +02:00
Albert Vaca
5abd081b85
Changed port so we don't conflict with Houdini
2016-06-21 14:42:32 +02:00
Aleix Pol
bfd698af36
Fix issues detected by clazy
...
Don't use for(:) on Qt containers. It detaches without need.
2016-06-20 19:22:29 +02:00
Aleix Pol
596e4484f4
Clean up use of virtual and override keywords
...
Only use virtual when actually virtual, to override just use override.
2016-06-20 19:22:29 +02:00
Albert Vaca
cc0fdacbf5
Fixed compilation on Windows
2016-06-20 02:31:55 +02:00
Albert Vaca
41d5940178
Do not compile kio on windows
2016-06-20 02:17:51 +02:00
David Edmundson
d859495b1c
Remove stray include
2016-06-19 01:04:39 +02:00
Aleix Pol
c521206b16
Move TelepathyQt5 dependency into the plugin
...
Also drop KF5::Notifications from it
2016-06-18 13:33:58 +02:00
Aleix Pol
e6349524bc
Move all Telepathy bits into a Telepathy plugin
2016-06-18 13:23:41 +02: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
Aleix Pol
aff1740473
Explicitly say that we're providing kdeconnect-cli
...
This way bash will be able to suggest to install kdeconnect if the
user calls kdeconnect-cli and isn't found
2016-06-17 13:34:04 +02:00
Albert Vaca
c4d7c2f39b
Improved comments
2016-06-17 02:00:23 +02:00