This tutorial describes how to use the telephony watchers in Symbian platform.
The telephony watchers provide the signal strength and the call indicator information to all the registered clients applications. The client application must register with the Publish and Subscribe framework to receive the information. The telephony watchers enable the clients to retrieve information about network signal strength and call status.
The example code below describes how to retrieve the network signal status with the telephony watcher.
//assume that the watcher is stopped StartWatcher(); TInt state; TRequestStatus status; RProperty property; //initial network status TInt ret = RProperty.Get(KUidSystemCategory, KUidChargerStatus.iUid, state); // display the value ... //attach to the network status property ret = property.Attach(KUidSystemCategory,KUidNetworkStatus.iUid); //subscripe to the property property.Subscribe(status); User::WaitForRequest(status); property.Subscribe(status); propertty.Get(state); //display the value ...
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.