S60 Open C
Examples for Open C Libraries

Examples for Open C Libraries

Table of Contents

Glib Event
MMP File for Glib Event
Source Code for Glib Event

 


Glib Event

This example demonstrates a simple method of receiving events from Glib event sources in an application that uses the Symbian UI framework. This example extends the standard "Hello World" UI example by adding a Glib "timeout" source. It demonstrates that Glib events and Symbian events can be handled in the same application thread.

 


MMP File for Glib Event

TARGET			OpenCHelloGlibEventEx.exe
TARGETTYPE		exe
UID					0x100039CE 0xA0001F1B
VENDORID			0

CAPABILITY		None
SOURCEPATH		..\src
SOURCE			OpenCHelloGlibEventEx.cpp
SOURCE			OpenCHelloGlibEventExApp.cpp
SOURCE			OpenCHelloGlibEventExView.cpp
SOURCE			OpenCHelloGlibEventExUi.cpp
SOURCE			OpenCHelloGlibEventExDoc.cpp
SOURCE			OpenCHelloGlibEventExHandler.cpp
SOURCEPATH		..\data
START RESOURCE		OpenCHelloGlibEventEx.rss
HEADER
TARGETPATH 		resource\apps
END //RESOURCE
START RESOURCE		OpenCHelloGlibEventEx_reg.rss
#ifdef WINSCW
TARGETPATH		\private\10003a3f\apps
#else
TARGETPATH		\private\10003a3f\import\apps
#endif
END //RESOURCE
USERINCLUDE		..\inc
SYSTEMINCLUDE		\epoc32\include\stdapis\glib-2.0
SYSTEMINCLUDE		\epoc32\include\stdapis
SYSTEMINCLUDE		\epoc32\include
LIBRARY			euser.lib
LIBRARY			apparc.lib
LIBRARY			cone.lib
LIBRARY			eikcore.lib
LIBRARY			avkon.lib
LIBRARY			commonengine.lib
LIBRARY			efsrv.lib 
LIBRARY			estor.lib
LIBRARY			gdi.lib 
LIBRARY			libc.lib	// Standard libraries
LIBRARY			libglib.lib	// Glib
LANG SC

 


Source Code for Glib Event

Go to this location \nokia_plugin\openc\s60opencex\openchelloglibeventex to view the source code for this example.

NOTE: This code has been tested on Carbide.

Give feedback of this article


Back to top


Copyright ©2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.