Added start of new Medialib view

This commit is contained in:
Tobias Rundstrom 2006-08-17 19:23:57 -04:00
parent 219327ca20
commit d114edf75f
12 changed files with 194 additions and 27 deletions

24
MedialibTreeModel.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef __MEDIALIBTREEMODEL_H__
#define __MEDIALIBTREEMODEL_H__
#include "XMMSSocket.h"
#include <QAbstractTableModel>
class MedialibTreeModel : public QAbstractTableModel
{
Q_OBJECT
public:
MedialibTreeModel (QObject *parent);
MedialibTreeModel::~MedialibTreeModel () {};
/* QModel overrides */
int rowCount (const QModelIndex &parent) const;
int columnCount (const QModelIndex &parent) const;
QVariant data (const QModelIndex &parent, int role = Qt::DisplayRole) const;
QVariant headerData (int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
private:
XMMSSocket m_socket;
};
#endif