diff -r 7d48bed6ce0c -r 987c9837762f cbs/CbsServer/ServerSrc/CCbsReceiverHelper.cpp --- a/cbs/CbsServer/ServerSrc/CCbsReceiverHelper.cpp Tue Aug 31 15:45:17 2010 +0300 +++ b/cbs/CbsServer/ServerSrc/CCbsReceiverHelper.cpp Wed Sep 01 12:15:03 2010 +0100 @@ -40,20 +40,16 @@ #include "CCbsDbImpTopicMessages.h" #include "CCbsDbImpTopicCollection.h" #include "CCbsRecMessage.h" -// <-- QT PHONE START --> -//#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS -//#include // View server access -//#else -//#include -//#endif -//#include // ECellBroadcastNotification -//#include // Soft Notification API -// <-- QT PHONE END --> +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS +#include // View server access +#else +#include +#endif +#include // ECellBroadcastNotification +#include // Soft Notification API #include #include -// <-- QT PHONE START --> -//#include -// <-- QT PHONE END --> +#include #include #include "CbsLogger.h" @@ -64,20 +60,15 @@ // CONSTANTS -// <-- QT PHONE START --> // UID of CBS UI application -//#define KUidCbsUiappDef 0x101F4CD3 -//const TUid KUidCbsUiappApp = { KUidCbsUiappDef }; -// <-- QT PHONE END --> +#define KUidCbsUiappDef 0x101F4CD3 +const TUid KUidCbsUiappApp = { KUidCbsUiappDef }; -// <-- QT PHONE START --> -//const TInt KCbsImmediateMessageIdInt = 313; -//const TUid KCbsImmediateMessageId = { KCbsImmediateMessageIdInt }; -// <-- QT PHONE END --> +const TInt KCbsImmediateMessageIdInt = 313; +const TUid KCbsImmediateMessageId = { KCbsImmediateMessageIdInt }; -// <-- QT PHONE START --> -//const TInt KCbsMessageTone = 2; // See SharedDataKeysVariant.h or NcnListInternalPSKeys.h -// <-- QT PHONE END --> +const TInt KCbsMessageTone = 2; // See SharedDataKeysVariant.h or NcnListInternalPSKeys.h + // DATA TYPES // CbsUi application view ID's enum TCbsUiViewIds @@ -332,11 +323,7 @@ { CBSLOGSTRING("CBSSERVER: >>> CCbsReceiverHelper::ConstructL()"); - // <-- QT PHONE START --> - /* iVwsSession = CVwsSessionWrapper::NewL(); - */ - // <-- QT PHONE END--> // Array for SIM Topic numbers. This way we know which topics // to delete also from the SIM card (when deleting all topics). @@ -377,11 +364,7 @@ CBSLOGSTRING("CBSSERVER: >>> CCbsReceiverHelper::~CCbsReceiverHelper()"); delete iSimTopics; - // <-- QT PHONE START --> - /* delete iVwsSession; - */ - // <-- QT PHONE END--> CBSLOGSTRING("CBSSERVER: <<< CCbsReceiverHelper::~CCbsReceiverHelper()"); } @@ -850,10 +833,8 @@ // (other items were commented in a header). // ----------------------------------------------------------------------------- // -void CCbsReceiverHelper::LaunchMessageSoftNotificationL( const TBool /*aPlayTone*/ ) +void CCbsReceiverHelper::LaunchMessageSoftNotificationL( const TBool aPlayTone ) { - // <-- QT PHONE START --> - /* TInt numberOfHotMsgs( 0 ); numberOfHotMsgs = iDatabase.TopicListL().UnreadHotmarkedMessageCount(); @@ -868,8 +849,6 @@ notifier->SetNotificationCountL( ECellBroadcastNotification, numberOfHotMsgs ); CleanupStack::PopAndDestroy( notifier ); - */ - // <-- QT PHONE END--> } // ----------------------------------------------------------------------------- @@ -879,18 +858,14 @@ // ----------------------------------------------------------------------------- // void CCbsReceiverHelper::LaunchMessageImmediateDisplay( - const TCbsDbMessage& /*aMessage*/ ) + const TCbsDbMessage& aMessage ) { - // <-- QT PHONE START --> - /* TUid uiViewUid( TUid::Uid( ECbsUiMsgViewId ) ); TVwsViewId id( KUidCbsUiappApp, uiViewUid ); TPckgBuf pckg( aMessage.iHandle ); // Ignore result value. iVwsSession->CreateActivateViewEvent( id, KCbsImmediateMessageId, pckg ); - */ - // <-- QT PHONE END--> } // ----------------------------------------------------------------------------- @@ -913,13 +888,9 @@ // void CCbsReceiverHelper::PlayCbsTone() { - // <-- QT PHONE START --> - /* RProperty::Define( KPSUidNcnList, KNcnPlayAlertTone, RProperty::EInt, ECapability_None , ECapabilityWriteDeviceData ); RProperty::Set( KPSUidNcnList, KNcnPlayAlertTone, KCbsMessageTone ); - */ - // <-- QT PHONE END--> } // ================= OTHER EXPORTED FUNCTIONS ==============