Aleix Pol
617b66aeb8
small code simplification
...
removes changes from list to set
always uses the same path for figuring out the interfaces.
reviewed by Albert Vaca
2015-09-08 17:35:30 +02:00
Aleix Pol
df3581459a
Add a test that makes sure that capabilities are gathered correctly
...
While at it, fix the logic, because it wasn't working all that well.
Reviewed by Albert Vaca
2015-09-08 17:35:30 +02:00
Albert Vaca
854e4227fa
Read the capabilities in the first addLink instead of only the constructor
2015-09-08 08:37:43 -07:00
Aleix Pol
817fcbc9d6
Merge branch 'stable'
2015-09-08 10:51:41 +02:00
Aleix Pol
d58f6314fe
run Clang Modernize
...
Minus the auto change
2015-09-08 10:47:37 +02:00
Albert Vaca
1a63d18ada
Print more info
2015-09-08 01:12:00 -07:00
Aleix Pol
4023bf0599
Only keep connections alive with unpaired devices when discovery is enabled
...
At the moment, we were keeping the connection alive with every reachable
device. While this works optimally for most use-cases, on networks with
several devices with KDE Connect, the amount of connections grows
exponentially.
Reviewed by Albert Vaca
CCBUG: 352424
2015-09-08 09:30:55 +02:00
Aleix Pol
774893d3f9
cleanup
...
make attribute const
construct when initializing
no need to have all methods as slots
2015-09-08 09:22:31 +02:00
Aleix Pol
e1be5319f5
Only broadcast again if the network configuration actually changes
...
Reviewed Albert Vaca
2015-09-08 09:05:06 +02:00
Aleix Pol
4960247fb5
Add a package type that updates the device capabilities
...
Every time we reload the plugin list, report the plugins that we support.
If the remote devices' capabilities change, update the plugin list.
Reviewed by Albert Vaca
2015-09-07 20:03:05 +02:00
Aleix Pol
f65a1f206f
Turn core qWarnings into qCWarning
2015-09-07 19:35:07 +02:00
Aleix Pol
91351773fd
Mark incompatible plugins as such in the kcm
...
If a plugin isn't available, display it as unsupported by the device. This
is figured out through capabilities.
Reviewed by Albert Vaca
2015-09-07 19:35:07 +02:00
Aleix Pol
61f357a512
Fix regression
...
Reviewed by Albert Vaca
2015-09-07 17:12:28 +02:00
Aleix Pol
d835d01a09
Add a test for file sending, using the loopback device
...
Extends unit testing by making sure that file sharing works locally.
REVIEW: 125086
2015-09-07 15:03:04 +02:00
Vineet Garg
78e9c08732
Merge branch 'master' into ssl
...
Conflicts:
core/backends/lan/socketlinereader.h
core/backends/lan/uploadjob.h
core/networkpackage.h
2015-08-25 03:43:41 +05:30
Vineet Garg
17da38e5ba
Explicity using TLSv1 because using AnyProtocol causes a default TLSv1.2 handshake which not supported on older android version
...
Was using QueryPeer instead of VerifyPeer of isDeviceTrusted of connected slot
2015-08-25 01:14:24 +05:30
Boris Egorov
1924173df2
Fix various krazy2 warnings
...
Fix following krazy2 warning types:
[explicit], [endswithnewline], [doublequote_chars], [includes], [normalize],
[postfixop], [spelling]
See http://ebn.kde.org/krazy/reports/playground/base/kdeconnect-kde/index.html
for details.
SLOT/SIGNAL normalization done with Qt normalize utility:
https://github.com/qtproject/qtrepotools/tree/master/util/normalize
REVIEW: 124857
2015-08-21 22:38:54 +06:00
Vineet Garg
44c0ec1c78
If remote device certificate is changes, in sslError due to simulataneous multiple connections, unpair was called on null pointer
2015-08-17 20:04:41 +05:30
Vineet Garg
eff84a49d4
We support any protocol instead of TLSv1.2
2015-08-16 21:19:56 +05:30
Vineet Garg
9bc93b6337
We generate certificate from present date -1 year to present date + 10 year, this avoids the case where certificate is not valid due to difference of time zones
2015-08-14 17:50:58 +05:30
Vineet Garg
75bd15ed65
Added default value while checking for link name in pairing handler, this provides backward compatibility
2015-08-14 17:33:08 +05:30
Vineet Garg
6fe1399a18
Fixed minor issues in pairing handler
2015-08-13 14:56:28 +05:30
Vineet Garg
c5a399b94b
Fixed code identation issue
2015-08-12 23:49:15 +05:30
Vineet Garg
6acb4204a2
Added KdeConnectConfigTest, TestSslSocketLineReader, LanLinkProviderTest
2015-08-12 23:42:27 +05:30
Vineet Garg
cf3d37b504
Fixed issue pointed out on RR
...
Fixed some pairing handler issues
2015-08-11 09:04:02 +05:30
Vineet Garg
2824e73617
Pairing handler implemented
2015-07-27 20:58:58 +05:30
Vineet Garg
27515546a0
Now per device per link type pairing handlers are there
2015-07-25 17:15:19 +05:30
Vineet Garg
1b430db4a3
Fixed indentation
2015-07-19 21:59:27 +05:30
Vineet Garg
eda2563d03
Fixed encryption info in cli
2015-07-19 20:25:28 +05:30
Vineet Garg
20e46418ba
Encryption info in cli
2015-07-18 18:54:10 +05:30
Vineet Garg
e6da860fb7
Fixed issues pointed out on CR
2015-07-14 17:34:04 +05:30
Vineet Garg
781adac15b
Removed whitespace
2015-07-13 19:55:22 +05:30
Vineet Garg
1ba68150a7
Made server like normal QTcpServer
2015-07-10 03:57:27 +05:30
Vineet Garg
7c777e6279
Implemented pairing handler interface
2015-07-10 03:21:08 +05:30
Vineet Garg
e7617f3da9
Use Q_DECL_OVERRIDE in server
2015-07-08 02:45:59 +05:30
Vineet Garg
8b0f06e484
Code cleanup, fixed socket deletelater issue
2015-07-08 00:22:10 +05:30
Vineet Garg
b6b5257ba4
Added ssl support in download job
2015-07-06 03:19:58 +05:30
Vineet Garg
0c110e4392
Added SSL encryption in file upload
...
DeviceId is used for peerVerifyName
2015-07-06 02:35:26 +05:30
Vineet Garg
148a713176
Initial working implementation of ssl
2015-07-05 18:53:53 +05:30
Aleix Pol
7d6912c11f
Revert "Drop NetworkPackage QObject heritage"
...
It makes us depend on unreleased Qt 5.5. Will un-revert it
when Qt 5.5 is a dependency we can take.
CCMAIL: kdeconnect@kde.org
This reverts commit 1a2f569a47
.
2015-06-27 20:54:07 +02:00
Aleix Pol
43451d6ae1
Simplify Device::id management
...
Removes the id->row mapping. It was broken as the indices weren't updated
when a row was added or removed.
Stop exposing Device::id through dbus, just store it in the interface
class.
* It's redundant as it's part of the interface definition
* If we keep it it will save us quite some dbus round-trips
* It will be reliable, as nowadays id() sometimes QString() if the dbus
connection is invalid.
REVIEW: 124158
2015-06-24 20:57:17 +02:00
Aleix Pol
1a2f569a47
Drop NetworkPackage QObject heritage
...
It was only used for introspection and we can use Q_GADGET for that.
Make the NetworkPackage objects much lighter.
REVIEW: 124166
2015-06-24 20:57:17 +02:00
Albert Vaca
77256e1932
Devices where not removed if they were unpaired after going offline
2015-06-21 19:40:05 -07:00
Albert Vaca
08938689c5
Emit less redundant events
2015-06-21 19:39:04 -07:00
Aleix Pol
68b206e525
Move the generation of dbus interfaces into interfaces/
...
Simplifies the code altogether by centralizing the generation into 1 call
that does all the steps.
REVIEW: 124120
2015-06-18 19:06:14 +02:00
Aleix Pol
5c79e8a7a6
Implement an MPRIS client plugin
...
Makes it possible to control remote MPRIS instances.
REVIEW: 124100
2015-06-18 04:01:01 +02:00
Albert Vaca
a4c8934ee7
If both devices request pairing at the same time, we just pair.
...
The second device accepts the request instead of failing.
2015-06-15 09:03:26 -07:00
Albert Vaca
2dab79bc3f
Fixed warning.
2015-06-15 09:03:26 -07:00
Albert Vaca
09557b8a14
Moved network change detection from daemon to lanlink
2015-06-14 13:54:52 -07:00
Aleix Pol
cee2c6b057
Remove unused declaration
2015-06-13 01:27:16 +02:00
Aleix Pol
ef788e0658
Restore removed API, deprecate
...
REVIEW: 124084
2015-06-12 17:54:47 +02:00
Aleix Pol
b592dc99a0
Merge pairingSuccessful and unpaired signals into pairingChanged(bool)
...
REVIEW: 124067
2015-06-11 16:19:00 +02:00
Albert Vaca
e5b897884c
Added device status icons to be used in the KCM instead of the IM ones
2015-05-17 23:28:58 -07:00
Aleix Pol
11996f56ca
Drop dependency of KIO from kdeconnectcore
...
Use QNetworkAccessManager for storing the files we receive instead of
directly KIO, then provide the KIO-based QNetworkAccessManager from the
daemon. This way we'll still get the KIO network-transparency, but the
library only depenends on QtNetwork, which will be easier to get in some
platforms.
After this change, we only depend on KConfig, KI18n and KCoreAddons, which
are tier1 and really easy to work with on any platform.
REVIEW: 123325
2015-05-05 01:07:29 +02:00
Àlex Fiestas
ba4c87abc1
Consume all pendingDatagrams from udpServer
...
This fixes a bug where receiving broadcast messages would stop working
in case 2 messages have been received at the same time.
The problem is that readReady will only emit once per batch of datagrams
received, in case we receive 2 datagrams but only consume 1, readReady
will never be emitted again.
2015-05-05 01:04:50 +02:00
Albert Vaca
2f7e6f7de2
Fixed compilation warnings in clang (one of them is actually an issue!)
2015-04-19 22:50:12 -07:00
Aleix Pol
3caf5e7908
Move some find_package dependencies to the children directories as agreed
2015-04-10 17:48:48 +02:00
Aleix Pol
48cb087ec8
Remove unneeded KService include
2015-04-10 17:47:54 +02:00
Ashish Bansal
c8eb5e3074
Changed KF5 5.8 to 5.9
2015-04-09 16:22:56 +05:30
Albert Vaca
07773b8141
disconnected is specific to Sockets, abouTtoClose is generic to IODevice
2015-04-04 19:04:11 -07:00
Albert Vaca
fbbaa854b2
Const
2015-04-04 19:03:24 -07:00
Albert Vaca
dacaee6629
Fixed daemon sending lots of identity packets at startup
...
The way we were detecting the active network interfaces caused to detect
all of them at the application startup.
2015-04-04 16:32:15 -07:00
Albert Vaca
6c6f2b1a03
Fixed uninitialized members
2015-04-04 10:17:08 -07:00
Aleix Pol
c9700de391
cleanup
...
Don't store into a const-reference
Fix typo
2015-04-02 00:02:09 +02:00
Aleix Pol
9ab7e2356e
Use QMetaObject for introspecting a QObject
...
It will be faster and will provide better error messages.
REVIEW: 123214
2015-04-01 23:38:32 +02:00
Aleix Pol
80d77fa9b6
Fix crash when incoming FileTransfer
...
Otherwise qobject2qvairant complains that a property is missing.
REVIEW: 123214
2015-04-01 23:37:25 +02:00
Yuri Chornoivan
0452839893
Add missing spaces
2015-03-25 19:46:29 +02:00
Aleix Pol
8f777040f7
Remove KNotifications dependency from libkdeconnectcore
...
Moves the implementation into the actual daemon. This opens the
possibility for different ways to expose these notifications depending on
where the libkdeconnect will be deployed.
REVIEW: 123076
2015-03-24 12:26:37 +01:00
Albert Vaca
a77a3dc0d5
Fixed broken compilation :/
...
BUG: 345460
2015-03-23 20:44:09 -07:00
Albert Vaca
a5e5b10d9a
Code styling
2015-03-21 23:12:04 -07:00
Albert Vaca
a649bb5668
Added some error messages when ports are not available
2015-03-21 23:11:50 -07:00
Albert Vaca
e20c3c907d
Fixed config memory leak.
2015-03-21 22:21:34 -07:00
Aleix Pol
c7cee37330
Port away from KServiceTrader
...
Uses KPluginLoader+KPluginMetadata instead.
Describes plugins in json instead of desktop files. These desktop files are
then embedded into the .so file. All the plugins will be in a kdeconnect/
directory, and those will be the ones to look for.
Note it doesn't drop the KService dependency as KIOCore is a KDE Connect
dependency as well.
REVIEW: 123042
2015-03-19 16:36:53 +01:00
Ashish Bansal
6b4d5be618
Used QSettings instead of KConfig in KdeConnectSettings
...
REVIEW: 122936
2015-03-15 19:31:01 -07:00
Albert Vaca
654ee39b37
Fixed bug when pairing fails if initiated by the desktop
...
If the phone thinks that it's already paired with the computer when
receiving a pairing request, it will answer stuff back that will cause
the desktop to abort the pairing process.
2015-03-15 19:31:01 -07:00
Albert Vaca
856bd1e346
kDebug -> qCDebug
2015-03-15 19:31:01 -07:00
Albert Vaca
563233cac7
Fixed unpair still using the old KConfig
2015-03-15 19:31:01 -07:00
Aleix Pol
63bb2bda85
Fix build
...
We require KF5 5.9 but the frameworks haven't updated the version
name, so keep the last version for sanity.
2015-03-14 14:33:12 +01:00
Albert Vaca
02a2990720
Added a baseclass for the plugins' KCMs and a class for the plugins' config
...
Centralizing the plugins' config will ensure that all the plugins store it
the same way (ie: not in random files scattered around, like until now).
The base KCM class, together with the already existing base plugin class,
will give easy access to all the plugins to this centralized config. Also,
now the settings are not shared across devices (that is: every device can
have different config for a same plugin).
Note: This commit requires KCMUtils 5.9
REVIEW: 122927
2015-03-13 21:22:21 -07:00
Albert Vaca
a3decd542c
Includes cleanup
2015-03-13 21:20:58 -07:00
Albert Vaca
549f4c0815
KdeConnectConfig now displays initialization errors as notification
...
NOTE: This patch requires KNotifications 5.9
2015-03-13 21:20:58 -07:00
Aleix Pol
6fe7a9b158
Make it possible for the DevicesModel to react to device name changes
2015-03-14 04:28:54 +01:00
Aleix Pol
9c45c5469c
Prefer to specify the property
...
Tie the change signal to the getter, makes the interface easier to read
and opens the possibility to adopt certain optimizations in the Qt side.
2015-03-14 04:09:14 +01:00
Aleix Pol
807926473d
Use better types to store the device internal data
...
https://marcmutz.wordpress.com/effective-qt/containers/
2015-03-14 04:07:55 +01:00
Aleix Pol
0e96d837ff
Make sure the capabilities don't change over time by constifying
...
It exposed a problem later on, where we'd end up removing our own
capabilities into the remote's.
2015-03-14 02:44:21 +01:00
Aleix Pol
4c195e1a16
No need to set up the timeout every time
2015-03-14 00:39:13 +01:00
Jonathan Riddell
ce2bb1e433
don't install library dev files until there is an API/ABI policy
2015-03-12 12:42:10 +01:00
Aleix Pol
ede7dd0e84
Drop KIOWidgets dependency from KDEConnectCore
...
Removes the usage of RenameDialog by moving the functionality away. In
fact, what it does is make the share dialog try to come up with a different
name rather than asking the user. It's a quite common procedure as makes
the interaction simpler (for example, Chromium and Kamoso work like that).
REVIEW: 122813
2015-03-09 13:22:10 +01:00
Aleix Pol
b06038e60e
Prefer the usage of QUrl::toLocalFile to QUrl::path
...
QUrl::toLocalFile is portable.
2015-03-04 22:33:54 +01:00
Aleix Pol
463aa0cbf9
Prefer using QCoreApplication to using QApplication
...
Just checking if we can get rid of QtWidgets dependency on core,
eventually
2015-03-04 22:29:04 +01:00
Aleix Pol
2a70fabaf0
Remove unneeded dependency
2015-03-04 22:20:44 +01:00
Albert Vaca
b0cc45b52a
You can now change your name (the one seen by other devices on the network)
2015-03-01 21:23:05 -08:00
Albert Vaca
c7c91c1289
Added KdeConnectConfig class that aims to be a KConfig abstraction
...
Benefits:
- We had config files in different paths, now they will be centralized.
- Daemon, LanLinkProvider and NetworkPackage depend only on Qt now.
- KConfig is accessed with strings as keys, where a typo can go unnoticed.
- Daemon is now thinner, as it doesn't need to initialize config values.
- QCA::Initializer is in a single place now (was in Daemon and Plugin).
2015-03-01 20:16:07 -08:00
Aleix Pol
ef70772f70
Clean up generation of the host's private key
...
Only look for it in the writable path, as it won't ever be installed in a
common place.
Don't look for the path in the config file either.
Don't make it depend on the application name.
REVIEW: 122744
2015-03-02 00:49:44 +01:00
Albert Vaca
aaa034b9d6
Removed reference to KDED
2015-02-23 22:14:22 -08:00
Albert Vaca
c50f1a22ae
Fixed rejectPairing being always called
2015-02-23 21:43:46 -08:00
Albert Vaca
c013966f4b
Version number is now set in a single place
2015-02-04 23:52:07 -08:00
Lamarque V. Souza
00ef52227e
Fixes file transfer for Samsung Galaxy S2 with Jelly Bean 4.1.2
...
by setting destination QUrl's scheme if it lacks one.
REVIEW: 122221
2015-01-23 14:11:48 -02:00
Albert Vaca
6cc6d287fc
Merge branch 'master' into frameworks
...
Conflicts:
cli/kdeconnect-cli.cpp
core/filetransferjob.cpp
core/filetransferjob.h
interfaces/notificationsmodel.cpp
plasmoid/declarativeplugin/kdeconnectdeclarativeplugin.h
plugins/sftp/sftpplugin.cpp
2015-01-20 22:44:31 -08:00
Albert Vaca
da1cb4c354
Coding style
2015-01-20 22:22:14 -08:00
Kai Uwe Broulik
930c107f7b
Cleanup notifications
...
Use iconName instead of sending a fixed-size pixmap around, fix wording and use title
capitalization, more meaningful names in notifyrc, QStringLiteral and new style connect.
REVIEW: 122121
2015-01-18 01:53:20 +01:00
Heiko Becker
260301155f
Use co-installable qca-qt5 version
...
If both qt4 and qt5 versions of qca are present the build of the
frameworks branch tries to find Qt4 pulled in by qca and thus fails.
REVIEW: 122054
2015-01-15 21:35:30 -08:00
Albert Vaca
c7c1974ea9
Merge branch 'master' into frameworks
...
Conflicts:
core/backends/lan/lanlinkprovider.cpp
plugins/ping/pingplugin.h
plugins/telephony/telephonyplugin.cpp
2015-01-10 20:14:01 -08:00
Albert Vaca
4b6aa135e3
Fixing memory leaks in LanDeviceLinkProvider and LanDeviceLink
2015-01-06 21:48:25 -08:00
Pramod Dematagoda
6926fca598
Adjust socket parameters to detect device disconnection faster.
...
REVIEW: 121711
2014-12-29 23:34:03 -08:00
Albert Vaca
0271aa9511
Ping plugin packet type define shouldn't be in core.
2014-12-21 19:35:35 -08:00
Albert Vaca
9266094747
Removed unused vars
2014-11-29 00:17:42 -08:00
Albert Vaca
2b13d0825c
Merge branch 'master' into frameworks
...
Conflicts:
kded/CMakeLists.txt
2014-11-22 09:29:05 -08:00
Albert Vaca
d8943f03ae
Added dbus activation to org.kde.kdeconnect
2014-11-22 09:26:15 -08:00
Albert Vaca
a58fab4fb3
Merge branch 'master' into frameworks
...
Conflicts:
cli/kdeconnect-cli.cpp
core/device.cpp
core/filetransferjob.cpp
core/filetransferjob.h
core/networkpackage.h
kded/CMakeLists.txt
plugins/share/shareplugin.cpp
plugins/telephony/telephonyplugin.cpp
2014-11-11 21:40:54 -08:00
Lukáš Tinkl
eb38ad5330
turn critical debugs into qCCritical()
...
just in case, for the future... :)
2014-11-10 15:53:01 +01:00
Jan Grulich
27e3dfdca5
Make sure that key.pem is created for the first time
...
Construct its path instead of trying to find it, because
this returns an empty path and thus key.pem couldn't be
created.
Reviewed-by: Lukáš Tinkl
2014-11-10 15:46:49 +01:00
Albert Vaca
7d3fe6239c
Updating .notifyrc file
2014-11-09 20:36:45 -08:00
Jens Dagerbo
53a33096ad
Changed int to qint64 for tracking payload size
...
No longer keeping the entire file in RAM while uploading
2014-11-09 12:57:09 -08:00
Aleix Pol
21ab5a4f81
Merge branch 'master' into frameworks
...
Mostly kDebug -> qCDebug
Also some KCmdLineArgs -> QCommandLineParser
Conflicts:
cli/kdeconnect-cli.cpp
core/CMakeLists.txt
core/backends/lan/lanlinkprovider.cpp
core/daemon.cpp
core/pluginloader.cpp
interfaces/CMakeLists.txt
kio/kiokdeconnect.cpp
plugins/mousepad/CMakeLists.txt
plugins/mousepad/mousepadplugin.h
plugins/mpriscontrol/mpriscontrolplugin.cpp
plugins/sftp/sftpplugin.cpp
2014-11-04 19:12:29 +01:00
Albert Vaca
e8dadfdfb9
Added TODO
2014-10-15 23:03:41 -07:00
Albert Vaca
279dbe5598
Minor changes
2014-10-10 11:47:35 -07:00
Albert Vaca
d31178725b
Removed commented code
2014-10-10 11:27:01 -07:00
Albert Vaca
ddb9190fbe
More robust fix to problem with device ids being non exportable on dbus
2014-10-10 11:26:50 -07:00
Aleix Pol
1a1969f42f
Port to new QCA cmake structure, now it's called Qca
...
and the target name is qca
2014-09-23 20:05:22 +02:00
Àlex Fiestas
9a9333035a
Use QString::toLatin instead of deprecated toAscii
2014-09-23 19:45:29 +02:00
Àlex Fiestas
9ed5004997
Link publickly against KF5::KIOCore
...
This is neede since kdeconnectcore public api contains KIO/FIleJob
2014-09-22 10:17:32 +02:00
Àlex Fiestas
dbea3171bd
Make kdeconnect core compile without KDELibs4Support
...
This meant to add a lot of dependencies to each plugin since we had
KDELibs4support as PUBLIC link meaning that anything linking against
kdeconnectcore was linking at the same time to mostly all frameworks.
Now each plugin has more or less its dependencies in the CMake some
still depend on KDELibs4Support.
For the mousepad plugin I needed to add a fixX11.h file that basically
undefines/defines again some stuff xlib has that conflcits with normal
C++ and Qt.
Before it was not conflicting because some lib within KDELibs4Support
was including this file, but now we have to do it ourselves.
2014-09-22 02:40:51 +02:00
Àlex Fiestas
2328738beb
Port core from KStandardDirs to QStandardPaths
...
Tested, both code return the same thing.
2014-09-22 01:23:27 +02:00
Àlex Fiestas
d971269bd5
Remove kdebugnamespace completely and replace by core_debug
...
In those places that belong to "core" we use core_debug, in any other
place we have added custom logging categories so we use those instead.
2014-09-22 00:59:34 +02:00
Àlex Fiestas
df0c262998
Port core to qCDebug
...
I had to keep the old kDebug code in kdebugnamespace because other parts
of the code are using it. Will be removed as soon as all code using it
is ported as well.
2014-09-21 23:54:27 +02:00
Àlex Fiestas
473a34b76f
Por filetranasferjob to QUrl
...
Pretty much a straight forward port from KUrl to QUrl, since we are only
forwarding arguments there was not much to port but a simple /kurl/qurl/
2014-09-21 22:22:06 +02:00
Albert Vaca
5cf6fe82b5
Fixed possible causes of a crash in LanLinkProvider::configureSocket l.48
...
BUG: 338662
2014-09-17 19:02:45 +02:00
Àlex Fiestas
42269a9dda
Port from KIcon to QIcon
...
Executed kcm and some notifications, icons are still shown.
2014-09-13 01:04:48 +02:00
Àlex Fiestas
f20f489999
Port to aelperay from QJson to native json support
...
Straight forward port from QJson to the native Json support.
As a note I have added 2 helper functions that make the code bit more
readable (object2qvariant and qvariatn2qobject).
2014-09-13 00:49:56 +02:00
Sebastian Kügler
506bd2a890
add qjson includes at top-level
...
It's needed by plugins as well, not just by the core.
Reviewed-by: Aleix
2014-09-07 14:12:00 +02:00
Aleix Pol
e82850411d
Import error reporting
...
I was getting a crash, it was because of a set up problem, but having this
helped me to figure it out.
2014-09-01 17:49:09 +02:00
Christophe Giboudeaux
b7eb49d996
-Wmissing-include-dirs
2014-08-27 15:10:59 +02:00
Saikrishna Arcot
05fdbe0e5b
Add support for receiving keyboard entries.
...
This patch gets the keyboard entries from the Android client and passes
along the keycode.
REVIEW: 119254
2014-08-14 18:01:31 +02:00
Albert Vaca
dfbe7c7bfc
Trying to fix daemon not detecting connection to phone via usb tethering
...
Probably it was not detecting connections to a wired interface either,
this should do the trick but it's a bit weird having to connect to
QNetworkConfigurationManager::configurationAdded() to know about that.
2014-08-11 18:57:49 +02:00
Albert Vaca
a3b89da9c7
Minor changes
2014-08-11 18:57:48 +02:00
Aleix Pol
380006114a
Use the incoming/outgoing capabilities for trimming loaded plugins
...
Only lets the plugins that support something offered on the other end or
that offer something supported on the other end. If we don't have
information about the other device, we enable everything like we used to.
Also refactors a bit the plugin loader, to be able to provide information
step by step.
Currently it works, but we need support for capabilities at least on
Android to start taking good advantage of it.
REVIEW: 118820
CCMAIL: kdeconnect@kde.org
2014-07-11 01:54:19 +02:00
Aleix Pol
a8fb015a22
Fix compilation after merge
2014-07-02 01:39:38 +02:00
Albert Vaca
a303b73238
Merge branch 'master' into frameworks
...
Conflicts:
cli/kdeconnect-cli.cpp
core/CMakeLists.txt
plasmoid/package/contents/ui/FullRepresentation.qml
plugins/ping/pingplugin.cpp
2014-07-01 23:59:38 +02:00
Albert Vaca
cabb0f2f7b
Simplified debug areas so we only have one, called "kdeconnect"
2014-07-01 01:26:08 +02:00
David Suárez
dcfb37c85b
Provide versioned so files for kdeconnectcore lib
...
REVIEW: 119013
2014-06-30 01:12:49 +02:00
Aleix Pol
c8dbbed685
Move the send ping code to the ping plugin
...
turn it into a dbus call to the plugin
Reviewed by Albert Vaca
2014-06-27 18:21:40 +02:00
Raphael Kubo da Costa
2df8a8064f
LanLinkProvider: Bind the UDP server socket to Any, not Broadcast.
...
Trying to bind a UDP socket to 255.255.255.255 fails with EADDRNOTAVAIL
at least on FreeBSD.
The sender side on Android should send its message in broadcast mode (as
it already does), but the receiver side should bind to INADDR_ANY, not
INADDR_BROADCAST.
BUG: 324769
REVIEW: 118870
2014-06-27 00:20:23 +03:00
Christophe Giboudeaux
5a91db4427
Use the compat link_public/link_private keywords instead.
...
Just removing the public/private keywords uncovers some other build errors.
2014-06-24 23:27:46 +02:00
Christophe Giboudeaux
ec9317e7ef
Fix build with older CMake versions.
2014-06-24 22:40:23 +02:00
Aleix Pol
16aaa9f77c
Merge branch 'master' into frameworks
2014-06-21 02:06:50 +02:00
Aleix Pol
43a7c60c80
Display the user-name in the display name
...
Describes better what device we're linking to.
REVIEW: 118807
2014-06-21 02:05:55 +02:00
Aleix Pol
349a42cf16
Port libraries to translation domains
2014-06-18 02:49:07 +02:00
Aleix Pol
b618a64f51
Merge remote-tracking branch 'origin/master' into frameworks
...
Conflicts:
cli/kdeconnect-cli.cpp
2014-06-18 02:46:14 +02:00
Aleix Pol
43a24ac12e
Figure out Messages.sh after code refactoring
...
KDED is translated again
Rename the core's pot to kdeconnect-core.pot and make sure the library
loads the catalog when it's linked to.
Provide a separate translations file for all the plugins, together.
REVIEW: 118774
2014-06-17 18:45:47 +02:00