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_GENRES_H
0008 #define KCDDB_GENRES_H
0009 
0010 #include "kcddb_export.h"
0011 #include <QStringList>
0012 
0013 namespace KCDDB
0014 {
0015     /**
0016      * The Genre is completely arbitrary. But we follow kaudiocreator's cue
0017      * and make life easy for people.
0018      */
0019     class KCDDB_EXPORT Genres
0020     {
0021     public:
0022         Genres();
0023         Genres(const Genres&);
0024         ~Genres();
0025 
0026         Genres& operator=(const Genres&);
0027 
0028         const QStringList &cddbList() const;
0029         const QStringList &i18nList() const;
0030 
0031         /**
0032          * Lookup the CDDB genre, and return the i18n'd version.
0033          */
0034         const QString cddb2i18n(const QString &genre) const;
0035 
0036         /**
0037          * Lookup the i18n genre, and return the CDDB version if we can.
0038          */
0039         const QString i18n2cddb(const QString &genre) const;
0040     private:
0041         class Private;
0042         Private * const d;
0043     };
0044 }
0045 
0046 #endif