You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.8 KiB
86 lines
2.8 KiB
15 years ago
|
/***************************************************************************
|
||
|
radiocfgxmlhandler.h - description
|
||
|
-------------------
|
||
|
begin : Son Jan 12 2003
|
||
|
copyright : (C) 2003 by Martin Witte
|
||
|
email : witte@kawo1.rwth-aachen.de
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
#ifndef KRADIO_RADIOCFGXMLHANDLER_H
|
||
|
#define KRADIO_RADIOCFGXMLHANDLER_H
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
#include <config.h>
|
||
|
#endif
|
||
|
|
||
13 years ago
|
#include <tqxml.h>
|
||
|
#include <tqobject.h>
|
||
15 years ago
|
|
||
|
#include "radiostation.h"
|
||
|
#include "stationlist.h"
|
||
|
|
||
13 years ago
|
class StationListXmlHandler : public TQXmlDefaultHandler
|
||
15 years ago
|
{
|
||
|
protected:
|
||
13 years ago
|
TQStringList m_status;
|
||
15 years ago
|
const IErrorLogClient&m_logger;
|
||
|
|
||
|
RawStationList m_stations;
|
||
|
StationListMetaData m_metaData;
|
||
|
|
||
|
RadioStation *m_newStation;
|
||
|
|
||
|
bool m_compatMode;
|
||
|
|
||
|
public :
|
||
|
StationListXmlHandler (const IErrorLogClient &logger);
|
||
|
virtual ~StationListXmlHandler ();
|
||
|
bool startDocument ();
|
||
13 years ago
|
bool startElement (const TQString &ns, const TQString &localname,
|
||
|
const TQString& qname, const TQXmlAttributes &);
|
||
|
bool endElement (const TQString &ns, const TQString &localname,
|
||
|
const TQString &qname);
|
||
|
bool characters (const TQString &ch);
|
||
15 years ago
|
|
||
|
const RawStationList &getStations() const { return m_stations; }
|
||
|
const StationListMetaData &getMetaData() const { return m_metaData; }
|
||
|
|
||
|
|
||
|
bool wasCompatMode() const { return m_compatMode; }
|
||
|
|
||
|
protected:
|
||
|
|
||
|
void clearNewStation();
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
12 years ago
|
extern const char *TDERadioConfigElement;
|
||
15 years ago
|
extern const char *StationListElement;
|
||
|
|
||
|
extern const char *StationListInfo;
|
||
|
extern const char *StationListInfoMaintainer;
|
||
|
extern const char *StationListInfoCountry;
|
||
|
extern const char *StationListInfoCity;
|
||
|
extern const char *StationListInfoMedia;
|
||
|
extern const char *StationListInfoComments;
|
||
|
extern const char *StationListInfoChanged;
|
||
|
extern const char *StationListInfoCreator;
|
||
|
|
||
|
extern const char *StationQuickSelectElement;
|
||
|
extern const char *StationDockingMenuElement;
|
||
|
extern const char *StationListFormat;
|
||
|
|
||
12 years ago
|
#define STATION_LIST_FORMAT "tderadio-1.0"
|
||
15 years ago
|
|
||
|
|
||
|
#endif
|