/***************************************************************************
 *   Copyright (C) 2004, 2005 by Johnathan Burchill                              *
 *   jkerrb@users.sourceforge.net                                          *
 *                                                                         *
 *   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 _KDARLISTVIEWITEM_H_
#define _KDARLISTVIEWITEM_H_

#include <klistview.h>

#include <qstring.h>

class kdarListViewItem : public QListViewItem
{
public:
        kdarListViewItem ();

        kdarListViewItem ( KListView * parent ) : QListViewItem ( parent) {};
        kdarListViewItem ( kdarListViewItem * parent ) : QListViewItem ( parent) {};
        kdarListViewItem ( KListView * parent, kdarListViewItem * after ): QListViewItem(parent, after) {};
        kdarListViewItem ( kdarListViewItem * parent, kdarListViewItem * after ): QListViewItem(parent, after){};
        kdarListViewItem ( KListView * parent, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null, QString label7 = QString::null, QString label8 = QString::null):QListViewItem(parent, label1,label2,label3,label4,label5,label6,label7,label8){};
        kdarListViewItem ( kdarListViewItem * parent, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null, QString label7 = QString::null, QString label8 = QString::null ):QListViewItem(parent, label1,label2,label3,label4,label5,label6,label7,label8){};
        kdarListViewItem ( KListView * parent, kdarListViewItem * after, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null, QString label7 = QString::null, QString label8 = QString::null ):QListViewItem(parent, after, label1,label2,label3,label4,label5,label6,label7,label8){};
        kdarListViewItem ( kdarListViewItem * parent, kdarListViewItem * after, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null, QString label7 = QString::null, QString label8 = QString::null ):QListViewItem(parent, after, label1,label2,label3,label4,label5,label6,label7,label8){};

        QString key( int column, bool ascending ) const;
        int compare( QListViewItem *i, int column, bool ascending ) const;

#if !defined(Q_NO_USING_KEYWORD)
        using QListViewItem::firstChild;
        using QListViewItem::nextSibling;
        using QListViewItem::parent;
#endif
        kdarListViewItem * firstChild();
        kdarListViewItem * nextSibling();
        kdarListViewItem * parent();

        QString path() const;
};

#endif // _KDARLISTVIEWITEM_H_
