kevinSharp | 15 November, 2010 21:22
Communication among objects in a Qt application is provided by signals and slots. The signal and slots mechanism has been a core power of the Qt framework, radically simplifying the task of structured communication among C++ objects. Signals and slots are connected with the function:
QObject::connect (object 1, signal 1, object 2, slot 2)
Signals and slots require a developer to know about all objects that need to communicate, and the objects to which they need to communicate. No such omiscience is possible for interprocess communication. Communication between Qt applications requires a different mechanism.
Cross-platform communication between Qt applications will be handled by the Qt Service Framework, part of the Qt Mobility 1.1 API released last week.
The Qt Service Framework defines a unified way of finding, implementing and accessing services across multiple platforms. Due to the service framework's knowledge of service interfaces, their versions and QObject-based introspection it may even be used to unify and access multiple platform specific service implementations via the same Qt-based client application.
The online documentation provides details and sample code for an echo client. Multiple clients can be run to communicate with one another using a shared instance of the echo service, or privately with a unique instance. The second echo client is for running a second identical instance on Symbian which usually does not allow starting the same program multiple times.
The APIs in the Mobility API 1.1 release include:
Comments
Great stuff
offsitenoc | 16/11/2010, 10:46
well its very goody sensor,multimedia,organizer and versit.so its very good to use.