genre.h 1.44 KB
Newer Older
1 2 3 4 5
/***************************************************************************
                          genre.h  -  description
                             -------------------
    begin                : Sun Feb 17 2002
    copyright            : (C) 2002 by Scott Wheeler
6
    email                : wheeler@kde.org
7 8 9 10 11 12 13 14 15 16 17
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

18 19
#ifndef GENRE_H
#define GENRE_H
20 21

#include <qstring.h>
22
#include <qdatastream.h>
23

24
class Genre : public QString
25 26
{
public:
27 28 29 30 31 32 33
    Genre();
    Genre(const QString &genreName, int ID3v1Number = 255);
    Genre &operator=(const QString &);
    
    int getID3v1() const;
    void setID3v1(int number);
    
34
private:
35 36
    QString name;
    int ID3v1;
37 38
};

39 40 41
QDataStream &operator<<(QDataStream &s, const Genre &g);
QDataStream &operator>>(QDataStream &s, Genre &g);

42
#endif