kradio4
r778
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
src
stationlistxmlhandler.h
Go to the documentation of this file.
1
/***************************************************************************
2
radiocfgxmlhandler.h - description
3
-------------------
4
begin : Son Jan 12 2003
5
copyright : (C) 2003 by Martin Witte
6
email : emw-kradio@nocabal.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef KRADIO_RADIOCFGXMLHANDLER_H
18
#define KRADIO_RADIOCFGXMLHANDLER_H
19
20
#ifdef HAVE_CONFIG_H
21
#include <config.h>
22
#endif
23
24
#include <QtXml/QtXml>
25
#include <QtCore/QObject>
26
27
#include "radiostation.h"
28
#include "
stationlist.h
"
29
30
class
KDE_EXPORT
StationListXmlHandler
:
public
QXmlDefaultHandler
31
{
32
protected
:
33
QStringList
m_status
;
34
const
IErrorLogClient&
m_logger
;
35
36
StationList
m_stations
;
37
38
RadioStation *
m_newStation
;
39
40
bool
m_compatMode
;
41
42
public
:
43
StationListXmlHandler
(
const
IErrorLogClient &logger);
44
virtual
~
StationListXmlHandler
();
45
bool
startDocument ();
46
bool
startElement (
const
QString &ns,
const
QString &localname,
47
const
QString& qname,
const
QXmlAttributes &);
48
bool
endElement (
const
QString &ns,
const
QString &localname,
49
const
QString &qname);
50
bool
characters (
const
QString &ch);
51
52
const
StationList
&
getStations
()
const
{
return
m_stations; }
53
54
bool
wasCompatMode
()
const
{
return
m_compatMode; }
55
56
protected
:
57
58
void
clearNewStation();
59
};
60
61
62
63
extern
const
char
*
KRadioConfigElement
;
64
extern
const
char
*
StationListElement
;
65
66
extern
const
char
*
StationListInfo
;
67
extern
const
char
*
StationListInfoMaintainer
;
68
extern
const
char
*
StationListInfoCountry
;
69
extern
const
char
*
StationListInfoCity
;
70
extern
const
char
*
StationListInfoMedia
;
71
extern
const
char
*
StationListInfoComments
;
72
extern
const
char
*
StationListInfoChanged
;
73
extern
const
char
*
StationListInfoCreator
;
74
75
extern
const
char
*
StationQuickSelectElement
;
76
extern
const
char
*
StationDockingMenuElement
;
77
extern
const
char
*
StationListFormat
;
78
79
#define STATION_LIST_FORMAT "kradio-1.0"
80
81
82
#endif
Generated by
1.8.1.2