summaryrefslogtreecommitdiffstats
path: root/src/kbfileinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kbfileinfo.h')
-rw-r--r--src/kbfileinfo.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/kbfileinfo.h b/src/kbfileinfo.h
new file mode 100644
index 0000000..79b60c4
--- /dev/null
+++ b/src/kbfileinfo.h
@@ -0,0 +1,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