5 // --------------------------------------------------
7 // --------------------------------------------------
8 TrafficInfo::TrafficInfo ()
13 // --------------------------------------------------
14 // ExtendedTrafficInfo
15 // --------------------------------------------------
16 ExtendedTrafficInfo::ExtendedTrafficInfo ()
21 // --------------------------------------------------
23 // --------------------------------------------------
27 connect (&_fetcher, SIGNAL (done (const QByteArray&)),
28 SLOT (fetchDone (const QByteArray&)));
31 // Perform asyncronous refresh of traffic information. If another update
32 // request is in progress, new is discarded. If update request finished
33 // successfully, updated() signal called.
34 void Traffic::update ()
39 _fetcher.fetch ("http://trf.maps.yandex.net/trf/stat.xml");
43 void Traffic::fetchDone (const QByteArray& data)
45 printf ("Got %d bytes of data\n", data.size ());
46 // printf ("Data:\n%s\n", data.data ());