38 #include "CCbsDbImpSettings.H" |
38 #include "CCbsDbImpSettings.H" |
39 #include "CCbsDbImpTopicList.h" |
39 #include "CCbsDbImpTopicList.h" |
40 #include "CCbsDbImpTopicMessages.h" |
40 #include "CCbsDbImpTopicMessages.h" |
41 #include "CCbsDbImpTopicCollection.h" |
41 #include "CCbsDbImpTopicCollection.h" |
42 #include "CCbsRecMessage.h" |
42 #include "CCbsRecMessage.h" |
43 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
43 // <-- QT PHONE START --> |
44 #include <viewcli.h> // View server access |
44 //#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
45 #else |
45 //#include <viewcli.h> // View server access |
46 #include <viewclipartner.h> |
46 //#else |
47 #endif |
47 //#include <viewclipartner.h> |
48 #include <AknNotifyStd.h> // ECellBroadcastNotification |
48 //#endif |
49 #include <AknSoftNotifier.h> // Soft Notification API |
49 //#include <AknNotifyStd.h> // ECellBroadcastNotification |
|
50 //#include <AknSoftNotifier.h> // Soft Notification API |
|
51 // <-- QT PHONE END --> |
50 #include <e32property.h> |
52 #include <e32property.h> |
51 #include <coreapplicationuisdomainpskeys.h> |
53 #include <coreapplicationuisdomainpskeys.h> |
52 #include <NcnListDomainPSKeys.h> |
54 // <-- QT PHONE START --> |
|
55 //#include <NcnListDomainPSKeys.h> |
|
56 // <-- QT PHONE END --> |
53 |
57 |
54 #include <data_caging_path_literals.hrh> |
58 #include <data_caging_path_literals.hrh> |
55 #include "CbsLogger.h" |
59 #include "CbsLogger.h" |
56 |
60 |
57 #include <centralrepository.h> // for local variation |
61 #include <centralrepository.h> // for local variation |
58 #include "cbsinternalcrkeys.h" // for local variation |
62 #include "cbsinternalcrkeys.h" // for local variation |
59 #include "cbsvariant.hrh" // for local variation |
63 #include "cbsvariant.hrh" // for local variation |
60 |
64 |
61 // CONSTANTS |
65 // CONSTANTS |
62 |
66 |
|
67 // <-- QT PHONE START --> |
63 // UID of CBS UI application |
68 // UID of CBS UI application |
64 #define KUidCbsUiappDef 0x101F4CD3 |
69 //#define KUidCbsUiappDef 0x101F4CD3 |
65 const TUid KUidCbsUiappApp = { KUidCbsUiappDef }; |
70 //const TUid KUidCbsUiappApp = { KUidCbsUiappDef }; |
66 |
71 // <-- QT PHONE END --> |
67 const TInt KCbsImmediateMessageIdInt = 313; |
72 |
68 const TUid KCbsImmediateMessageId = { KCbsImmediateMessageIdInt }; |
73 // <-- QT PHONE START --> |
69 |
74 //const TInt KCbsImmediateMessageIdInt = 313; |
70 const TInt KCbsMessageTone = 2; // See SharedDataKeysVariant.h or NcnListInternalPSKeys.h |
75 //const TUid KCbsImmediateMessageId = { KCbsImmediateMessageIdInt }; |
71 |
76 // <-- QT PHONE END --> |
|
77 |
|
78 // <-- QT PHONE START --> |
|
79 //const TInt KCbsMessageTone = 2; // See SharedDataKeysVariant.h or NcnListInternalPSKeys.h |
|
80 // <-- QT PHONE END --> |
72 // DATA TYPES |
81 // DATA TYPES |
73 // CbsUi application view ID's |
82 // CbsUi application view ID's |
74 enum TCbsUiViewIds |
83 enum TCbsUiViewIds |
75 { |
84 { |
76 ECbsUiTopicViewId = 1, |
85 ECbsUiTopicViewId = 1, |
321 // |
330 // |
322 void CCbsReceiverHelper::ConstructL() |
331 void CCbsReceiverHelper::ConstructL() |
323 { |
332 { |
324 CBSLOGSTRING("CBSSERVER: >>> CCbsReceiverHelper::ConstructL()"); |
333 CBSLOGSTRING("CBSSERVER: >>> CCbsReceiverHelper::ConstructL()"); |
325 |
334 |
|
335 // <-- QT PHONE START --> |
|
336 /* |
326 iVwsSession = CVwsSessionWrapper::NewL(); |
337 iVwsSession = CVwsSessionWrapper::NewL(); |
|
338 */ |
|
339 // <-- QT PHONE END--> |
327 |
340 |
328 // Array for SIM Topic numbers. This way we know which topics |
341 // Array for SIM Topic numbers. This way we know which topics |
329 // to delete also from the SIM card (when deleting all topics). |
342 // to delete also from the SIM card (when deleting all topics). |
330 iSimTopics = new ( ELeave ) CArrayFixFlat<TInt>( 1 ); |
343 iSimTopics = new ( ELeave ) CArrayFixFlat<TInt>( 1 ); |
331 |
344 |
831 // CCbsReceiverHelper::LaunchMessageSoftNotificationL |
848 // CCbsReceiverHelper::LaunchMessageSoftNotificationL |
832 // Requests to launch a soft notification. |
849 // Requests to launch a soft notification. |
833 // (other items were commented in a header). |
850 // (other items were commented in a header). |
834 // ----------------------------------------------------------------------------- |
851 // ----------------------------------------------------------------------------- |
835 // |
852 // |
836 void CCbsReceiverHelper::LaunchMessageSoftNotificationL( const TBool aPlayTone ) |
853 void CCbsReceiverHelper::LaunchMessageSoftNotificationL( const TBool /*aPlayTone*/ ) |
837 { |
854 { |
|
855 // <-- QT PHONE START --> |
|
856 /* |
838 TInt numberOfHotMsgs( 0 ); |
857 TInt numberOfHotMsgs( 0 ); |
839 numberOfHotMsgs = iDatabase.TopicListL().UnreadHotmarkedMessageCount(); |
858 numberOfHotMsgs = iDatabase.TopicListL().UnreadHotmarkedMessageCount(); |
840 |
859 |
841 CAknSoftNotifier* notifier = CAknSoftNotifier::NewLC(); // on CS |
860 CAknSoftNotifier* notifier = CAknSoftNotifier::NewLC(); // on CS |
842 |
861 |
847 PlayCbsTone(); |
866 PlayCbsTone(); |
848 } |
867 } |
849 |
868 |
850 notifier->SetNotificationCountL( ECellBroadcastNotification, numberOfHotMsgs ); |
869 notifier->SetNotificationCountL( ECellBroadcastNotification, numberOfHotMsgs ); |
851 CleanupStack::PopAndDestroy( notifier ); |
870 CleanupStack::PopAndDestroy( notifier ); |
|
871 */ |
|
872 // <-- QT PHONE END--> |
852 } |
873 } |
853 |
874 |
854 // ----------------------------------------------------------------------------- |
875 // ----------------------------------------------------------------------------- |
855 // CCbsReceiverHelper::LaunchMessageImmediateDisplay |
876 // CCbsReceiverHelper::LaunchMessageImmediateDisplay |
856 // Requests to show the message immediately. |
877 // Requests to show the message immediately. |
857 // (other items were commented in a header). |
878 // (other items were commented in a header). |
858 // ----------------------------------------------------------------------------- |
879 // ----------------------------------------------------------------------------- |
859 // |
880 // |
860 void CCbsReceiverHelper::LaunchMessageImmediateDisplay( |
881 void CCbsReceiverHelper::LaunchMessageImmediateDisplay( |
861 const TCbsDbMessage& aMessage ) |
882 const TCbsDbMessage& /*aMessage*/ ) |
862 { |
883 { |
|
884 // <-- QT PHONE START --> |
|
885 /* |
863 TUid uiViewUid( TUid::Uid( ECbsUiMsgViewId ) ); |
886 TUid uiViewUid( TUid::Uid( ECbsUiMsgViewId ) ); |
864 TVwsViewId id( KUidCbsUiappApp, uiViewUid ); |
887 TVwsViewId id( KUidCbsUiappApp, uiViewUid ); |
865 TPckgBuf<TCbsMessageHandle> pckg( aMessage.iHandle ); |
888 TPckgBuf<TCbsMessageHandle> pckg( aMessage.iHandle ); |
866 |
889 |
867 // Ignore result value. |
890 // Ignore result value. |
868 iVwsSession->CreateActivateViewEvent( id, KCbsImmediateMessageId, pckg ); |
891 iVwsSession->CreateActivateViewEvent( id, KCbsImmediateMessageId, pckg ); |
|
892 */ |
|
893 // <-- QT PHONE END--> |
869 } |
894 } |
870 |
895 |
871 // ----------------------------------------------------------------------------- |
896 // ----------------------------------------------------------------------------- |
872 // CCbsReceiverHelper::TurnLightsOn |
897 // CCbsReceiverHelper::TurnLightsOn |
873 // Turns lights on |
898 // Turns lights on |
886 // Plays a tone |
911 // Plays a tone |
887 // ----------------------------------------------------------------------------- |
912 // ----------------------------------------------------------------------------- |
888 // |
913 // |
889 void CCbsReceiverHelper::PlayCbsTone() |
914 void CCbsReceiverHelper::PlayCbsTone() |
890 { |
915 { |
|
916 // <-- QT PHONE START --> |
|
917 /* |
891 RProperty::Define( KPSUidNcnList, KNcnPlayAlertTone, RProperty::EInt, |
918 RProperty::Define( KPSUidNcnList, KNcnPlayAlertTone, RProperty::EInt, |
892 ECapability_None , ECapabilityWriteDeviceData ); |
919 ECapability_None , ECapabilityWriteDeviceData ); |
893 RProperty::Set( KPSUidNcnList, KNcnPlayAlertTone, KCbsMessageTone ); |
920 RProperty::Set( KPSUidNcnList, KNcnPlayAlertTone, KCbsMessageTone ); |
|
921 */ |
|
922 // <-- QT PHONE END--> |
894 } |
923 } |
895 |
924 |
896 // ================= OTHER EXPORTED FUNCTIONS ============== |
925 // ================= OTHER EXPORTED FUNCTIONS ============== |
897 |
926 |
898 // End of File |
927 // End of File |