1 /******************************************************************************
3 * $Id: filename.h,v 1.10 2001/03/19 19:27:40 root Exp $
5 * Copyright (C) 1997-2012 by Dimitri van Heesch.
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.
13 * Documents produced by Doxygen are derivative works derived from the
14 * input used in their production; they are not affected by this license.
25 /** Class representing all files with a certain base name */
26 class FileName : public FileList
29 FileName(const char *fn,const char *name);
31 const char *fileName() const { return name; }
32 const char *fullName() const { return fName; }
33 void generateDiskNames();
34 int compareItems(GCI item1,GCI item2);
41 /** Iterator for FileDef objects in a FileName list. */
42 class FileNameIterator : public QListIterator<FileDef>
45 FileNameIterator(const FileName &list);
48 /** Class representing a list of FileName objects. */
49 class FileNameList : public QList<FileName>
54 void generateDiskNames();
55 int compareItems(GCI item1,GCI item2);
58 /** Iterator for FileName objects in a FileNameList. */
59 class FileNameListIterator : public QListIterator<FileName>
62 FileNameListIterator( const FileNameList &list );
65 /** Unsorted dictionary of FileName objects. */
66 class FileNameDict : public QDict<FileName>
69 FileNameDict(uint size) :
70 QDict<FileName>(size,Config_getBool("CASE_SENSE_NAMES")) {}