promoe/MedialibTreeModel.h
2006-08-17 19:23:57 -04:00

24 lines
634 B
C++

#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