Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DocLnkSet Class Reference

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

#include </home/clem/local/src/opie/library/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)

Private Member Functions

 DocLnkSet (const DocLnkSet &)
void findChildren (const QString &dr, const QValueList< QRegExp > &mimeFilters, QDict< void > &reference, int depth=0)

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 1295 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 1311 of file applnk.cpp.

References AppLnkSet::add(), QValueList< T >::append(), QFileInfo::baseName(), QValueList< T >::begin(), children(), QDir::dirName(), QValueList< T >::end(), DocLnk::exec(), FALSE, QFileInfo::filePath(), findChildren(), QString::isNull(), list, match(), AppLnkSet::mFile, QDict< type >::remove(), AppLnk::setFile(), AppLnk::setName(), QStringList::split(), TRUE, and AppLnk::type().

DocLnkSet::DocLnkSet const DocLnkSet  )  [private]
 


Member Function Documentation

void DocLnkSet::appendFrom DocLnkSet other  ) 
 

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

Definition at line 1357 of file applnk.cpp.

References AppLnkSet::mApps.

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

Returns the members of the set.

Reimplemented from AppLnkSet.

Definition at line 195 of file applnk.h.

References AppLnkSet::mApps.

Referenced by PlayListWidget::addAllMusicToList(), PlayListWidget::addAllToList(), PlayListWidget::addAllVideoToList(), PlayListWidget::current(), Doc_DirLister::deleteImage(), DocLnkSet(), FileSelector::fileCount(), Doc_DirLister::files(), DocumentListPrivate::iterate(), DocumentList::linkChanged(), PlayListWidget::listDelete(), PlayListWidget::populateAudioView(), PlayListWidget::populateVideoView(), PlayListFileView::populateView(), Server::readLocalIpks(), TypeCombo::reread(), PlayListFileView::scanFiles(), PlayListWidget::scanForAudio(), PlayListWidget::scanForVideo(), DocumentList::sendAllDocLinks(), Doc_DirLister::systemMsg(), PackageListDocLnk::update(), and FileSelector::updateView().

void DocLnkSet::findChildren const QString dr,
const QValueList< QRegExp > &  mimeFilters,
QDict< void > &  reference,
int  depth = 0
[private]
 

Definition at line 1369 of file applnk.cpp.

References AppLnkSet::add(), QValueList< T >::begin(), QValueList< T >::count(), QValueList< T >::end(), QDir::entryInfoList(), QFileInfo::exists(), QDir::exists(), QFileInfo::extension(), FALSE, AppLnk::file(), QFileInfo::fileName(), QFileInfo::filePath(), QDict< type >::find(), QDict< type >::insert(), QFileInfo::isDir(), list, match(), QDir::remove(), TRUE, and AppLnk::type().

Referenced by DocLnkSet().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:31:31 2005 for OPIE by  doxygen 1.4.2