| Classes | Functions | DevRef | Qt API | Qtopia Documentation |

# AppLnkSet Class Reference

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

`#include <applnk.h>`

Inherited by DocLnkSet, DocLnkSet and DocLnkSet.

List of all member functions.

## Public Members

- AppLnkSet ()
- AppLnkSet ( const QString & directory )
- ~AppLnkSet ()
- const AppLnk * find ( int id ) const
- const AppLnk * findExec ( const QString & exec ) const
- QStringList types () const
- QString typeName ( const QString & t ) const
- QPixmap typePixmap ( const QString & t ) const
- QPixmap typeBigPixmap ( const QString & t ) const
- void add ( AppLnk * f )
- bool remove ( AppLnk * f )
- const QList<AppLnk> & children () const
- void detachChildren ()

## Detailed Description

The AppLnkSet class is a set of AppLnk objects.

## Member Function Documentation

### AppLnkSet::AppLnkSet ()

Constructs an empty AppLnkSet.

### AppLnkSet::AppLnkSet ( const QString & directory )

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

### AppLnkSet::~AppLnkSet ()

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

See also detachChildren().

### void AppLnkSet::add ( AppLnk * f )

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

See also remove().

### const QList<AppLnk> & AppLnkSet::children () const

Returns the members of the set.

### void AppLnkSet::detachChildren ()

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

### const AppLnk * AppLnkSet::find ( int id ) const

Returns the AppLnk with the given id.

### const AppLnk * AppLnkSet::findExec ( const QString & exec ) const

Returns the AppLnk with the given exec attribute.

### 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().

### 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.

### 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.

### 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.

### QStringList AppLnkSet::types () const

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() and typeBigPixmap().

This file is part of the Qtopia , copyright © 1995-2002 Trolltech, all rights reserved.