Mobile Knowledge

Posts Tagged ‘profile

How to get ringing volume of active profile in symbian 2nd edition

Posted by: Symbian Freak on: February 1, 2009

Header file – SettingInfo.h Library – PlatformEnv.lib CSettingInfo* ptrSettingInfo = CSettingInfo::NewL(NULL); CleanupStack:: PushL(ptrSettingInfo); TInt volume; User::LeaveIfError(ptrSettingInfo->Get(SettingInfo::ERingingVolume, volume)); CleanupStack:: PopAndDestroy(ptrSettingInfo);

How to get ringing volume of active profile in symbian 3rd edition

Posted by: Symbian Freak on: February 1, 2009

Header file – centralrepository.h Library – centralrepository.lib CRepository* ptrRepository = CRepository::NewLC( KCRUidProfileEngine ); TInt volume; // Get the ringing volume of the active profile: User::LeaveIfError( ptrRepository->Get( KProEngActiveRingingVolume, volume ) ); CleanupStack:: PopAndDestroy( ptrRepository );


Follow

Get every new post delivered to your Inbox.