diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 11:49:27 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 11:49:27 -0500 |
commit | c3f8ee64e905cdb103b5bfa07525fb4e85c31120 (patch) | |
tree | 46eabe44a1b3af79971dcafb743a104af8e18e69 /src/kbitem.h | |
download | kasablanca-c3f8ee64e905cdb103b5bfa07525fb4e85c31120.tar.gz kasablanca-c3f8ee64e905cdb103b5bfa07525fb4e85c31120.zip |
Initial import of kasablanca 0.4.0.2
Diffstat (limited to 'src/kbitem.h')
-rw-r--r-- | src/kbitem.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/kbitem.h b/src/kbitem.h new file mode 100644 index 0000000..ee390be --- /dev/null +++ b/src/kbitem.h @@ -0,0 +1,50 @@ +// +// 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 |