Commit d49300f8 authored by Scott Wheeler's avatar Scott Wheeler

Added QStringLists artistList and albumList to FileList and accessor

fucntions.  These will later be used by FileListItem to maintain a list
of artists and albums present in their lists.  Specifically this will be
used in the combo boxes in TaggerWidget.

svn path=/trunk/kdemultimedia/juk/; revision=157376
parent 6a73b1d4
......@@ -32,13 +32,11 @@
FileList::FileList(QWidget *parent, const char *name) : KListView(parent, name)
{
processed = 0;
setup();
}
FileList::FileList(QString &item, QWidget *parent, const char *name) : KListView(parent, name)
{
processed = 0;
setup();
append(item);
}
......@@ -51,6 +49,8 @@ FileList::FileList(QStringList &items, QWidget *parent, const char *name) : KLis
FileList::~FileList()
{
delete(artistList);
delete(albumList);
}
void FileList::append(QString item)
......@@ -104,12 +104,26 @@ FileListItem *FileList::getSelectedItem()
return(dynamic_cast<FileListItem *>(currentItem()));
}
QStringList *FileList::getArtistList()
{
return(artistList);
}
QStringList *FileList::getAlbumList()
{
return(albumList);
}
////////////////////////////////////////////////////////////////////////////////
// private members
////////////////////////////////////////////////////////////////////////////////
void FileList::setup()
{
processed = 0;
artistList = new QStringList();
albumList = new QStringList();
extensions.append("mp3");
addColumn(i18n("Track Name"));
......
......@@ -41,6 +41,9 @@ public:
void remove(QPtrList<QListViewItem> &items);
FileListItem *getSelectedItem();
QStringList *getArtistList();
QStringList *getAlbumList();
private:
void setup();
......@@ -48,6 +51,8 @@ private:
QStringList extensions;
QStringList members;
QStringList *artistList;
QStringList *albumList;
void processEvents();
int processed;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment