#include </home/clem/local/src/opie/library/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 |
Private Member Functions | |
| AppLnkSet (const AppLnkSet &) | |
| void | findChildren (const QString &, const QString &t, const QString <, int depth=0) |
Friends | |
| class | AppLnk |
Definition at line 145 of file applnk.h.
|
|
Constructs an empty AppLnkSet. Definition at line 1062 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 1078 of file applnk.cpp. References findChildren(), mFile, and QString::null. |
|
|
Destroys the set, deleting all the AppLnk objects it contains.
Definition at line 1106 of file applnk.cpp. References d, mApps, and AppLnk::mId. |
|
|
|
|
|
Adds AppLnk f to the set. The set takes responsibility for deleting f.
Definition at line 1183 of file applnk.cpp. References AppLnk::lastId, mApps, AppLnk::mId, and qWarning(). Referenced by DocLnkSet::DocLnkSet(), DocLnkSet::findChildren(), findChildren(), DocumentListPrivate::store(), and Doc_DirLister::systemMsg(). |
|
|
Returns the members of the set. Reimplemented in DocLnkSet. Definition at line 174 of file applnk.h. References mApps. Referenced by DocumentList::DiffAppLnks(), find(), findExec(), MagicTextBrowser::generateQpe(), DocumentList::reloadAppLnks(), AppLnkSearch::search(), and MimeType::updateApplications(). |
|
|
Definition at line 162 of file applnk.h. References QValueList< T >::clear(), mApps, AppLnk::mId, and typs. Referenced by DocumentListPrivate::initialize(), and FileSelector::reread(). |
|
|
Detaches all AppLnk objects from the set. The set become empty and the caller becomes responsible for deleting the AppLnk objects. Definition at line 1090 of file applnk.cpp. References mApps, and AppLnk::mId. Referenced by PlayListFileView::scanFiles(), PlayListWidget::scanForAudio(), and PlayListWidget::scanForVideo(). |
|
|
Returns the AppLnk with the given id. Definition at line 1250 of file applnk.cpp. References app, children(), and AppLnk::id(). |
|
||||||||||||||||||||
|
Definition at line 1118 of file applnk.cpp. References add(), app, QValueList< T >::append(), AppLnk, d, QDir::entryInfoList(), AppLnk::exec(), QDir::exists(), QFileInfo::extension(), FALSE, Config::File, QFileInfo::fileName(), QFileInfo::filePath(), QDict< type >::insert(), Global::isBuiltinCommand(), QFileInfo::isDir(), QString::isEmpty(), QString::isNull(), list, Config::readEntry(), Config::setGroup(), AppLnk::setType(), TRUE, AppLnkSetPrivate::typName, AppLnkSetPrivate::typPix, and typs. Referenced by AppLnkSet(). |
|
|
Returns the AppLnk with the given exec attribute. Definition at line 1266 of file applnk.cpp. References app, children(), and AppLnk::exec(). Referenced by TaskSelector::buildMenu(), and AppLauncher::sigStopped(). |
|
|
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 1201 of file applnk.cpp. References FALSE, mApps, AppLnk::mId, and TRUE. Referenced by DocumentList::linkChanged(), and Doc_DirLister::systemMsg(). |
|
|
Returns the large pixmap associated with type t.
For applications, games and settings the type is Definition at line 1241 of file applnk.cpp. References AppLnkImagePrivate::big(), d, QDict< type >::find(), and AppLnkSetPrivate::typPix. Referenced by DocumentList::DiffAppLnks(), and DocumentList::reloadAppLnks(). |
|
|
Returns the localized name for type t.
For applications, games and settings the type is Definition at line 1217 of file applnk.cpp. References d, QDict< type >::find(), QString::null, and AppLnkSetPrivate::typName. Referenced by DocumentList::DiffAppLnks(), and DocumentList::reloadAppLnks(). |
|
|
Returns the small pixmap associated with type t.
For applications, games and settings the type is Definition at line 1229 of file applnk.cpp. References d, QDict< type >::find(), AppLnkImagePrivate::small(), and AppLnkSetPrivate::typPix. Referenced by DocumentList::DiffAppLnks(), and DocumentList::reloadAppLnks(). |
|
|
Returns the list of types in the set.
For applications, games and settings the type is
Definition at line 155 of file applnk.h. References typs. Referenced by DocumentList::DiffAppLnks(), and DocumentList::reloadAppLnks(). |
|
|
Definition at line 178 of file applnk.h. Referenced by findChildren(). |
|
|
Definition at line 182 of file applnk.h. Referenced by findChildren(), typeBigPixmap(), typeName(), typePixmap(), and ~AppLnkSet(). |
|
|
Definition at line 179 of file applnk.h. Referenced by add(), DocLnkSet::appendFrom(), DocLnkSet::children(), children(), clear(), detachChildren(), remove(), and ~AppLnkSet(). |
|
|
Definition at line 180 of file applnk.h. Referenced by AppLnkSet(), and DocLnkSet::DocLnkSet(). |
|
|
Definition at line 181 of file applnk.h. Referenced by clear(), findChildren(), and types(). |
1.4.2