Public Member Functions | Private Member Functions | List of all members
FileNameList Class Reference

#include <filename.h>

Inheritance diagram for FileNameList:
QList< FileName > QGList

Public Member Functions

 FileNameList ()
 
 ~FileNameList ()
 
void generateDiskNames ()
 
- Public Member Functions inherited from QList< FileName >
 QList ()
 
 QList (const QList< FileName > &l)
 
 ~QList ()
 
QList< FileName > & operator= (const QList< FileName > &l)
 
bool operator== (const QList< FileName > &list) const
 
uint count () const
 
bool isEmpty () const
 
bool insert (uint i, const FileName *d)
 
void inSort (const FileName *d)
 
void prepend (const FileName *d)
 
void append (const FileName *d)
 
bool remove (uint i)
 
bool remove (const FileName *d)
 
bool removeRef (const FileName *d)
 
bool removeFirst ()
 
bool removeLast ()
 
FileNametake (uint i)
 
void clear ()
 
void sort ()
 
int find (const FileName *d) const
 
int findRef (const FileName *d) const
 
uint contains (const FileName *d) const
 
uint containsRef (const FileName *d) const
 
FileNameat (uint i) const
 
FileNamegetFirst () const
 
FileNamegetLast () const
 
void setAutoDelete (bool enable)
 

Private Member Functions

int compareValues (const FileName *item1, const FileName *item2) const
 

Detailed Description

Class representing a list of FileName objects.

Definition at line 49 of file filename.h.

Constructor & Destructor Documentation

FileNameList::FileNameList ( )

Definition at line 113 of file filename.cpp.

113  : QList<FileName>()
114 {
115 }
FileNameList::~FileNameList ( )

Definition at line 117 of file filename.cpp.

118 {
119 }

Member Function Documentation

int FileNameList::compareValues ( const FileName item1,
const FileName item2 
) const
privatevirtual

Reimplemented from QList< FileName >.

Definition at line 131 of file filename.cpp.

132 {
133  return Config_getBool("FULL_PATH_NAMES") ?
134  qstricmp(f1->fullName(),f2->fullName()) :
135  qstricmp(f1->fileName(),f2->fileName());
136 }
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567
#define Config_getBool(val)
Definition: config.cpp:664
void FileNameList::generateDiskNames ( )

Definition at line 121 of file filename.cpp.

122 {
123  FileNameListIterator it(*this);
124  FileName *fn;
125  for (;(fn=it.current());++it)
126  {
127  fn->generateDiskNames();
128  }
129 }
void generateDiskNames()
Definition: filename.cpp:34
QAsciiDict< Entry > fn

The documentation for this class was generated from the following files: