2
/***************************************************************************
5
begin : Sat Apr 10 2004
6
copyright : (C) 2004 by Dirk Ziegelmeier
8
***************************************************************************/
11
* This library is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU Library General Public
13
* License as published by the Free Software Foundation; either
14
* version 2 of the License, or (at your option) any later version.
16
* This library is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Library General Public License for more details.
21
* You should have received a copy of the GNU Library General Public License
22
* along with this library; see the file COPYING.LIB. If not, write to
23
* the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
24
* Boston, MA 02110-1301, USA.
33
#include <qstringlist.h>
43
class ChannelSuiteDbEntry
46
ChannelSuiteDbEntry();
48
const QString& country() const { return _country; }
49
const QString& region() const { return _region; }
50
const QString& type() const { return _type; }
51
const QString& comment() const { return _comment; }
55
friend class ChannelSuiteDb;
64
typedef QPtrList<ChannelSuiteDbEntry> ChannelSuiteDbEntryList;
66
class ChannelSuiteDb : public QObject
72
virtual ~ChannelSuiteDb();
74
void loadIndex(const KURL& url);
75
const QStringList& getCountries() const { return _countries; }
76
const QStringList& getRegions() const { return _regions; }
77
const QStringList& getTypes() const { return _types; }
78
ChannelSuiteDbEntryList* getEntries(const QString& country = QString::null,
79
const QString& region = QString::null,
80
const QString& type = QString::null);
81
void importList(ChannelStore& store, ChannelSuiteDbEntry& e);
85
void loadDone(bool success);
86
void importDone(bool success);
90
void indexDataArrived(KIO::Job*, const QByteArray&);
91
void indexDataResult(KIO::Job*);
93
void importDataArrived(KIO::Job*, const QByteArray&);
94
void importDataResult(KIO::Job*);
98
ChannelSuiteDbEntryList _entries;
99
QStringList _countries;
100
QStringList _regions;
106
ChannelStore* _importStore;