src/screensavershareddatai.cpp
branchRCL_3
changeset 18 98bf2adac59c
parent 16 1f307dce3b5a
child 21 724d4ec22f0d
equal deleted inserted replaced
16:1f307dce3b5a 18:98bf2adac59c
    28 #include <LogsDomainCRKeys.h>                // KLogsNewMissedCalls
    28 #include <LogsDomainCRKeys.h>                // KLogsNewMissedCalls
    29 #include <ScreensaverInternalCRKeys.h>
    29 #include <ScreensaverInternalCRKeys.h>
    30 #include <AvkonInternalCRKeys.h>             // KAknNewContactsNoteActive
    30 #include <AvkonInternalCRKeys.h>             // KAknNewContactsNoteActive
    31 #include <avkondomainpskeys.h>               // KAknKeyguardStatus
    31 #include <avkondomainpskeys.h>               // KAknKeyguardStatus
    32 #include <ctsydomaincrkeys.h>                // Message (voice) waiting status
    32 #include <ctsydomaincrkeys.h>                // Message (voice) waiting status
       
    33 #include <ctsydomainpskeys.h>                // KCTsyCallState
    33 #include <startupdomainpskeys.h>             // KPSGlobalSystemState
    34 #include <startupdomainpskeys.h>             // KPSGlobalSystemState
    34 #include <AknSkinsInternalCRKeys.h>
    35 #include <AknSkinsInternalCRKeys.h>
    35 #include <MProfileEngine.h> // Profile engine API
    36 #include <MProfileEngine.h> // Profile engine API
    36 #include <MProfile.h>
    37 #include <MProfile.h>
    37 #include <NcnListDomainCRKeys.h>
    38 #include <NcnListDomainCRKeys.h>
   574         // Extract profile vibra setting
   575         // Extract profile vibra setting
   575          return iActiveProfile->ProfileTones().ToneSettings().iVibratingAlert;
   576          return iActiveProfile->ProfileTones().ToneSettings().iVibratingAlert;
   576         }
   577         }
   577 
   578 
   578     return EFalse;
   579     return EFalse;
       
   580     }
       
   581 
       
   582 // ---------------------------------------------------------------------------
       
   583 // CScreensaverSharedDataI::IsOngoingCall()
       
   584 // ---------------------------------------------------------------------------
       
   585 //
       
   586 TBool CScreensaverSharedDataI::IsOngoingCall()
       
   587     {
       
   588     TInt state = EPSCTsyCallStateUninitialized;
       
   589     // Check the call state from PubSub
       
   590     RProperty::Get( KPSUidCtsyCallInformation, KCTsyCallState, state );
       
   591     
       
   592     return ( state != EPSCTsyCallStateNone && 
       
   593              state != EPSCTsyCallStateUninitialized );
   579     }
   594     }
   580 
   595 
   581 // -----------------------------------------------------------------------------
   596 // -----------------------------------------------------------------------------
   582 // CScreensaverSharedDataI::HandleSessionEventL
   597 // CScreensaverSharedDataI::HandleSessionEventL
   583 // -----------------------------------------------------------------------------
   598 // -----------------------------------------------------------------------------