55 // Symbian 2nd phase constructor can leave. |
55 // Symbian 2nd phase constructor can leave. |
56 // ----------------------------------------------------------------------------- |
56 // ----------------------------------------------------------------------------- |
57 // |
57 // |
58 void CSsConnectionHandler::ConstructL() |
58 void CSsConnectionHandler::ConstructL() |
59 { |
59 { |
|
60 iCch = CCch::NewL(); |
60 } |
61 } |
61 |
62 |
62 // Destructor |
63 // Destructor |
63 CSsConnectionHandler::~CSsConnectionHandler() |
64 CSsConnectionHandler::~CSsConnectionHandler() |
64 { |
65 { |
|
66 delete iCch; |
65 } |
67 } |
66 |
68 |
67 // ----------------------------------------------------------------------------- |
69 // ----------------------------------------------------------------------------- |
68 // CSsServiceUtilities::IsVoipServiceRegistered |
70 // CSsServiceUtilities::IsVoipServiceRegistered |
69 // Checks is the service registered |
71 // Checks is the service registered |
70 // ----------------------------------------------------------------------------- |
72 // ----------------------------------------------------------------------------- |
71 // |
73 // |
72 TBool CSsConnectionHandler::IsVoipServiceRegistered |
74 TBool CSsConnectionHandler::IsVoipServiceRegistered |
73 ( |
75 ( |
74 TUint /*aServiceId */ |
76 TUint aServiceId |
75 ) const |
77 ) const |
76 { |
78 { |
77 |
79 TCchServiceStatus serviceStatus; |
78 TBool registered( EFalse ); |
80 TBool registered( EFalse ); |
|
81 CCchService* service = iCch->GetService( aServiceId ); |
|
82 if ( service ) |
|
83 { |
|
84 service->GetStatus( ECCHVoIPSub, serviceStatus ); |
|
85 registered = ( KErrNone == serviceStatus.Error() ) && |
|
86 ( ECCHEnabled == serviceStatus.State() ); |
|
87 } |
|
88 |
|
89 CSSLOGSTRING4("CSSelector::IsRegistered: id:%d ,enabled:%d ,error:%d", |
|
90 (TInt) aServiceId, |
|
91 (TInt) ECCHEnabled == serviceStatus.State(), |
|
92 (TInt) serviceStatus.Error()); |
|
93 |
79 return registered; |
94 return registered; |
80 } |
95 } |
81 |
96 |
82 // ================= OTHER EXPORTED FUNCTIONS =============================== |
97 // ================= OTHER EXPORTED FUNCTIONS =============================== |
83 |
98 |