You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdemultimedia/libkcddb/genres.h

44 lines
1.1 KiB

// 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 <tqstring.h>
#include <tqstringlist.h>
namespace KCDDB
{
/**
* The Genre is completely arbitrary. But we follow kaudiocreator's cue
* and make life easy for people.
*/
class Genres
{
public:
Genres();
const TQStringList &cddbList() const { return m_cddb; };
const TQStringList &i18nList() const { return m_i18n; };
/**
* Lookup the CDDB genre, and return the i18n'd version.
*/
const TQString cddb2i18n(const TQString &genre) const;
/**
* Lookup the i18n genre, and return the CDDB version if we can.
*/
const TQString i18n2cddb(const TQString &genre) const;
private:
TQStringList m_cddb;
TQStringList m_i18n;
};
}
#endif