blob: 79b60c4227d6a4a7291cc6dd404d6694207fcd88 (
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
|
//
// C++ Interface: kbfileinfo
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBFILEINFO_H
#define KBFILEINFO_H
#include <qfileinfo.h>
class KbItem;
/**
@author Magnus Kulke
*/
class KbFileInfo : public QFileInfo
{
public:
//KbFileInfo();
KbFileInfo(QFileInfo qfi);
KbFileInfo(const KbFileInfo& kfi);
KbFileInfo(QString workingdir);
KbFileInfo(KbItem* item, QString workingdir);
KbFileInfo(const QString & d, const QString & fileName, off64_t size, QString date, unsigned int date_int);
~KbFileInfo();
off64_t Size() { return m_size; };
QString Date() { return m_date; };
unsigned int DateInt() { return m_date_int; };
void SetDirPath(QString path);
void SetSize(off64_t size) { m_size = size; };
static bool PrioritySort(KbFileInfo *f1, KbFileInfo *f2);
//static bool PrioritySort(const KbFileInfo &f1, const KbFileInfo &f2);
private:
off64_t m_size;
unsigned int m_date_int;
QString m_date;
};
#endif
|