genrelistreader.h 1.53 KB
Newer Older
1 2 3 4 5
/***************************************************************************
                          genrelistreader.h  -  description
                             -------------------
    begin                : Mon Mar 4 2002
    copyright            : (C) 2002 by Scott Wheeler
6
    email                : wheeler@kde.org
7
***************************************************************************/
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

/***************************************************************************
 *                                                                         *
 *   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 GENRELISTREADER_H
#define GENRELISTREADER_H

#include <qxml.h>

#include "genrelist.h"

class GenreListReader : public QXmlDefaultHandler
{
27 28
public:
    GenreListReader(GenreList *genreList);
29
    virtual ~GenreListReader();
30

31 32
    bool startElement(const QString &, const QString &, const QString & element, const QXmlAttributes & attributes);
    bool endElement(const QString &, const QString &, const QString &);
33

34
    bool characters(const QString &content);
35 36

private:
37 38
    GenreList *list;
    bool inGenreTag;
39
    int ID3v1;
40 41 42
};

#endif