AppLnkSet Class Reference
The AppLnkSet class is a set of AppLnk objects. More...
#include <applnk.h>
Inheritance diagram for AppLnkSet:


Public Member Functions | |
| AppLnkSet () | |
| AppLnkSet (const QString &dir) | |
| ~AppLnkSet () | |
| const AppLnk * | find (int id) const |
| const AppLnk * | findExec (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< AppLnk > | mApps |
| 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
|
|
Constructs an empty AppLnkSet. Definition at line 1023 of file applnk.cpp. |
|
|
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. |
|
|
Destroys the set, deleting all the AppLnk objects it contains.
Definition at line 1067 of file applnk.cpp. References QListIterator::current(), and AppLnk::mId. |
Member Function Documentation
|
|
Returns the AppLnk with the given id. Definition at line 1214 of file applnk.cpp. References children(), QListIterator::current(), and AppLnk::id(). |
|
|
Returns the AppLnk with the given exec attribute. Definition at line 1230 of file applnk.cpp. References children(), QListIterator::current(), and AppLnk::exec(). |
|
|
Returns the list of types in the set.
For applications, games and settings the type is
|
|
|
Returns the localized name for type t.
For applications, games and settings the type is Definition at line 1181 of file applnk.cpp. |
|
|
Returns the small pixmap associated with type t.
For applications, games and settings the type is Definition at line 1193 of file applnk.cpp. |
|
|
Returns the large pixmap associated with type t.
For applications, games and settings the type is Definition at line 1205 of file applnk.cpp. |
|
|
Adds AppLnk f to the set. The set takes responsibility for deleting f.
Definition at line 1147 of file applnk.cpp. References QList< AppLnk >::append(), and AppLnk::mId. Referenced by DocLnkSet::DocLnkSet(). |
|
|
Removes AppLnk f to the set. The caller becomes responsible for deleting f. Returns TRUE if f was in the set; otherwise returns FALSE.
Definition at line 1165 of file applnk.cpp. References AppLnk::mId, and QList< AppLnk >::remove(). |
|
|
Returns the members of the set. Reimplemented in DocLnkSet. Definition at line 174 of file applnk.h. Referenced by find(), and findExec(). |
|
|
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:
