diff -r 1f307dce3b5a -r 98bf2adac59c src/screensavershareddatai.cpp --- a/src/screensavershareddatai.cpp Wed Jun 09 09:42:47 2010 +0300 +++ b/src/screensavershareddatai.cpp Mon Jun 21 15:41:25 2010 +0300 @@ -30,6 +30,7 @@ #include // KAknNewContactsNoteActive #include // KAknKeyguardStatus #include // Message (voice) waiting status +#include // KCTsyCallState #include // KPSGlobalSystemState #include #include // Profile engine API @@ -578,6 +579,20 @@ return EFalse; } +// --------------------------------------------------------------------------- +// CScreensaverSharedDataI::IsOngoingCall() +// --------------------------------------------------------------------------- +// +TBool CScreensaverSharedDataI::IsOngoingCall() + { + TInt state = EPSCTsyCallStateUninitialized; + // Check the call state from PubSub + RProperty::Get( KPSUidCtsyCallInformation, KCTsyCallState, state ); + + return ( state != EPSCTsyCallStateNone && + state != EPSCTsyCallStateUninitialized ); + } + // ----------------------------------------------------------------------------- // CScreensaverSharedDataI::HandleSessionEventL // -----------------------------------------------------------------------------