New Qt API includes IPC

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:

  • Bearer Management  An API to control the system's connectivity state.
  • Contacts An API enabling clients to request contact data from local or remote backends.
  • Document Gallery An API to navigate and query documents using their meta-data.
  • Feedback An API enabling a client to control the vibration of the device (when a vibrator is used) or the piezo feedback from the screen.
  • Location The Location API provides a library for location positioning, landmark management and mapping and navigation.
  • Nokia Ovi Maps online-maps plugin available in the new Maps and Navigation API (part of the Location API)
  • Messaging The Messaging API enables access to messaging services.
  • Mobility QML Plugins A set of QML compatible plugins for the Mobility Project.
  • Multimedia Provides a set of APIs to play and record media, and manage a collection of media content.
  • Organizer An API enabling clients to request calendar, schedule and personal data from local or remote backends.
  • Publish and Subscribe The Publish and Subscribe API, containing Value Space, enables applications to read item values, navigate through and subscribe to change notifications.
  • Qt Service Framework A set of Qt APIs to that allows clients to discover and instantiate arbitrary services.
  • Sensors The Sensors API provides access to sensors. Accelerometers are the most common, but the API supports all sensor types including for example ambient light, magnetic compass, and proximity sensors.
  • System Information A set of APIs to discover system related information and capabilities.
  • Versit An API to import and export to the vCard and iCalendar formats.

 


RSSComments

Great stuff

offsitenoc | 16/11/2010, 10:46

well its very goody sensor,multimedia,organizer and versit.so its very good to use.

You must login to post comments. Login
 
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved