Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QuickExeApplicationLauncher Class Reference
[QtBaseModule]

The QuickExeApplicationLauncher class supports launching quicklaunched Qt Extended applications. More...

    #include <QuickExeApplicationLauncher>

Inherits ExeApplicationLauncher.

Public Functions

Additional Inherited Members


Detailed Description

The QuickExeApplicationLauncher class supports launching quicklaunched Qt Extended applications.

The QuickExeApplicationLauncher provides a Qt Extended Server Task. Qt Extended Server Tasks are documented in full in the QtopiaServerApplication class documentation.

Task NameQuickExeApplicationLauncher
InterfacesApplicationTypeLauncher, SystemShutdownHandler
ServicesNone

The QuickExeApplicationLauncher class provides the ApplicationTypeLauncher implementation that works with the quicklauncher executable to accelerate application launching.

When Qt Extended applications start, there are many non-application-specific tasks they must perform during startup. For example, every Qt Extended application dynamically links against the Qt Extended libraries and instantiates a QtopiaApplication instance. These tasks are independent of any specifics regarding the application.

The Quicklauncher process attempts to minimize the inefficiencies of these predictable tasks by performing them before any specific application is launched. The system consists of two main parts - the quicklauncher binary and the application launcher interface provided by this class.

When the QuickExeApplicationLauncher is first instantiated, it spawns a copy of the quicklauncher executable. The quicklauncher executable, like every other Qt Extended application, links against the Qt Extended libraries, instantiates a QtopiaApplication instance and other performs all the other common, non-application-specific tasks. Once these tasks are completed, however, the quicklauncher stub enters an idle loop awaiting instruction from the QuickExeApplicationLauncher.

When the user attempts to launch an application with the quicklauncher running, the QuickExeApplicationLauncher class checks to see whether the application was compiled to support Quicklaunching. An application that supports Quicklaunching is compiled as a shared library, not an executable. This shared library has a well known entry point that can be called to run application specific code. The build system documentation contains more information on compiling an application to support Quicklaunching.

If the application does support Quicklaunching, a message is sent to the idle quicklauncher instance. This instance then loads the application shared library and immediately begins executing application specific code, bypassing the non-application-specific portions that it executed earlier in anticipation of an application launch.

Once a quicklauncher instance has transformed itself into a running application, the QuickExeApplicationLauncher class starts another. When the system shuts down, the QuickExeApplicationLauncher will ensure that the running quicklauncher instance is stopped.

Both the QuickExeApplicationLauncher and the quicklauncher itself search the paths returned by the Qtopia::installPaths() method for the plugins/application/lib<application name>.so application plugin.

Note: quicklauncher itself does not correctly search the install paths for applications. This functionality is planned for a future Qt Extended version.

This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.


Member Function Documentation

QuickExeApplicationLauncher::QuickExeApplicationLauncher ()

Constructs a new QuickExeApplicationLauncher instance.

QuickExeApplicationLauncher::~QuickExeApplicationLauncher ()   [virtual]

Destroys the QuickExeApplicationLauncher instance.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année

Le Qt Labs au hasard

Logo

Le moteur de rendu Raster

Les Qt Labs sont les laboratoires des développeurs de Qt, où ils peuvent partager des impressions sur le framework, son utilisation, ce que pourrait être son futur. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtextended4.4
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web