This document lists the example code available for each module and collection in the platform.
The following tables are grouped by module and collection. In each table, the left hand column gives a link to the overview for the example. The overviews describe the example's purpose, the APIs it demonstrates, how to build and run it, and they provide a link to download the example's source code.
In most cases, the name in the left hand column is the example's mmp filename. If the example has more than one mmp file, the name of its directory is used. The right hand column gives a summary of the main purpose of the example.
Name | Description |
---|---|
Shows a minimal UI application without resource files. |
|
Builds on the Minimal UI application by adding a menu bar defined in a resource file and a menu pane. |
|
Shows embedding a DLL into a stub executable. |
|
Shows a minimal server application. |
|
Shows how to create a simple GUI application with a single view. |
Telephony Utilities
Serial Server
Name | Description |
---|---|
A terminal application with configurable handshaking that illustrates the use of the Serial Communications API |
|
Shows the Serial Communications API |
Data Server
Common App Services
Time Zone Services
Compression Libraries
Generic Open Libraries
Name | Description |
---|---|
Shows accessing the file system using P.I.P.S. |
|
Creates a simple P.I.P.S. DLL and EXE to demonstrate function lookup by name rather than by ordinal. |
|
Shows a P.I.P.S. 'hybrid' application that uses both C and native Symbian C++ APIs. |
|
Shows inter-process communication in P.I.P.S. |
|
Shows simple multi-threading and synchronisation in P.I.P.S. using libpthread.dll. |
|
Shows the P.I.P.S. Standard C maths library, libm.dll. |
|
Shows a simple console-based STDLIB (C Standard library) program that converts quantities from one unit of measurement into another. |
|
Shows a Techview GUI application whose engine is written using STDLIB. |
|
The simplest possible STDLIB example. |
|
Shows various signal use cases as supported in P.I.P.S. |
Open C
Name | Description |
---|---|
Shows file compression/decompression. Huffman , filtered data compression, run length encoding, compress a string given by user |
|
How to handle global variables within the library code. How to solve WSD (Writable Static Data) problem |
|
Send/receive messages using message queue, demonstrated using open C message queue library |
|
Demonstrates solution for Producer/ Consumer Problem using Open C. |
|
Demonstrates string utility using open C libraries |
|
how to redirect stdio to a file. libc library provides freopen API to redirect all standard IOs (namely, stderr, stdin, or stdout). |
Generic Services
Low level Libraries and Frameworks
Name | Description |
---|---|
Shows how to store and restore objects using the clipboard API. |
|
One of a set of three related ECom examples that provide an interface definition, a DLL that contains two implementations of that interface, and a client program that uses the interface. |
|
See InterfaceClient, above. |
|
See InterfaceClient, above. |
|
Most basic resource file example, shows how to read a string resource and print it to the console. |
|
Shows how to load data from a resource file into an array. |
|
Shows how to open a single resource file and read a resource from it into a descriptor. |
|
Shows how to open and read from multiple resource files. |
|
Shows how to use a resource reader to read data of various types from a resource file into the data members of a class. |
|
Shows how the signature of a resource file is checked before use. |
XML
Name | Description |
---|---|
Shows how to use the Xml framework to parse XML and WBXML files. |
Font and Bitmap Server
Name | Description |
---|---|
Shows how to draw and manipulate bitmaps. |
|
Illustrates how the graphics architecture called ScreenPlay creates OpenVG content on a semi-transparent or transparent UI. |
Graphics Device Interface
Name | Description |
---|---|
Shows drawing, storing and restoring a picture (a CPicture -derived object). |
|
Shows how to draw text using a variety of different fonts. |
|
A console application that reads and displays information about a printer driver and carries out a print job. |
Windowing Framework
For background information on these examples, see About the Window Server example code.
Name | Description |
---|---|
Shows two simple CWindow -derived classes, one of which is the parent of the other. |
|
Shows how to create and use an animated sprite (RWsSprite) by reading bitmaps from files. |
|
Shows the window server's direct screen access (CDirectScreenAccess) interface. |
|
Shows the ordinal positioning of windows. |
|
Shows simple freehand drawing using RWindowBase's pointer move buffer. |
|
Shows scrolling using pointer repeat events. |
|
Shows how to create and use an animated sprite (RWsSprite) by drawing to an off-screen bitmap. |
|
Shows how to create transparent windows and to change a window's transparency. |
General
Application Layer Protocols
Name | Description |
---|---|
A console application that provides a menu-driven interface to demonstrate the HTTP API. |
IMS and Streaming
File Server
Name | Description |
---|---|
Shows how to create files and retrieve their entry details and attributes. |
|
Most basic file server example: shows how to connect to and disconnect from the file server. |
|
Shows session and system paths. |
|
Shows how to get a drive list and information about the available drives. |
|
Shows how to parse, interrogate and extract components from filenames. |
|
Shows how to carry out a file management operation and to get notification of its progress using an observer. |
User Library
Name | Description |
---|---|
Shows the use of asynchronous and synchronous client/server APIs using a logical device driver (LDD) and a physical device driver (PDD). |
|
Shows the basic principles of asynchronous programming by issuing and waiting for completion of a single request. |
|
Shows how a wait loop can be used to identify and handle a completed request. |
|
Shows how the wait loop can deal with multiple asynchronous service providers. |
|
Shows how active objects and an active scheduler can be used to handle asynchronous events, using a timer. |
|
Shows how active objects and an active scheduler can be used to handle asynchronous events, using keyboard input. |
|
Shows how active objects and an active scheduler can be used to handle accept and print keyboard inputs to a console. |
|
Shows how active objects and an active scheduler can be used to handle asynchronous events and long-running services to maintain system responsiveness. |
|
Shows how to construct and use circular buffers holding different types of objects. |
|
Shows a simple client that has a single session with a server. |
|
More complex client/server example, where the server supports multiple subsessions within a session. |
|
Shows how to implement and use Transient servers. |
|
Shows the use of the global condition variable IPC mechanism. |
|
Shows the use of the local condition variable IPC mechanism. |
|
Shows date and time handling. |
|
Shows how descriptors can handle general binary data by explicitly using the 8 bit descriptor class variants. |
|
Shows the basic idea of buffer descriptors and how they are used. |
|
Shows how to use descriptors as function arguments. |
|
Shows how to create and use the heap buffer descriptor HBufC. |
|
Shows how to use the modifiable descriptor class TDes. |
|
Shows how to use the non-modifiable descriptor class TDesC. |
|
Shows how to use pointer descriptors. |
|
Basic example that shows how to write text to a file. |
|
Shows how to construct and use dynamic arrays. |
|
Shows how to use the flat and segmented buffer classes. |
|
Implements two polymorphic DLLs and shows how to load and use them. |
|
Shows how to use the range checking wrapper class for C++ arrays (TFixedArray). |
|
Shows how to use the hash table APIs. |
|
Shows how to use the lexical analyser, TLex. |
|
Shows how to use singly and doubly linked lists and the delta queue class. |
|
Shows locale-specific representation of currency values and symbols. |
|
Shows how to load a locale DLL and read settings from it. |
|
Shows use of the TRAPD macro, the cleanup stack and the process of leaving. Returns an error code on failure. |
|
As the ErrorOnFail example except it leaves on failure. |
|
As the LeaveOnFail example except it calls new (ELeave) rather than new. |
|
Shows the use of the TRAPD macro. |
|
Shows the use of the cleanup stack and its functions PushL() and Pop(). |
|
Shows the use of the cleanup stack and its functions PushL() and PopAndDestroy(). |
|
Shows use of the NewL() static function. |
|
Shows use of the NewLC() static function. |
|
Shows cleanup handling for compound classes. |
|
Shows cleanup handling for compound classes, and avoiding memory leaks. |
|
Shows the two phase construction technique. |
|
Shows how cleanup can be implemented for TAny* type objects and 'R' type (resource type) objects. |
|
As TAnyRObjects1 except it calls OpenLC() to open the file and push it onto the cleanup stack in one function call. |
|
Shows how to use the cleanup functions CleanupDeletePushL(), CleanupClosePushL() and CleanupReleasePushL(), and CleanupArrayDeletePushL(). |
|
Shows the use of the message queue in interprocess communication. |
|
Shows the Publish and Subscribe IPC mechanism. |
|
Shows how to use the resizable buffer descriptor class RBuf. |
|
Shows how to use the policy server framework. |
|
Shows how to use the single character class, TChar, and its derived classes. |
|
Shows the use of thread local storage (TLS) in a DLL, that is set and accessed from a separate executable. |
|
Shows the principle of synchronisation using the thread rendezvous technique. |
|
Shows the asynchronous timer class RTimer |
|
Shows the differences between a periodic and a heartbeat timer. |
|
Shows how to use the Power Resource Manager framework. |
|
Shows the differences between code running in a unicore environment and in a multiprocessor environment. |
|
Shows how to use semaphores for a multithreading application. |
Name | Description |
---|---|
Shows how to send and receive SMS messages using the Messaging Framework APIs. |
|
Shows how to create SMTP (Simple Mail Transfer Protocol) and POP (Post Office Protocol) accounts to send and receive emails. Shows how to create SMTP and IMAP (Internet Message Access Protocol) accounts to send and receive emails. |
Multimedia APIs and Frameworks
Name | Description |
---|---|
Shows how to implement encoder and decoder plug-ins for the Image Converter Library. |
|
Shows how to convert between standard graphics formats to and from CFbsBitmap s, and how to rotate, flip, and zoom images. |
|
Shows how to use the Camera API to capture and control images. |
Multimedia Middleware Frameworks
Name | Description |
---|---|
Shows how to use the Multimedia Framework's client audio interfaces to play and record audio. |
|
Shows how to implement a codec plug-in for the Multimedia Framework to convert media data. |
|
Shows how to implement format encoder and decoder plug-ins for the Multimedia Framework. |
|
Shows how to implement sink and source plug-ins for the Multimedia Framework. |
Network Protocols
Name | Description |
---|---|
The engine for the TCP/IP echo client example. |
|
The user interface for the TCP/IP echo client example. |
Network Security
Secure Software Install Tools
Persistent Storage
Name | Description |
---|---|
Shows how to create and use a database using DBMS. |
|
Shows how to use the SQL API to create and query an SQL database. |
|
Shows how to use the central repository to store settings and request notification of changes. |
|
Shows how to persist objects using a direct file store and a root stream. |
|
Shows how to write a network of objects to a permanent file store then read them back in again. |
|
Shows how to create and use a permanent file store. |
|
Shows how to externalize objects to a single stream in a non-persistent store. |
|
Shows how to write a network of objects to more than one stream in a direct file store, and to defer the loading of an object from the store into memory. |
|
Shows how an object is externalized to a store embedded within a permanent file store. |
|
Shows how to stream a compound object to multiple streams using a store map. |
|
Shows streaming a simple class to and from a single stream. |
|
Shows streaming a compound class to and from a single stream |
|
Shows the use of Feature Manager APIs for dynamic management of features. |
PIM Application Services
Name | Description |
---|---|
Shows how to create and use a calendar file. |
|
Shows how to use various contact view classes to create a view of a contact database. |
PIM Application Support
Font & Text Services
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.