2009-12-26 16:13:38 +01:00
|
|
|
#ifndef RADIOSERVICE_H
|
|
|
|
#define RADIOSERVICE_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class RadioItem;
|
|
|
|
|
|
|
|
class RadioService : public QObject {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
RadioService(const QString& name, QObject* parent = 0);
|
2009-12-26 18:19:14 +01:00
|
|
|
virtual ~RadioService() {}
|
2009-12-26 16:13:38 +01:00
|
|
|
|
|
|
|
QString name() const { return name_; }
|
|
|
|
|
|
|
|
virtual RadioItem* CreateRootItem(RadioItem* parent) = 0;
|
|
|
|
virtual void LazyPopulate(RadioItem* item) = 0;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString name_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RADIOSERVICE_H
|