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  · 

QAbstractIpcInterfaceGroup Class Reference
[QtBaseModule]

The QAbstractIpcInterfaceGroup class provides a convenient wrapper to create the interfaces within a server group. More...

    #include <QAbstractIpcInterfaceGroup>

Inherits QObject.

Inherited by QBluetoothHandsfreeCommInterface, QBluetoothHeadsetCommInterface, and QTelephonyService.

Public Functions

  • 29 public functions inherited from QObject

Protected Functions

  • 7 protected functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 1 public type inherited from QObject
  • 4 static public members inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QAbstractIpcInterfaceGroup class provides a convenient wrapper to create the interfaces within a server group.

This class is used to collect together several related QAbstractIpcInterface instances into a single logical group. It provides a standard pattern for creating all interfaces in the group via the initialize() method, and provides discovery mechanisms to allow one interface in a group to quickly locate another via the interface() method.

The most extensive use of this class is for Qt Extended telephony services, which create a large number of related interfaces for network registration, phone call management, call forwarding settings, SIM file contents, and so on. See QTelephonyService for more information.

It isn't necessary that QAbstractIpcInterface instances be part of a group; they can be standalone.

The QAbstractIpcInterfaceGroupManager class can be used to receive run time notification of when groups are added and removed from the system.

See also QAbstractIpcInterface, QAbstractIpcInterfaceGroupManager, and QTelephonyService.


Member Function Documentation

QAbstractIpcInterfaceGroup::QAbstractIpcInterfaceGroup ( const QString & groupName, QObject * parent = 0 )

Create a new server interface group called groupName and attach it to parent.

A call to the constructor should be followed by a call to initialize() to complete the initialization process.

See also initialize().

QAbstractIpcInterfaceGroup::~QAbstractIpcInterfaceGroup ()

Destroy this server interface group.

void QAbstractIpcInterfaceGroup::addInterface ( QAbstractIpcInterface * interface )   [virtual protected]

Adds interface to the list of interfaces that is supported by this server interface group.

QString QAbstractIpcInterfaceGroup::groupName () const

Returns the name of this server interface group.

void QAbstractIpcInterfaceGroup::initialize ()   [virtual]

Initializes this server interface group by creating all of the interfaces that it supports. In subclasses, interfaces should be created using the following pattern:

    if ( !supports<T>() )
        addInterface( new MyT(this) );

where T is the name of the interface being created and MyT is the name of the class that implements the interface.

At the end of a subclass initialize(), it must call its immediate superclass. The superclass follows the same pattern to create missing interfaces that were not explicitly overridden.

The base implementation calls QAbstractIpcInterface::groupInitialized() on all of the interfaces that were created by subclasses.

See also supports(), addInterface(), and QAbstractIpcInterface::groupInitialized().

T * QAbstractIpcInterfaceGroup::interface () const

Get the object that implements the interface T on this server interface group, or null if there is no such interface.

bool QAbstractIpcInterfaceGroup::supports () const

Returns true if this server interface group supports an interface with the name T; otherwise returns false.

void QAbstractIpcInterfaceGroup::suppressInterface ()   [protected]

Suppresses the interface T from being created during initialize(). This causes the supports() function to return true for T even if no interface object for T has been added yet.

The main use of this method is to stop a parent class from creating a default implementation of T when the subclass does not create their own override, but the default implementation would cause problems if used.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  2. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 38
  3. Une nouvelle ère d'IHM 3D pour les automobiles, un concept proposé par Digia et implémenté avec Qt 3
  4. PySide devient un add-on Qt et rejoint le Qt Project et le modèle d'open gouvernance 1
  5. Qt Creator 2.5 est sorti en beta, l'EDI supporte maintenant plus de fonctionnalités de C++11 2
  6. Vingt sociétés montrent leurs décodeurs basés sur Qt au IPTV World Forum, en en exploitant diverses facettes (déclaratif, Web, widgets) 0
  7. Thread travailleur avec Qt en utilisant les signaux et les slots, un article de Christophe Dumez traduit par Thibaut Cuvelier 1
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 49
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le Qt Labs au hasard

Logo

QLocale : à propos du temps (et des dates, et des langues, et des...)

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