From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcddb/genres.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 libkcddb/genres.h (limited to 'libkcddb/genres.h') diff --git a/libkcddb/genres.h b/libkcddb/genres.h new file mode 100644 index 00000000..4456f894 --- /dev/null +++ b/libkcddb/genres.h @@ -0,0 +1,43 @@ +// Copyright (C) 2005 by Shaheed Haque (srhaque@iee.org). All rights reserved. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +#ifndef KCDDB_GENRES_H +#define KCDDB_GENRES_H + +#include +#include + +namespace KCDDB +{ + /** + * The Genre is completely arbitrary. But we follow kaudiocreator's cue + * and make life easy for people. + */ + class Genres + { + public: + Genres(); + + const QStringList &cddbList() const { return m_cddb; }; + const QStringList &i18nList() const { return m_i18n; }; + + /** + * Lookup the CDDB genre, and return the i18n'd version. + */ + const QString cddb2i18n(const QString &genre) const; + + /** + * Lookup the i18n genre, and return the CDDB version if we can. + */ + const QString i18n2cddb(const QString &genre) const; + private: + QStringList m_cddb; + QStringList m_i18n; + }; +} + +#endif -- cgit v1.2.1