26 #include "errorlog_interfaces.h" 28 #include <QtCore/QList> 102 class QXmlInputSource;
118 int count()
const {
return m_stations.count(); }
119 const RadioStation & at(
int idx)
const;
120 RadioStation & at(
int idx);
122 void moveStation(
int old_idx,
int new_idx);
124 const RadioStation & stationWithID(
const QString &sid)
const;
125 RadioStation & stationWithID(
const QString &sid);
126 int idxWithID(
const QString &sid)
const;
159 bool readXML (
const QXmlInputSource &xmlInp,
const IErrorLogClient &logger,
bool enableMessageBox =
true);
160 bool readXML (
const KUrl &url,
const IErrorLogClient &logger,
bool enableMessageBox =
true);
162 QString writeXML (
const IErrorLogClient &logger)
const;
163 bool writeXML (
const KUrl &url,
const IErrorLogClient &logger,
bool enableMessageBox =
true)
const;
167 bool operator != (
const StationList &x)
const {
return !operator ==(x); }
175 iterator
begin() {
return m_stations.begin(); }
176 const_iterator
begin()
const {
return m_stations.begin(); }
178 iterator
end() {
return m_stations.end(); }
179 const_iterator
end()
const {
return m_stations.end(); }
Contains a list of stations, including meta data.
QList< RadioStation * > m_stations
QList< RadioStation * >::iterator iterator
const StationList emptyStationList
QList< RadioStation * >::const_iterator const_iterator
const_iterator end() const
StationListMetaData m_metaData
StationListMetaData & metaData()
StationListMetaData const & metaData() const
const_iterator begin() const