Here's how you can read the current profile data in S60 3rd edition. The public central repository keys are defined in ProfileEngineSDKCRKeys.h. Mika Raento gives you a hint on how to access the hidden profile arguments.

As usual, find the compilable code example attached.
CRepository* cr = CRepository::NewLC( KCRUidProfileEngine );
TInt actProfile;
User::LeaveIfError( cr->Get( KProEngActiveProfile, actProfile ) );
...
TInt ringingType;
User::LeaveIfError( cr->Get( KProEngActiveRingingType,
ringingType ) );
switch( ringingType )
{
case 0:
console->Write( _L( "Ringing\n" ) );
break;
case 1:
console->Write( _L( "Ascending\n" ) );
break;
case 2:
console->Write( _L( "Ring once\n" ) );
break;
case 3:
console->Write( _L( "Beep once\n" ) );
break;
case 4:
console->Write( _L( "Silent\n" ) );
break;
default:
console->Write( _L( "Unknown ringing type\n" ));
}
...
| Attachment | Size |
|---|---|
| ProfileInfoFetcher.zip | 3.45 KB |
Comments
activeprofile for Python S60 !
hello ,
No comments :D
After Speechy (implemented in PyS60 officialy now :) here's activeprofile for PyS60
Thanks to Mika and you :)
Where is it?
I guess you forgot the link. Or maybe forgot to post the example here ;)
lost link :)
Here's the forgot link ;)
http://discussion.forum.nokia.com/forum/showthread.php?t=97085