Porting Qtopia Core to Another Operating SystemQtopia Core is reasonably platform-independent, making use of the standard C library and some POSIX functions, but only a Linux implementation is publically available. If you are looking for a non-Linux commercial implementation, it is worth contacting sales@trolltech.com to see if we can help. There are several issues to be aware of if you plan to do your own port to another operating system. In particular you must resolve Qtopia Core's shared memory and semaphores (used to share window regions), and you must provide something similar to Unix-domain sockets for inter-application communication. You must also provide a screen driver, and if you want to implement sound you must provide your own sound server. Finally you must modify Qtopia Core's event dispatcher. Contents:
Shared Memory and SemaphoresQtopia Core uses System V IPC (shared memory and semaphores) to share window regions between client and server. When porting, something similar must be provided; otherwise it will not be possible to run multiple applications. System V semaphores are also used for synchronizing access to the framebuffer.
Inter-Application CommunicationTo communicate between applications, Qtopia Core uses the Unix-domain sockets. When porting, something similar must be provided; otherwise it will not be possible to run multiple applications. It should be possible to use message queues or similar mechanisms to achieve this. With the exception of QCOP messages, individual messages should be no more than a few bytes in length (QCOP messages are generated by the client applications and not Qtopia Core).
Screen ManagementWhen rendering, Qtopia Core's default behavior is for each client to render its widgets into memory while the server is responsible for putting the contents of the memory onto the screen using the screen driver. When porting, a new screen driver must be implemented, providing a byte pointer to a memory-mapped framebuffer and information about width, height and bit depth (the latter information can most likely be hard-coded).
Sound ManagementTo implement sound, Qtopia Core uses a Linux style device (/dev/dsp). If you want to use the Qtopia Core sound server on another platform you must reimplement it.
Event DispatchingQtopia Core uses an event dispatcher to pass events to and from the Qtopia Core server application. Reimplement the select() function to enable Qtopia Core to dispatch events on your platform.
|
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
Le Qt Quarterly au hasardXQuery et la météoQt Quarterly est la revue trimestrielle proposée par Nokia et à destination des développeurs Qt. Ces articles d'une grande qualité technique sont rédigés par des experts Qt. Lire l'article.
CommunautéRessources
Liens utilesContact
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 4.3 | |
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 ! |
Copyright © 2000-2012 - www.developpez.com