X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=traffic.cpp;fp=traffic.cpp;h=05d5adfbf3f2a7eed1b5e1523cc93974f0e18ea7;hb=51db83b9d25e4f4f5fcc2870b136c61d43d1167f;hp=3cc70974ae06b14994e902abe9e8292c35e0299d;hpb=f31ee6f803100bc1edda29ad701ba48b8a5210bb;p=yandex-traffic diff --git a/traffic.cpp b/traffic.cpp index 3cc7097..05d5adf 100644 --- a/traffic.cpp +++ b/traffic.cpp @@ -3,7 +3,6 @@ #include "traffic.hpp" #include "log.hpp" -#include "connection.hpp" // -------------------------------------------------- @@ -133,7 +132,6 @@ Traffic::Traffic () { connect (&_fetcher, SIGNAL (done (const QByteArray&)), SLOT (fetchDone (const QByteArray&))); - connect (ConnectionChecker::instance (), SIGNAL (connected (bool)), SLOT (connectionChanged (bool))); } @@ -142,11 +140,6 @@ Traffic::Traffic () // successfully, updated() signal called. void Traffic::update () { - if (_fetcher.busy ()) { - Log::instance ()->add ("Traffic::update: fetcher is busy"); - return; - } - Log::instance ()->add ("Traffic::update: Request status download"); _fetcher.fetch ("http://trf.maps.yandex.net/trf/stat.xml"); } @@ -245,9 +238,3 @@ ExtendedTrafficInfo Traffic::lookup_ext (const QString &id) const return it.value (); } - -void Traffic::connectionChanged (bool active) -{ - if (!active) - _fetcher.reset (); -}