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  · 

Application Control Subsystem

IPC and application control are tightly linked in Qt Extended. Indeed, Qt Extended itself does not intrinsically understand the notion of "starting" an application. Qt Extended considers an application simply as a named IPC endpoint in the system that implements one or more IPC services for use by other applications or the system itself.

The primary role of the application control subsystem is to manage a component's ability to receive and respond to service requests. Thus the application control subsystem considers an application "running" when it is able to receive service messages even though the application may not be thought as such by an end user. Management of end user features of an application (such as when the UI is raised or hidden) is done by other system components.

At the center of the system is the ApplicationIpcRouter. The router's responsibility is to detect and direct IPC requests. On reception of an IPC request, the router requests that the ApplicationLauncher bring the application into a state where it is able to receive IPC requests. This generally involves executing an application, but, in special cases, may involve other actions. For example, "builtin applications" aren't seperate executables, but rather special modules within the Qt Extended Server.

During bring up the ApplicationLauncher (or, more specifically, the ApplicationTypeLauncher instances that will be discussed shortly) may install a "custom route" into the ApplicationIpcRouter for the particular application. If installed, the router should deliver all messages for this application to this route. This model allows "non-Qtopia" application types, such as Java games, to transform Qt Extended service and message requests into a form they understand. For example, sending a raise() message to a Java application may transformed into executing a special command line utility to start and raise the Java game.

The ApplicationLauncher itself does not know how to start any type of application. Instead, it acts as a coordinator for other system components that do. When asked to launch an application, the ApplicationLauncher collects together all tasks in the server that provide the ApplicationTypeLauncher interface. It then asks each in turn to launch the application until one accepts the request or all have been exhausted. It is the ApplicationTypeLauncher instances that actually launch the application and allow new application types to be easily added to the system.

The following class diagram shows the class dependencies of a few selected application control classes and demonstrates how other server tasks can interact with the application launcher. In the example (taken from the Qt Extended server) the StartupApplications task uses QtopiaServerApplication::addAggregateObject() to receive notifications about the startup process of particular applications (via the ApplicationTerminationHandler interface).

"Interacting with Application control tasks"

The following classes are part of the Qt Extended application control subsystem.

ApplicationIpcRouterInterface through which ApplicationTypeLauncher instances to control IPC message routing
ApplicationLauncherResponsible for fundamental application management and IPC routing within Qtopia
ApplicationShutdownTaskWay of terminating all running Qt Extended applications before the Qt Extended server itself terminates
ApplicationTerminationHandlerAllows tasks to be notified, and possibly filter, when an application terminates
ApplicationTypeLauncherInterface to control a particular application type in the system
BuiltinApplicationLauncherSupports launching simple applications that run inside the Qt Extended Server process
ConsoleApplicationLauncherSupports launching console applications
ExeApplicationLauncherSimplifies implementing ApplicationTypeLauncher for process based applications
QCopRouterApplication ipc router for the QCop transport
QtopiaServerApplicationLauncherActs as a proxy for the Qt Extended Server within the application launcher framework
QuickExeApplicationLauncherSupports launching quicklaunched Qt Extended applications
ApplicationIpcRouter::RouteDestinationRepresents an IPC route destination
SandboxedExeApplicationLauncherSupports launching untrusted downloaded application executables
SimpleExeApplicationLauncherSupports launching regular QtopiaApplication executables
StartupApplicationsLaunches applications preemptively at startup
SystemShutdownHandlerNotifies tasks when the system is shutting down or restarting
TaskManagerEntryUsed to insert non-application items into the Running Applications/TaskManager window
UIApplicationMonitorMonitors the running state of UI applications

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