IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Qt D-Bus C++ Classes

The Qt D-Bus module is a Unix-only library that you can use to perform Inter-Process Communication using the D-Bus protocol.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Qt D-Bus C++ Classes

The Qt D-Bus module is a Unix-only library that you can use to perform Inter-Process Communication using the D-Bus protocol.

Classes

  • QDBusPendingReply: The QDBusPendingReply class contains the reply to an asynchronous method call.

  • QDBusReply: The QDBusReply class stores the reply for a method call to a remote object.

  • QDBusVariant: The QDBusVariant class enables the programmer to identify the variant type provided by the D-Bus typesystem.

Detailed Description

Applications using the Qt D-Bus module can provide services to other, remote applications by exporting objects, as well as use services exported by those applications by placing calls and accessing properties.

The Qt D-Bus module provides an interface that extends the Qt Signals and Slots mechanism, allowing one to connect to a signal emitted remotely as well as to connect a local signal to remote slot.

To use this module, use the following code in your application:

 
Sélectionnez
#include <QtDBus>

If you're using qmake to build your application, you can add this line to your .pro file to make it link against the Qt D-Bus libraries:

 
Sélectionnez
QT += dbus

The source code for this module is located in the src/qdbus directory. When installing Qt from source, this module is built when Qt's tools are built. See the D-Bus page for detailed information on how to use this module.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+