Qtopia library API Documentation

AppLnkSet Class Reference

The AppLnkSet class is a set of AppLnk objects. More...

#include <applnk.h>

Inheritance diagram for AppLnkSet:

Inheritance graph
[legend]
Collaboration diagram for AppLnkSet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AppLnkSet ()
 AppLnkSet (const QString &dir)
 ~AppLnkSet ()
const AppLnkfind (int id) const
const AppLnkfindExec (const QString &execname) const
QStringList types () const
QString typeName (const QString &) const
QPixmap typePixmap (const QString &) const
QPixmap typeBigPixmap (const QString &) const
void add (AppLnk *)
bool remove (AppLnk *)
void clear ()
const QList< AppLnk > & children () const
void detachChildren ()

Protected Attributes

QList< AppLnkmApps
QString mFile
QStringList typs
AppLnkSetPrivate * d

Friends

class AppLnk

Detailed Description

The AppLnkSet class is a set of AppLnk objects.

Definition at line 145 of file applnk.h.


Constructor & Destructor Documentation

AppLnkSet::AppLnkSet  ) 
 

Constructs an empty AppLnkSet.

Definition at line 1023 of file applnk.cpp.

AppLnkSet::AppLnkSet const QString directory  ) 
 

Constructs an AppLnkSet that contains AppLnk objects representing all the files in the given directory (and any subdirectories recursively).

The directories may contain ".directory" files which override any AppLnk::type() values for AppLnk objects found in the directory. This allows simple localization of application types.

Definition at line 1039 of file applnk.cpp.

AppLnkSet::~AppLnkSet  ) 
 

Destroys the set, deleting all the AppLnk objects it contains.

See also:
detachChildren()

Definition at line 1067 of file applnk.cpp.

References QListIterator::current(), and AppLnk::mId.


Member Function Documentation

const AppLnk * AppLnkSet::find int  id  )  const
 

Returns the AppLnk with the given id.

Definition at line 1214 of file applnk.cpp.

References children(), QListIterator::current(), and AppLnk::id().

const AppLnk * AppLnkSet::findExec const QString exec  )  const
 

Returns the AppLnk with the given exec attribute.

Definition at line 1230 of file applnk.cpp.

References children(), QListIterator::current(), and AppLnk::exec().

QStringList AppLnkSet::types  )  const [inline]
 

Returns the list of types in the set.

For applications, games and settings the type is Application; for documents the type is the document's MIME type.

See also:
AppLnk::type(), typeName(), typePixmap(), typeBigPixmap()

Definition at line 155 of file applnk.h.

QString AppLnkSet::typeName const QString t  )  const
 

Returns the localized name for type t.

For applications, games and settings the type is Application; for documents the type is the document's MIME type.

Definition at line 1181 of file applnk.cpp.

QPixmap AppLnkSet::typePixmap const QString t  )  const
 

Returns the small pixmap associated with type t.

For applications, games and settings the type is Application; for documents the type is the document's MIME type.

Definition at line 1193 of file applnk.cpp.

QPixmap AppLnkSet::typeBigPixmap const QString t  )  const
 

Returns the large pixmap associated with type t.

For applications, games and settings the type is Application; for documents the type is the document's MIME type.

Definition at line 1205 of file applnk.cpp.

void AppLnkSet::add AppLnk f  ) 
 

Adds AppLnk f to the set. The set takes responsibility for deleting f.

See also:
remove()

Definition at line 1147 of file applnk.cpp.

References QList< AppLnk >::append(), and AppLnk::mId.

Referenced by DocLnkSet::DocLnkSet().

bool AppLnkSet::remove AppLnk f  ) 
 

Removes AppLnk f to the set. The caller becomes responsible for deleting f. Returns TRUE if f was in the set; otherwise returns FALSE.

See also:
add()

Definition at line 1165 of file applnk.cpp.

References AppLnk::mId, and QList< AppLnk >::remove().

const QList< AppLnk > & AppLnkSet::children  )  const [inline]
 

Returns the members of the set.

Reimplemented in DocLnkSet.

Definition at line 174 of file applnk.h.

Referenced by find(), and findExec().

void AppLnkSet::detachChildren  ) 
 

Detaches all AppLnk objects from the set. The set become empty and the caller becomes responsible for deleting the AppLnk objects.

Definition at line 1051 of file applnk.cpp.

References QList< AppLnk >::clear(), QListIterator::current(), and AppLnk::mId.


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:11 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001