You Are Here:

S60 Platform: Thread and Active Objects Example

Register Today

Register with Forum Nokia now and you'll enjoy the full benefits of the Forum Nokia membership.

Register Login
Community Highlights

Wiki article of the week

Zoom and Rotate Gestures in FlashLite for touch-enabled devices

Champion of the month

Jackson Feijó Jackson Feijó
Read more about Jackson on the Champions website.


Forum Nokia Events

Nokia Developer Days in South Africa
December 01, 2009
Johannesburg, South Africa

Forum Nokia Developer Conference ’09, India
December 07, 2009
Bangalore, India

LeWeb
December 09, 2009
Paris

Web Runtime Coding With Aptana WRT Plug-in
December 09, 2009
9am New York | 2pm London | 4pm Helsinki

Web Runtime Coding With Aptana WRT Plug-in
December 09, 2009
9:30am New Delhi, noon Beijing


View all
description: The example demonstrates how to create an active scheduler and how to use active objects inside a new thread. Inside the main thread (main program) the framework creates the active scheduler automatically, but inside a new thread the active scheduler must be created by the developer. One active object is a Bluetooth device discoverer that searches Bluetooth devices in the vicinity and displays them in the listbox. The example has been tested to be compatible with S60 5th Edition and touch UI. Important classes and headers: RThread, RSocketServer, Btnotifier.h (Bluetooth notifier API).
type: Example
topics: Base/System
S60
     S60 3rd Edition
     S60 5th Edition
Symbian C++
intended audience: Advanced

http://sw.nokia.com/FN-1/Type/Example S60 Platform: Thread and Active Objects Example v1.2

The example demonstrates how to create an active scheduler and how to use active objects inside a new thread. Inside the main thread (main program) the framework creates the active scheduler automatically, but inside a new thread the active scheduler must be created by the programmer. One active object is a Bluetooth device discoverer that searches Bluetooth devices in the vicinity and displays them in the listbox. The example has been tested to be compatible with S60 5th Edition and touch UI. Important classes and headers: RThread, RSocketServer, Btnotifier.h (Bluetooth notifier API).

02-Oct-2008


Download



Additional information

distribution: Forum Nokia Global Web Site
Forum Nokia Global Web Site
S60 Web Site
publication rights: Copyright © 2005-2008 Nokia Corporation.

<< Back to Previous Page

 

Rate This:

Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
RDF Facets: qdcZdescriptionQSxTheE20eE78ampleE20demonstratesE20howE20toE20createE20anE20activeE20schedulerE20andE20howE20toE20useE20activeE0aobjectsE20insideE20aE20newE20threadE2eE20InsideE20theE20mainE20threadE20E28mainE20programE29E20theE20frameworkE0acreatesE20theE20activeE20schedulerE20automaticallyE2cE20butE20insideE20aE20newE20threadE20theE20activeE0aschedulerE20mustE20beE20createdE20byE20theE20developerE2eE20OneE20activeE20objectE20isE20aE20BluetoothE20deviceE0adiscovererE20thatE20searchesE20BluetoothE20devicesE20inE20theE20vicinityE20andE20displaysE20themE20inE0atheE20listboE78E2eE20TheE20eE78ampleE20hasE20beenE20testedE20toE20beE20compatibleE20withE20S60E205thE20E45ditionE20andE20touchE20UIE2eE20ImportantE20classesE20andE20headersE3aE20E52ThreadE2cE20E52SocketServerE2cE20BtnotifierE2ehE20E28BluetoothE20notifierE20APIE29E2eX qdcZidentifierQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2ff43e5cb1E2d8825E2d444cE2dbdfbE2d068609e07076E2fS60E5fPlatformE5fThreadE5fAndE5fActiveE5fObjectsE5fE45E78ampleE5fv1E5f1E2ezipX qdcZidentifierQSxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2f164d14aeE2dff3fE2d4244E2d8189E2d4581b7176faaE2fS60E5fPlatformE5fThreadE5fAndE5fActiveE5fObjectsE5fE45E78ampleX qdcZtitleQSxS60E20PlatformE3aE20ThreadE20andE20ActiveE20ObjectsE20E45E78ampleX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfnZE45E78cludedFromSearchQ qdcZtypeQUqfnZPrimaryE52esourceQ qdcZtypeQUqfntypeZApplicationQ qdcZtypeQUqfntypeZE45E78ampleQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqmarsZMediaObjectQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qrssZdescriptionQSxTheE20eE78ampleE20demonstratesE20howE20toE20createE20anE20activeE20schedulerE20andE20howE20toE20useE20activeE0aobjectsE20insideE20aE20newE20threadE2eE20InsideE20theE20mainE20threadE20E28mainE20programE29E20theE20frameworkE0acreatesE20theE20activeE20schedulerE20automaticallyE2cE20butE20insideE20aE20newE20threadE20theE20activeE0aschedulerE20mustE20beE20createdE20byE20theE20developerE2eE20OneE20activeE20objectE20isE20aE20BluetoothE20deviceE0adiscovererE20thatE20searchesE20BluetoothE20devicesE20inE20theE20vicinityE20andE20displaysE20themE20inE0atheE20listboE78E2eE20TheE20eE78ampleE20hasE20beenE20testedE20toE20beE20compatibleE20withE20S60E205thE20E45ditionE20andE20touchE20UIE2eE20ImportantE20classesE20andE20headersE3aE20E52ThreadE2cE20E52SocketServerE2cE20BtnotifierE2ehE20E28BluetoothE20notifierE20APIE29E2eX qrssZtitleQSxS60E20PlatformE3aE20ThreadE20andE20ActiveE20ObjectsE20E45E78ampleX qeditorZdescriptionE5fcreatedQDx2008E2d09E2d16T13E3a23E3a46E5aX qeditorZdescriptionE5fmodifiedQDx2008E2d10E2d06T11E3a17E3a22E5aX qeditorZtypeQUqfntypeZApplicationQ qeditorZtypeQUqfntypeZE45E78ampleQ qeditorZtypeQUqfntypeZE52esourceQ qfnZallowedE5fcountryE5fgroupQUqfnCountryGroupZBQ qfnZaudienceQUqfnAudienceZadvancedQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZaudienceQUqfnAudienceZtechnicalQRqmarsZrelevanceQNx100X qfnZcompatabilityQSxE28S60E201stE20E45ditionE29X qfnZcompatabilityQSxS60E202ndE20E45ditionX qfnZcompatabilityQSxS60E203rdE20E45ditionX qfnZcompatabilityQSxTestedE20onE20NokiaE206600E2cE20NokiaE206630E2cE20andE20NokiaE20E4560X qfnZcompatibilityQSxE28S60E201stE20E45ditionE29X qfnZcompatibilityQSxS60E202ndE20E45ditionX qfnZcompatibilityQSxS60E203rdE20E45ditionX qfnZcompatibilityQSxTestedE20onE20NokiaE206600E2cE20NokiaE206630E2cE20andE20NokiaE20E4560X qfnZdistributionQUxhttpE3aE2fE2fforumE2enokiaE2ecomE2fX qfnZdistributionQUqfnSiteZglobalQ qfnZdistributionQUxhttpE3aE2fE2fwwwE2es60E2ecomE2fX qfnZeE78portE5fcontrolE5fcommodityE5fnumberQSx99X qfnZpublishedQDx2008E2d10E2d02T18E3a20E3a00E5aX qfnZtopicQUqfnTopicZbaseE5fsystemQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtopicQUqfnTopicZcppQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtopicQUqfnTopicZseriesE5f60QRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtopicQUqfnTopicZseriesE5f60E5f3edQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtopicQUqfnTopicZseriesE5f60E5f5edQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtypeQUqfntypeZApplicationQ qfnZtypeQUqfntypeZE45E78ampleQ qfnZtypeQUqfntypeZE52esourceQ qfnZusE5foriginQLqE78sdZbooleanQxtrueX qfnZuserE5ftagQSxbaseE2fsystemX qfnZuserE5ftagQSxs60X qfnZuserE5ftagQSxs60E2d3rdE2deditionX qfnZuserE5ftagQSxs60E2d5thE2deditionX qfnZuserE5ftagQSxsymbianE2dcE2bE2bX qmarsZdescriptionQSxTheE20eE78ampleE20demonstratesE20howE20toE20createE20anE20activeE20schedulerE20andE20howE20toE20useE20activeE0aobjectsE20insideE20aE20newE20threadE2eE20InsideE20theE20mainE20threadE20E28mainE20programE29E20theE20frameworkE0acreatesE20theE20activeE20schedulerE20automaticallyE2cE20butE20insideE20aE20newE20threadE20theE20activeE0aschedulerE20mustE20beE20createdE20byE20theE20developerE2eE20OneE20activeE20objectE20isE20aE20BluetoothE20deviceE0adiscovererE20thatE20searchesE20BluetoothE20devicesE20inE20theE20vicinityE20andE20displaysE20themE20inE0atheE20listboE78E2eE20TheE20eE78ampleE20hasE20beenE20testedE20toE20beE20compatibleE20withE20S60E205thE20E45ditionE20andE20touchE20UIE2eE20ImportantE20classesE20andE20headersE3aE20E52ThreadE2cE20E52SocketServerE2cE20BtnotifierE2ehE20E28BluetoothE20notifierE20APIE29E2eX qmarsZhasInstanceQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2f65f989bcE2d51a1E2d4232E2d83d8E2d3d78a340ea19E2fS60E5fPlatformE5fThreadE5fAndE5fActiveE5fObjectsE5fE45E78ampleE5fv1E5f2E5fenE2ezipX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qmarsZtitleQSxS60E20PlatformE3aE20ThreadE20andE20ActiveE20ObjectsE20E45E78ampleX qncZrightsQSxCopyrightE20Ea9E202005E2d2008E20NokiaE20CorporationE2eX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfnZE45E78cludedFromSearchQ qrdfZtypeQUqfnZPrimaryE52esourceQ qrdfZtypeQUqfntypeZApplicationQ qrdfZtypeQUqfntypeZE45E78ampleQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqmarsZMediaObjectQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ