equal
deleted
inserted
replaced
21 #define MUSAOCALLMONITORBASE_H |
21 #define MUSAOCALLMONITORBASE_H |
22 |
22 |
23 #include "musunittesting.h" |
23 #include "musunittesting.h" |
24 #include "mussesseioninformationapi.h" |
24 #include "mussesseioninformationapi.h" |
25 #include "mmustsypropertyobserver.h" |
25 #include "mmustsypropertyobserver.h" |
26 #include "mmuscallstateobserver.h" |
|
27 #include <etelmm.h> |
26 #include <etelmm.h> |
28 #include <e32base.h> |
27 #include <e32base.h> |
29 |
28 |
30 /** |
29 /** |
31 * Monitor, which observes status of current cs call |
30 * Monitor, which observes status of current cs call |
56 |
55 |
57 /** |
56 /** |
58 * CActive Implentation |
57 * CActive Implentation |
59 */ |
58 */ |
60 TInt RunError( TInt aError ); |
59 TInt RunError( TInt aError ); |
61 |
|
62 /** |
|
63 * Checks if it the data is ready for the CS Call |
|
64 */ |
|
65 TBool IsDataReadyL(); |
|
66 |
60 |
67 |
61 |
68 protected: |
62 protected: |
69 |
63 |
70 /** |
64 /** |
71 * C++ constructor. |
65 * C++ constructor. |
72 */ |
66 */ |
73 CMusCallMonitorBase( const RMobileCall& aCall, |
67 CMusCallMonitorBase( const RMobileCall& aCall, MMusTsyPropertyObserver& aObserver ); |
74 MMusTsyPropertyObserver& aObserver, |
|
75 MMusCallStateObserver& aCallStateObserver ); |
|
76 |
68 |
77 /** |
69 /** |
78 * Notify observer that our state changed |
70 * Notify observer that our state changed |
79 */ |
71 */ |
80 virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal ); |
72 virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal ); |
81 |
73 |
|
74 /** |
|
75 * Inspect the dialled number and set the PS key controlling whether |
|
76 * to add Privacy-header accordingly. |
|
77 */ |
|
78 void SetClirSetting( const TDesC& aDialledNumber ) const; |
|
79 |
|
80 /** |
|
81 * Should set the privacy ps key to on off based on incoming cs call privacy settings. |
|
82 * aCallInfo : Callinfo package read from current cs call. |
|
83 */ |
|
84 void SetTerminatingPrivacy( const RMobileCall& aCall ) const; |
|
85 |
|
86 /** |
|
87 * Removes privacy prefix away from phone number |
|
88 * @return returns dialed number witout prefix. |
|
89 */ |
|
90 HBufC* RemovePrefix( const TDesC& aOriginator ) const; |
82 |
91 |
83 protected: |
92 protected: |
84 |
93 |
85 /** |
94 /** |
86 * RMobileCall handle. |
95 * RMobileCall handle. |
101 |
110 |
102 /** |
111 /** |
103 * Observer to get nofitied when RCall status changed |
112 * Observer to get nofitied when RCall status changed |
104 */ |
113 */ |
105 MMusTsyPropertyObserver& iTsyObserver; |
114 MMusTsyPropertyObserver& iTsyObserver; |
106 |
|
107 |
|
108 /* |
|
109 * Reference of callstate observer not owned |
|
110 */ |
|
111 MMusCallStateObserver& iCallStateObserver; |
|
112 |
|
113 |
115 |
114 MUS_UNITTEST( UT_CMusCallMonitor ) |
116 MUS_UNITTEST( UT_CMusCallMonitor ) |
115 MUS_UNITTEST( UT_CMusCallEventMonitor ) |
117 MUS_UNITTEST( UT_CMusCallEventMonitor ) |
116 MUS_UNITTEST( UT_CMusCallStatusMonitor ) |
118 MUS_UNITTEST( UT_CMusCallStatusMonitor ) |
|
119 MUS_UNITTEST( UT_CMusCallMonitorBase ) |
117 }; |
120 }; |
118 |
121 |
119 #endif // MUSAOCALLMONITORBASE_H |
122 #endif // MUSAOCALLMONITORBASE_H |