You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
884 B
51 lines
884 B
11 years ago
|
//
|
||
|
// C++ Interface: KbItem
|
||
|
//
|
||
|
// Description:
|
||
|
//
|
||
|
//
|
||
|
// Author: mkulke <sikor_sxe@radicalapproach.de>, (C) 2003
|
||
|
//
|
||
|
// Copyright: See COPYING file that comes with this distribution
|
||
|
//
|
||
|
//
|
||
|
#ifndef KBITEM_H
|
||
|
#define KBITEM_H
|
||
|
|
||
|
#include <qlistview.h>
|
||
|
|
||
|
class KbFileInfo;
|
||
|
|
||
|
/**
|
||
|
@author mkulke
|
||
|
*/
|
||
|
class KbItem : public QListViewItem
|
||
|
{
|
||
|
public:
|
||
|
enum entrytype
|
||
|
{
|
||
|
dir = 1001,
|
||
|
file
|
||
|
};
|
||
|
KbItem(KbFileInfo kfi, QListView* parent, QListViewItem* after);
|
||
|
KbItem(QListView* parent, QListViewItem* after);
|
||
|
int compare (QListViewItem * i, int col, bool ascending) const;
|
||
|
~KbItem();
|
||
|
|
||
|
QString File() { return m_file; };
|
||
|
QString Path() { return m_path; };
|
||
|
QString Date() { return m_date; };
|
||
|
unsigned int DateInt() { return m_date_int; };
|
||
|
off64_t Size() { return m_size; };
|
||
|
|
||
|
protected:
|
||
|
QString m_path;
|
||
|
QString m_date;
|
||
|
off64_t m_size;
|
||
|
unsigned int m_date_int;
|
||
|
QString m_file;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|