StationList Class Reference

Contains a list of stations, including meta data. More...

#include <stationlist.h>

Collaboration diagram for StationList:

Collaboration graph
[legend]

List of all members.

Public Types

typedef QList< RadioStation * >
::iterator 
iterator
typedef QList< RadioStation * >
::const_iterator 
const_iterator

Public Member Functions

 StationList ()
 StationList (const StationList &sl)
 ~StationList ()
int count () const
const RadioStation & at (int idx) const
RadioStation & at (int idx)
void moveStation (int old_idx, int new_idx)
const RadioStation & stationWithID (const QString &sid) const
RadioStation & stationWithID (const QString &sid)
int idxWithID (const QString &sid) const
StationListMetaDatametaData ()
StationListMetaData const & metaData () const
void merge (const StationList &other)
 merges the other list into this one.
StationListoperator= (const StationList &sl)
StationListclearStations ()
StationListsetStations (const StationList &x)
StationListaddStations (const StationList &x)
StationListaddStation (const RadioStation &x)
StationListremoveStationAt (int idx)
bool readXML (const QXmlInputSource &xmlInp, const IErrorLogClient &logger, bool enableMessageBox=true)
bool readXML (const KUrl &url, const IErrorLogClient &logger, bool enableMessageBox=true)
QString writeXML (const IErrorLogClient &logger) const
bool writeXML (const KUrl &url, const IErrorLogClient &logger, bool enableMessageBox=true) const
bool operator== (const StationList &x) const
bool operator!= (const StationList &x) const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const

Protected Attributes

QList< RadioStation * > m_stations
StationListMetaData m_metaData


Detailed Description

Contains a list of stations, including meta data.

Author:
Ernst Martin Witte, Klas Kalass

Definition at line 110 of file stationlist.h.


Member Typedef Documentation

typedef QList<RadioStation*>::const_iterator StationList::const_iterator

Definition at line 173 of file stationlist.h.

typedef QList<RadioStation*>::iterator StationList::iterator

Definition at line 172 of file stationlist.h.


Constructor & Destructor Documentation

StationList::StationList (  ) 

StationList::StationList ( const StationList sl  ) 

StationList::~StationList (  ) 


Member Function Documentation

StationList& StationList::addStation ( const RadioStation &  x  ) 

StationList& StationList::addStations ( const StationList x  ) 

RadioStation& StationList::at ( int  idx  ) 

const RadioStation& StationList::at ( int  idx  )  const

const_iterator StationList::begin (  )  const [inline]

Definition at line 176 of file stationlist.h.

iterator StationList::begin (  )  [inline]

Definition at line 175 of file stationlist.h.

StationList& StationList::clearStations (  ) 

int StationList::count (  )  const [inline]

Definition at line 118 of file stationlist.h.

const_iterator StationList::end (  )  const [inline]

Definition at line 179 of file stationlist.h.

iterator StationList::end (  )  [inline]

Definition at line 178 of file stationlist.h.

int StationList::idxWithID ( const QString &  sid  )  const

void StationList::merge ( const StationList other  ) 

merges the other list into this one.

creates copies from the stations.

StationListMetaData const& StationList::metaData (  )  const [inline]

Definition at line 134 of file stationlist.h.

StationListMetaData& StationList::metaData (  )  [inline]

Definition at line 133 of file stationlist.h.

void StationList::moveStation ( int  old_idx,
int  new_idx 
)

bool StationList::operator!= ( const StationList x  )  const [inline]

Definition at line 167 of file stationlist.h.

StationList& StationList::operator= ( const StationList sl  ) 

bool StationList::operator== ( const StationList x  )  const

bool StationList::readXML ( const KUrl &  url,
const IErrorLogClient &  logger,
bool  enableMessageBox = true 
)

bool StationList::readXML ( const QXmlInputSource &  xmlInp,
const IErrorLogClient &  logger,
bool  enableMessageBox = true 
)

StationList& StationList::removeStationAt ( int  idx  ) 

StationList& StationList::setStations ( const StationList x  ) 

RadioStation& StationList::stationWithID ( const QString &  sid  ) 

const RadioStation& StationList::stationWithID ( const QString &  sid  )  const

bool StationList::writeXML ( const KUrl &  url,
const IErrorLogClient &  logger,
bool  enableMessageBox = true 
) const

QString StationList::writeXML ( const IErrorLogClient &  logger  )  const


Member Data Documentation

Definition at line 183 of file stationlist.h.

QList<RadioStation*> StationList::m_stations [protected]

Definition at line 182 of file stationlist.h.


The documentation for this class was generated from the following file:

Generated on Tue Jun 2 19:20:00 2009 for kradio4 by  doxygen 1.5.8