~neon/juk/master

« back to all changes in this revision

Viewing changes to genrelist.h

  • Committer: Scott Wheeler
  • Date: 2002-03-06 04:24:31 UTC
  • Revision ID: git-v1:3b69f66d9a122457a3603fced6161cc38e9fd639
This is a complete rewrite of the genre system to be based on XML.
Currently this just supports reading XML genre lists.

svn path=/trunk/kdemultimedia/juk/; revision=141257

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          genrelist.h  -  description
 
3
                             -------------------
 
4
    begin                : Sun Mar 3 2002
 
5
    copyright            : (C) 2002 by Scott Wheeler
 
6
    email                : scott@slackorama.net
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef GENRELIST_H
 
19
#define GENRELIST_H
 
20
 
 
21
#include <qvaluelist.h>
 
22
#include <qstring.h>
 
23
#include <qvaluevector.h>
 
24
 
 
25
#include "genre.h"
 
26
 
 
27
class GenreList : public QValueList<Genre>  
 
28
{
 
29
public:
 
30
  GenreList();
 
31
  GenreList(QString file, bool createIndex = false);
 
32
  ~GenreList();
 
33
 
 
34
  void load(QString file);
 
35
 
 
36
  QString name(int id3v1);
 
37
 
 
38
private:
 
39
  QValueVector<QString> index;
 
40
  void initializeIndex();
 
41
};
 
42
 
 
43
#endif