Commit graph

5 commits

Author SHA1 Message Date
À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
3735ca2cd1 Coding style and return early refactoring 2014-04-14 21:57:48 +02: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.h (Browse further)