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

0001 /*
0002     SPDX-FileCopyrightText: 2005 Shaheed Haque <srhaque@iee.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KCDDB_CATEGORIES_H
0008 #define KCDDB_CATEGORIES_H
0009 
0010 #include "kcddb_export.h"
0011 #include <QString>
0012 #include <QStringList>
0013 
0014 namespace KCDDB
0015 {
0016    /**
0017     * Category values defined by CDDB.
0018     */
0019     class KCDDB_EXPORT Categories
0020     {
0021     public:
0022         Categories();
0023         Categories(const Categories&);
0024         ~Categories();
0025 
0026         Categories& operator=(const Categories&);
0027 
0028         const QStringList &cddbList() const;
0029         const QStringList &i18nList() const;
0030         
0031         /**
0032          * Lookup the CDDB category, and return the i18n'd version.
0033          */
0034         const QString cddb2i18n(const QString &category) const;
0035 
0036         /**
0037          * Lookup the i18n category, and return the CDDB version.
0038          */
0039         const QString i18n2cddb(const QString &category) const;
0040     private:
0041         class Private;
0042         Private * const d;
0043     };
0044 }
0045 
0046 #endif