|
1 /****************************************************************************** |
|
2 * |
|
3 * |
|
4 * |
|
5 * Copyright (C) 1997-2008 by Dimitri van Heesch. |
|
6 * |
|
7 * Permission to use, copy, modify, and distribute this software and its |
|
8 * documentation under the terms of the GNU General Public License is hereby |
|
9 * granted. No representations are made about the suitability of this software |
|
10 * for any purpose. It is provided "as is" without express or implied warranty. |
|
11 * See the GNU General Public License for more details. |
|
12 * |
|
13 * Documents produced by Doxygen are derivative works derived from the |
|
14 * input used in their production; they are not affected by this license. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef FILENAME_H |
|
19 #define FILENAME_H |
|
20 |
|
21 #include "qtbc.h" |
|
22 #include <qdict.h> |
|
23 #include "filedef.h" |
|
24 |
|
25 class FileName : public FileList |
|
26 { |
|
27 public: |
|
28 FileName(const char *fn,const char *name); |
|
29 ~FileName(); |
|
30 const char *fileName() const { return name; } |
|
31 const char *fullName() const { return fName; } |
|
32 void generateDiskNames(); |
|
33 int compareItems(GCI item1,GCI item2); |
|
34 |
|
35 private: |
|
36 QCString name; |
|
37 QCString fName; |
|
38 }; |
|
39 |
|
40 class FileNameIterator : public QListIterator<FileDef> |
|
41 { |
|
42 public: |
|
43 FileNameIterator(const FileName &list); |
|
44 }; |
|
45 |
|
46 class FileNameList : public QList<FileName> |
|
47 { |
|
48 public: |
|
49 FileNameList(); |
|
50 ~FileNameList(); |
|
51 void generateDiskNames(); |
|
52 int compareItems(GCI item1,GCI item2); |
|
53 }; |
|
54 |
|
55 class FileNameListIterator : public QListIterator<FileName> |
|
56 { |
|
57 public: |
|
58 FileNameListIterator( const FileNameList &list ); |
|
59 }; |
|
60 |
|
61 class FileNameDict : public QDict<FileName> |
|
62 { |
|
63 public: |
|
64 FileNameDict(uint size) : |
|
65 QDict<FileName>(size,Config_getBool("CASE_SENSE_NAMES")) {} |
|
66 ~FileNameDict() {} |
|
67 }; |
|
68 |
|
69 #endif |