summaryrefslogtreecommitdiffstats
path: root/src/kbdirinfo.h
blob: 0c97e401df9ae39dc528bc8c5b135c4f45092a0a (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
//
// 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