File indexing completed on 2024-04-21 04:54:19

0001 /*
0002     SPDX-FileCopyrightText: 2004 Richard Lärkäng <nouseforaname@home.se>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KCDDB_SITES_H
0008 #define KCDDB_SITES_H
0009 
0010 #include "cddb.h"
0011 #include "lookup.h"
0012 #include "kcddb_export.h"
0013 #include <QList>
0014 
0015 namespace KCDDB
0016 {
0017   class Mirror
0018   {
0019     public:
0020       QString address;
0021       Lookup::Transport transport;
0022       uint port;
0023       QString description;
0024   } ;
0025 
0026   class KCDDB_EXPORT Sites
0027   {
0028     public:
0029       Sites();
0030 
0031       QList<Mirror> siteList();
0032     private:
0033       QList<Mirror> readData(const QByteArray& data);
0034       Mirror parseLine(const QString& line);
0035   } ;
0036 }
0037 
0038 #endif
0039 
0040 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1