Qtopia library API Documentation

DocLnkSet Class Reference

The DocLnkSet class is a set of DocLnk objects. More...

#include <applnk.h>

Inheritance diagram for DocLnkSet:

Inheritance graph
[legend]
Collaboration diagram for DocLnkSet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DocLnkSet ()
 DocLnkSet (const QString &dir, const QString &mimefilter=QString::null)
const QList< DocLnk > & children () const
void appendFrom (DocLnkSet &other)

Detailed Description

The DocLnkSet class is a set of DocLnk objects.

Definition at line 189 of file applnk.h.


Constructor & Destructor Documentation

DocLnkSet::DocLnkSet  ) 
 

Constructs an empty DocLnkSet.

See also:
appendFrom()

Definition at line 1259 of file applnk.cpp.

DocLnkSet::DocLnkSet const QString directory,
const QString mimefilter = QString::null
 

Constructs a DocLnkSet that contains DocLnk objects representing all the files in the directory (and any subdirectories, recursively).

If mimefilter is not null, only documents with a MIME type matching mimefilter are selected. The value may contain multiple wild-card patterns separated by ";", such as {*o/mpeg;audio/x-wav}.

See also Files and Links.

Definition at line 1275 of file applnk.cpp.

References AppLnkSet::add(), QValueList::append(), QFileInfo::baseName(), QValueList::begin(), children(), QDictIterator::current(), QListIterator::current(), QDictIterator::currentKey(), QDir::dirName(), QValueList::end(), DocLnk::exec(), QFileInfo::filePath(), QDict::remove(), AppLnk::setFile(), AppLnk::setName(), QStringList::split(), and AppLnk::type().


Member Function Documentation

const QList< DocLnk > & DocLnkSet::children  )  const [inline]
 

Returns the members of the set.

Reimplemented from AppLnkSet.

Definition at line 195 of file applnk.h.

Referenced by DocLnkSet().

void DocLnkSet::appendFrom DocLnkSet other  ) 
 

Transfers all DocLnk objects from other to this set. other becomes empty.

Definition at line 1321 of file applnk.cpp.

References QList< AppLnk >::append(), QList< AppLnk >::clear(), QListIterator::current(), and AppLnkSet::mApps.

Referenced by Global::findDocuments().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.5.5.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:18 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001