blob: f4ff79fb31968af6c77dcde7b598a20fdc8705cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
//
// C++ Interface: KbItem
//
// Description:
//
//
// Author: mkulke <[email protected]>, (C) 2003
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBITEM_H
#define KBITEM_H
#include <ntqlistview.h>
class KbFileInfo;
/**
@author mkulke
*/
class KbItem : public TQListViewItem
{
public:
enum entrytype
{
dir = 1001,
file
};
KbItem(KbFileInfo kfi, TQListView* parent, TQListViewItem* after);
KbItem(TQListView* parent, TQListViewItem* after);
int compare (TQListViewItem * i, int col, bool ascending) const;
~KbItem();
TQString File() { return m_file; };
TQString Path() { return m_path; };
TQString Date() { return m_date; };
unsigned int DateInt() { return m_date_int; };
off64_t Size() { return m_size; };
protected:
TQString m_path;
TQString m_date;
off64_t m_size;
unsigned int m_date_int;
TQString m_file;
};
#endif
|