summaryrefslogtreecommitdiffstats
path: root/libkcddb/categories.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /libkcddb/categories.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
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
Diffstat (limited to 'libkcddb/categories.h')
-rw-r--r--libkcddb/categories.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/libkcddb/categories.h b/libkcddb/categories.h
new file mode 100644
index 00000000..01147111
--- /dev/null
+++ b/libkcddb/categories.h
@@ -0,0 +1,42 @@
+// 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_CATEGORIES_H
+#define KCDDB_CATEGORIES_H
+
+#include <qstring.h>
+#include <qstringlist.h>
+
+namespace KCDDB
+{
+ /**
+ * Category values defined by CDDB.
+ */
+ class Categories
+ {
+ public:
+ Categories();
+
+ const QStringList &cddbList() const { return m_cddb; };
+ const QStringList &i18nList() const { return m_i18n; };
+
+ /**
+ * Lookup the CDDB category, and return the i18n'd version.
+ */
+ const QString cddb2i18n(const QString &category) const;
+
+ /**
+ * Lookup the i18n category, and return the CDDB version.
+ */
+ const QString i18n2cddb(const QString &category) const;
+ private:
+ QStringList m_cddb;
+ QStringList m_i18n;
+ };
+}
+
+#endif