Commit graph

11 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
À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
258739cd93 Fix compile
Double declared variable plus missing ;, sorry :/
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
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
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
Albert Vaca
5cac14bc96 LanLinkProvider's onNetworkChange has no effect if onStop was called first 2013-10-05 15:56:06 +02:00
Albert Vaca
91949acaa5 Refactor: Moved devicelinks and linkproviders to backends 2013-09-09 18:35:56 +02:00
Renamed from kded/linkproviders/lanlinkprovider.cpp (Browse further)