• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • weather
StationListParser.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2009 Bastian Holst <bastianholst@gmx.de>
9 //
10 
11 #ifndef STATIONLISTPARSER_H
12 #define STATIONLISTPARSER_H
13 
14 // Qt
15 #include <QHash>
16 #include <QStringList>
17 #include <QList>
18 #include <QThread>
19 #include <QXmlStreamReader>
20 
21 class QString;
22 
23 namespace Marble
24 {
25 
26 class BBCStation;
27 
28 class StationListParser : public QThread, public QXmlStreamReader
29 {
30  Q_OBJECT
31 public:
32  explicit StationListParser( QObject *parent );
33  ~StationListParser();
34 
35  void read();
36 
37  QList<BBCStation> stationList() const;
38 
39  void setPath( QString path );
40 
41 protected:
42  void run();
43 
44 private:
45  void readUnknownElement();
46  void readStationList();
47  void readStation();
48  QString readCharacters();
49  void readPoint( BBCStation *station );
50 
51  QString m_path;
52  QList<BBCStation> m_list;
53 };
54 
55 } // Marble namespace
56 
57 #endif // STATIONLISTPARSER_H
Marble::StationListParser::read
void read()
Definition: StationListParser.cpp:37
Marble::StationListParser::setPath
void setPath(QString path)
Definition: StationListParser.cpp:58
Marble::StationListParser
Definition: StationListParser.h:28
Marble::StationListParser::StationListParser
StationListParser(QObject *parent)
Definition: StationListParser.cpp:26
Marble::StationListParser::run
void run()
Definition: StationListParser.cpp:63
QObject
QString
QList
QXmlStreamReader
Marble::BBCStation
Definition: BBCStation.h:24
Marble::StationListParser::~StationListParser
~StationListParser()
Definition: StationListParser.cpp:32
Marble::StationListParser::stationList
QList< BBCStation > stationList() const
Definition: StationListParser.cpp:53
QThread
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal