File indexing completed on 2024-04-28 04:50:19

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