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

Launcher Class Reference

#include </home/clem/local/src/opie/core/launcher/launcher.h>

Inheritance diagram for Launcher:

Inheritance graph
[legend]
Collaboration diagram for Launcher:

Collaboration graph
[legend]
List of all members.

Public Slots

void viewSelected (const QString &)
void showTab (const QString &)
void select (const AppLnk *)
void properties (AppLnk *)
void makeVisible ()

Signals

void executing (const AppLnk *)

Public Member Functions

 Launcher ()
 ~Launcher ()
void createGUI ()
void destroyGUI ()
void typeAdded (const QString &type, const QString &name, const QPixmap &pixmap, const QPixmap &bgPixmap)
void typeRemoved (const QString &type)
void applicationAdded (const QString &type, const AppLnk &doc)
void applicationRemoved (const QString &type, const AppLnk &doc)
void allApplicationsRemoved ()
void applicationStateChanged (const QString &name, ApplicationState state)
void documentAdded (const DocLnk &doc)
void documentRemoved (const DocLnk &doc)
void aboutToAddBegin ()
void aboutToAddEnd ()
void allDocumentsRemoved ()
void documentChanged (const DocLnk &oldDoc, const DocLnk &newDoc)
void storageChanged (const QList< FileSystem > &)
void applicationScanningProgress (int percent)
void documentScanningProgress (int percent)
bool requiresApplications () const
bool requiresDocuments () const
void showLoadingDocs ()
void showDocTab ()
QStringList idList () const

Protected Member Functions

bool eventFilter (QObject *o, QEvent *ev)

Private Slots

void systemMessage (const QCString &, const QByteArray &)

Private Member Functions

void updateApps ()
void loadDocs ()
void updateDocs ()
void updateTabs ()

Private Attributes

LauncherTabWidgettabs
QStringList ids
TaskBartb
bool docTabEnabled

Constructor & Destructor Documentation

Launcher::Launcher  ) 
 

Definition at line 497 of file launcher.cpp.

References docTabEnabled, Config::readBoolEntry(), Config::setGroup(), tabs, and tb.

Launcher::~Launcher  ) 
 

Definition at line 548 of file launcher.cpp.

References destroyGUI(), and tb.


Member Function Documentation

void Launcher::aboutToAddBegin  )  [virtual]
 

Reimplemented from ServerInterface.

Definition at line 739 of file launcher.cpp.

References LauncherTabWidget::docView(), and tabs.

void Launcher::aboutToAddEnd  )  [virtual]
 

Reimplemented from ServerInterface.

Definition at line 744 of file launcher.cpp.

References LauncherTabWidget::docView(), and tabs.

void Launcher::allApplicationsRemoved  )  [virtual]
 

Remove all applications from the launcher.

Implements ServerInterface.

Definition at line 727 of file launcher.cpp.

References QValueList< T >::begin(), MimeType::clear(), QValueList< T >::end(), ids, tabs, and LauncherTabWidget::view().

void Launcher::allDocumentsRemoved  )  [virtual]
 

Remove all documents from the launcher.

Implements ServerInterface.

Definition at line 776 of file launcher.cpp.

References LauncherTabWidget::docView(), and tabs.

void Launcher::applicationAdded const QString type,
const AppLnk app
[virtual]
 

Add an application app of type type to the launcher.

See also:
applicationRemoved()

Implements ServerInterface.

Definition at line 703 of file launcher.cpp.

References FALSE, owarn, MimeType::registerApp(), tabs, AppLnk::type(), and LauncherTabWidget::view().

void Launcher::applicationRemoved const QString type,
const AppLnk app
[virtual]
 

Remove an application app of type type from the launcher.

See also:
applicationAdded()

Implements ServerInterface.

Definition at line 718 of file launcher.cpp.

References AppLnk::linkFile(), oendl, owarn, tabs, and LauncherTabWidget::view().

void Launcher::applicationScanningProgress int  percent  )  [virtual]
 

The system is scanning for installed applications. percent provides the percentage of the filesystems scanned. This function will always be called with percent equal to zero when scanning starts, and with percent equal to 100 when scanning is complete.

Implements ServerInterface.

Definition at line 786 of file launcher.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), FALSE, ids, TaskBar::refreshStartMenu(), tabs, tb, TRUE, and LauncherTabWidget::view().

void Launcher::applicationStateChanged const QString name,
ApplicationState  state
[virtual]
 

The application name has changed state to state. This can be used to show launch notification and update a list of running applications.

Implements ServerInterface.

Definition at line 781 of file launcher.cpp.

References TaskBar::setApplicationState(), and tb.

void Launcher::createGUI  )  [virtual]
 

Implement this function to create the custom launcher UI.

Implements ServerInterface.

Definition at line 507 of file launcher.cpp.

References ServerInterface::Bottom, ServerInterface::dockWidget(), Resource::loadPixmap(), makeVisible(), LauncherTabWidget::newView(), properties(), qApp, select(), showTab(), SmallIcon(), systemMessage(), tabs, tb, tr, TRUE, and viewSelected().

void Launcher::destroyGUI  )  [virtual]
 

Implement this function to destroy the custom launcher UI. All resources allocated by createGUI() must be released.

Implements ServerInterface.

Definition at line 566 of file launcher.cpp.

References tabs, and tb.

Referenced by ~Launcher().

void Launcher::documentAdded const DocLnk doc  )  [virtual]
 

Add a document doc to the launcher.

See also:
documentRemoved()

Implements ServerInterface.

Definition at line 734 of file launcher.cpp.

References LauncherTabWidget::docView(), FALSE, and tabs.

Referenced by documentChanged().

void Launcher::documentChanged const DocLnk oldDoc,
const DocLnk newDoc
[virtual]
 

Change document properties of existing document oldDoc to newDoc.

Implements ServerInterface.

Definition at line 765 of file launcher.cpp.

References documentAdded(), documentRemoved(), LauncherTabWidget::docView(), and tabs.

void Launcher::documentRemoved const DocLnk doc  )  [virtual]
 

Remove a document doc to the launcher.

See also:
documentAdded()

Implements ServerInterface.

Definition at line 760 of file launcher.cpp.

References LauncherTabWidget::docView(), AppLnk::linkFile(), and tabs.

Referenced by documentChanged().

void Launcher::documentScanningProgress int  percent  )  [virtual]
 

The system is scanning for documents. percent provides the percentage of the filesystems scanned. This function will always be called with percent equal to zero when scanning starts, and with percent equal to 100 when scanning is complete.

Implements ServerInterface.

Definition at line 809 of file launcher.cpp.

References LauncherTabWidget::docView(), FALSE, LauncherTabWidget::setLoadingProgress(), LauncherTabWidget::setLoadingWidgetEnabled(), tabs, and TRUE.

bool Launcher::eventFilter QObject *  o,
QEvent *  ev
[protected]
 

Definition at line 574 of file launcher.cpp.

References active, FALSE, Qt::Key_F11, KeyPress, TaskBar::launchStartMenu(), qApp, tb, Global::terminateBuiltin(), and TRUE.

void Launcher::executing const AppLnk  )  [signal]
 

Referenced by select().

QStringList Launcher::idList  )  const [inline]
 

Definition at line 128 of file launcher.h.

References ids.

void Launcher::loadDocs  )  [private]
 

void Launcher::makeVisible  )  [slot]
 

Definition at line 561 of file launcher.cpp.

References showMaximized.

Referenced by createGUI().

void Launcher::properties AppLnk  )  [slot]
 

Definition at line 642 of file launcher.cpp.

References LauncherTabWidget::currentView(), LauncherTabWidget::docView(), QPEApplication::execDialog(), prop, tabs, and AppLnk::type().

Referenced by createGUI().

bool Launcher::requiresApplications  )  const [inline, virtual]
 

Return TRUE if the custom launcher requires the server to scan for applications.

Implements ServerInterface.

Definition at line 123 of file launcher.h.

References TRUE.

bool Launcher::requiresDocuments  )  const [virtual]
 

Return TRUE if the custom launcher requires the server to scan for documents.

Implements ServerInterface.

Definition at line 554 of file launcher.cpp.

References Config::readBoolEntry(), and Config::setGroup().

void Launcher::select const AppLnk  )  [slot]
 

Definition at line 620 of file launcher.cpp.

References AppLnk::exec(), Global::execute(), executing(), AppLnk::file(), i, LauncherTabWidget::setBusy(), tabs, tr, TRUE, and AppLnk::type().

Referenced by createGUI().

void Launcher::showDocTab  ) 
 

Definition at line 754 of file launcher.cpp.

References LauncherTabWidget::categoryBar, LauncherTabBar::currentView(), LauncherTabWidget::docView(), and tabs.

void Launcher::showLoadingDocs  ) 
 

Definition at line 749 of file launcher.cpp.

References LauncherTabWidget::docView(), and tabs.

void Launcher::showTab const QString  )  [slot]
 

Definition at line 614 of file launcher.cpp.

References LauncherTabWidget::categoryBar, LauncherTabBar::showTab(), and tabs.

Referenced by createGUI().

void Launcher::storageChanged const QList< FileSystem > &   )  [virtual]
 

A filesystem has been added or removed.

Implements ServerInterface.

Definition at line 655 of file launcher.cpp.

void Launcher::systemMessage const QCString ,
const QByteArray
[private, slot]
 

Definition at line 660 of file launcher.cpp.

References app, LauncherTabWidget::currentView(), FALSE, IO_ReadOnly, LauncherTabWidget::setBusy(), TaskBar::startWait(), TaskBar::stopWait(), stream, tabs, and tb.

Referenced by createGUI().

void Launcher::typeAdded const QString type,
const QString name,
const QPixmap &  pixmap,
const QPixmap &  bgPixmap
[virtual]
 

An application category type has been added, for example "Games". name is the translated name of the category. pixmap and bgPixmap are small and large icons for the new type.

Types can be added or removed at any time, for example, when a storage card containing a non-standard category is inserted or removed.

See also:
typeRemoved()

Implements ServerInterface.

Definition at line 676 of file launcher.cpp.

References QValueList< T >::append(), LauncherTabWidget::categoryBar, FALSE, ids, LauncherTabWidget::newView(), LauncherTabBar::showTab(), tabs, TRUE, and LauncherTabWidget::view().

void Launcher::typeRemoved const QString type  )  [virtual]
 

An application category type has been removed.

Types can be added or removed at any time, for example, when a storage card containing a non-standard category is inserted or removed.

See also:
typeAdded()

Implements ServerInterface.

Definition at line 694 of file launcher.cpp.

References LauncherTabWidget::deleteView(), ids, QValueList< T >::remove(), tabs, and LauncherTabWidget::view().

void Launcher::updateApps  )  [private]
 

void Launcher::updateDocs  )  [private]
 

void Launcher::updateTabs  )  [private]
 

void Launcher::viewSelected const QString  )  [slot]
 

Definition at line 609 of file launcher.cpp.

References tr.

Referenced by createGUI().


Member Data Documentation

bool Launcher::docTabEnabled [private]
 

Definition at line 156 of file launcher.h.

Referenced by Launcher().

QStringList Launcher::ids [private]
 

Definition at line 153 of file launcher.h.

Referenced by allApplicationsRemoved(), applicationScanningProgress(), idList(), typeAdded(), and typeRemoved().

LauncherTabWidget* Launcher::tabs [private]
 

Definition at line 152 of file launcher.h.

Referenced by aboutToAddBegin(), aboutToAddEnd(), allApplicationsRemoved(), allDocumentsRemoved(), applicationAdded(), applicationRemoved(), applicationScanningProgress(), createGUI(), destroyGUI(), documentAdded(), documentChanged(), documentRemoved(), documentScanningProgress(), Launcher(), properties(), select(), showDocTab(), showLoadingDocs(), showTab(), systemMessage(), typeAdded(), and typeRemoved().

TaskBar* Launcher::tb [private]
 

Definition at line 154 of file launcher.h.

Referenced by applicationScanningProgress(), applicationStateChanged(), createGUI(), destroyGUI(), eventFilter(), Launcher(), systemMessage(), and ~Launcher().


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