87 |
87 |
88 // ----------------------------------------------------------------------------- |
88 // ----------------------------------------------------------------------------- |
89 // |
89 // |
90 // ----------------------------------------------------------------------------- |
90 // ----------------------------------------------------------------------------- |
91 // |
91 // |
92 void CMusCallMonitor::StartMonitorL(RMobileLine& aLine, MMusTsyPropertyObserver& aObserver) |
92 void CMusCallMonitor::StartMonitorL(RMobileLine& aLine, |
|
93 MMusTsyPropertyObserver& aObserver, |
|
94 MMusCallStateObserver& aCallStateObserver) |
93 { |
95 { |
94 MUS_LOG( "mus: [MUSAO] -> CMusCallMonitor::StartMonitorL" ) |
96 MUS_LOG( "mus: [MUSAO] -> CMusCallMonitor::StartMonitorL" ) |
95 if(IsMonitored())User::Leave(KErrAlreadyExists); |
97 if(IsMonitored())User::Leave(KErrAlreadyExists); |
96 User::LeaveIfError( iCall.OpenExistingCall( aLine, iCallName ) ); |
98 User::LeaveIfError( iCall.OpenExistingCall( aLine, iCallName ) ); |
97 iCallStatusMonitor = CMusCallStatusMonitor::NewL( iCall, aObserver ); |
99 iCallStatusMonitor = CMusCallStatusMonitor::NewL( iCall, aObserver, aCallStateObserver ); |
98 iCallEventMonitor = CMusCallEventMonitor::NewL( iCall, aObserver ); |
100 iCallEventMonitor = CMusCallEventMonitor::NewL( iCall, aObserver, aCallStateObserver ); |
99 |
|
100 MUS_LOG( "mus: [MUSAO] <- CMusCallMonitor::StartMonitorL" ) |
101 MUS_LOG( "mus: [MUSAO] <- CMusCallMonitor::StartMonitorL" ) |
101 } |
102 } |
102 |
103 |
103 // ----------------------------------------------------------------------------- |
104 // ----------------------------------------------------------------------------- |
104 // |
105 // |
185 iCallStatusMonitor->SetStateL( aVal ); |
186 iCallStatusMonitor->SetStateL( aVal ); |
186 iCallEventMonitor->SetStateL( aVal ); |
187 iCallEventMonitor->SetStateL( aVal ); |
187 } |
188 } |
188 |
189 |
189 |
190 |
|
191 // -------------------------------------------------------------------------------- |
|
192 // CMusCallMonitor::IsDataReadyL() |
|
193 // Checks if Data is ready CS Call. |
|
194 // -------------------------------------------------------------------------------- |
|
195 |
|
196 TBool CMusCallMonitor::IsDataReadyL() |
|
197 { |
|
198 // Wrapper Function for Monitoring CS Call Data |
|
199 return iCallStatusMonitor->IsDataReadyL(); |
|
200 } |
|
201 |
190 // End of file |
202 // End of file |
|
203 |