// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst // #ifndef BBCITEMGETTER_H #define BBCITEMGETTER_H // Marble #include "AbstractWorkerThread.h" #include "GeoDataLatLonAltBox.h" // Qt #include #include #include namespace Marble { class BBCStation; class MarbleDataFacade; class BBCItemGetter : public AbstractWorkerThread { Q_OBJECT public: BBCItemGetter( QObject *parent = 0 ); ~BBCItemGetter(); void setSchedule( const GeoDataLatLonAltBox& box, MarbleDataFacade *facade, qint32 number ); void setStationList( const QList& items ); protected: bool workAvailable(); void work(); Q_SIGNALS: void foundStation( BBCStation ); public: QList m_items; QMutex m_scheduleMutex; GeoDataLatLonAltBox m_scheduledBox; qint32 m_scheduledNumber; }; } // namespace Marble #endif // BBCITEMGETTER_H