Chapter 7. Qt for Symbian Examples
Bertalan Forstner, András Berke, Imre Kelényi, Morten V. Pedersen and Hassan Charaf
This chapter presents some examples of Qt program code for the Qt Mobility API and Qt Mobile Extensions, including a brief summary of their functionalities. The purpose of these examples is to demonstrate the features of Qt and to introduce Qt programming techniques. Developers will be able to take a closer look at the available code libraries of Qt and mobile extensions of Qt for Symbian, and obtain design ideas concerning mobile software development using the Qt for Symbian SDK. All examples can be directly downloaded from the book's web page.
Mobility API Examples
In the following we will present some examples for the use of Qt Mobility APIs. As stated above, the reader should check with our book's homepage for recent updates and extensions.
Displaying Messaging Accounts
The Messaging API allows the listing and manipulation of messaging accounts. If we want to send a message via a specific account, we must first acquire the account's ID. The following example widget displays a combo box with a list of the messaging accounts available on the device and emits a signal if the selected account is changed. One of the best things about messaging is that all the different types of messages can be handled via the same API, so selecting an account which is assigned to SMS and sending a text message is practically performed in the same way as selecting an email account and ...
Get Qt for Symbian now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.