File indexing completed on 2024-04-28 08:46:49
0001 /* 0002 SPDX-FileCopyrightText: 2002 Rik Hemsley (rikkus) <rik@kde.org> 0003 SPDX-FileCopyrightText: 2002 Benjamin Meyer <ben-devel@meyerhome.net> 0004 SPDX-FileCopyrightText: 2002 Nadeem Hasan <nhasan@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef KCDDB_CDDB_H 0010 #define KCDDB_CDDB_H 0011 0012 #include "kcddb.h" 0013 #include "cdinfo.h" 0014 #include "config.h" 0015 0016 #include <QString> 0017 0018 namespace KCDDB 0019 { 0020 class CDDB 0021 { 0022 public: 0023 CDDB(); 0024 virtual ~CDDB(); 0025 0026 static QString trackOffsetListToId( const TrackOffsetList & ); 0027 0028 static QString clientName() { return QLatin1String("libkcddb"); } 0029 static QString clientVersion() { return QLatin1String("0.5"); } 0030 0031 static uint statusCode( const QString & ); 0032 0033 static CDInfoList cacheFiles(const TrackOffsetList &, const Config& ); 0034 0035 protected: 0036 QString trackOffsetListToId(); 0037 QString trackOffsetListToString(); 0038 0039 QString user_; 0040 QString localHostName_; 0041 0042 bool readOnly_; 0043 0044 TrackOffsetList trackOffsetList_; 0045 }; 0046 } 0047 0048 #endif // KCDDB_CDDB_H 0049 0050 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1