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/kbdirinfo.h | |
download | kasablanca-c3f8ee64e905cdb103b5bfa07525fb4e85c31120.tar.gz kasablanca-c3f8ee64e905cdb103b5bfa07525fb4e85c31120.zip |
Initial import of kasablanca 0.4.0.2
Diffstat (limited to 'src/kbdirinfo.h')
-rw-r--r-- | src/kbdirinfo.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/kbdirinfo.h b/src/kbdirinfo.h new file mode 100644 index 0000000..0c97e40 --- /dev/null +++ b/src/kbdirinfo.h @@ -0,0 +1,41 @@ +// +// C++ Interface: kbdirinfo +// +// Description: +// +// +// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef KBDIRINFO_H +#define KBDIRINFO_H + +#include <list> + +#include "kbfileinfo.h" + +using namespace std; + +/** +@author Magnus Kulke +*/ +class KbDirInfo : public KbFileInfo +{ +public: + KbDirInfo(QString path); + KbDirInfo(KbFileInfo info); + ~KbDirInfo(); + KbDirInfo* AddDirectory(KbFileInfo info); + void AddFile(KbFileInfo* info); + static bool PrioritySort(const KbDirInfo *f1, const KbDirInfo *f2); +private: + list<KbFileInfo*> m_filelist; + list<KbDirInfo*> m_dirlist; +public: + list<KbDirInfo*>* Dirlist() { return &m_dirlist; } + list<KbFileInfo*>* Filelist() { return &m_filelist; } +}; + +#endif |