From c3f8ee64e905cdb103b5bfa07525fb4e85c31120 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 11:49:27 -0500 Subject: Initial import of kasablanca 0.4.0.2 --- src/kbfileinfo.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/kbfileinfo.h (limited to 'src/kbfileinfo.h') 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 , (C) 2004 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef KBFILEINFO_H +#define KBFILEINFO_H + +#include + +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 -- cgit v1.2.1