equal
deleted
inserted
replaced
24 #include "cpedevicemodehandler.h" |
24 #include "cpedevicemodehandler.h" |
25 #include "cpemessagehandler.h" |
25 #include "cpemessagehandler.h" |
26 #include "mpecallhandling.h" |
26 #include "mpecallhandling.h" |
27 #include "mpephonemodelinternal.h" |
27 #include "mpephonemodelinternal.h" |
28 #include <apgtask.h> |
28 #include <apgtask.h> |
29 #include <CPhCltCallNotify.h> |
29 #include <cphcltcallnotify.h> |
30 #include <CPhCltEmergencyCall.h> |
30 #include <cphcltemergencycall.h> |
31 #include <CPhCltUssd.h> |
31 #include <cphcltussd.h> |
32 #include <mpedatastore.h> |
32 #include <mpedatastore.h> |
33 #include <talogger.h> |
33 #include <talogger.h> |
34 |
34 |
35 |
35 |
36 // ================= MEMBER FUNCTIONS ======================= |
36 // ================= MEMBER FUNCTIONS ======================= |
62 { |
62 { |
63 TEFLOGSTRING( KTAOBJECT, "PE CPEClientServices::ConstructL()" ); |
63 TEFLOGSTRING( KTAOBJECT, "PE CPEClientServices::ConstructL()" ); |
64 |
64 |
65 User::LeaveIfError( iPhoneServer.Connect( ) ); |
65 User::LeaveIfError( iPhoneServer.Connect( ) ); |
66 |
66 |
67 // Need to call CreateAll so that Phone Server creates all managers |
67 // Need to call CreateAll so that Phone Server creates all managers |
68 // (f.ex. USSD manager). Otherwise USSD requests/notifications don't |
68 // (f.ex. USSD manager). Otherwise USSD requests/notifications don't |
69 // get through unless USSD request is sent from Mobile Terminal first. |
69 // get through unless USSD request is sent from Mobile Terminal first. |
70 TRequestStatus phoneServerStatus; |
70 TRequestStatus phoneServerStatus; |
71 iPhoneServer.CreateAll( phoneServerStatus ); |
71 iPhoneServer.CreateAll( phoneServerStatus ); |
72 User::WaitForRequest( phoneServerStatus ); |
72 User::WaitForRequest( phoneServerStatus ); |
73 User::LeaveIfError( phoneServerStatus.Int() ); |
73 User::LeaveIfError( phoneServerStatus.Int() ); |
74 |
74 |
83 |
83 |
84 iClientEmergencyMonitor = CPEClientEmergencyCallMonitor::NewL( |
84 iClientEmergencyMonitor = CPEClientEmergencyCallMonitor::NewL( |
85 iModel, |
85 iModel, |
86 *iCallNotifier ); |
86 *iCallNotifier ); |
87 |
87 |
88 iClientCommandHandlerMonitor = CPEClientCommandHandlerMonitor::NewL( |
88 iClientCommandHandlerMonitor = CPEClientCommandHandlerMonitor::NewL( |
89 iCallHandling, |
89 iCallHandling, |
90 iMessageHandler, |
90 iMessageHandler, |
91 iModel, |
91 iModel, |
92 iPhoneServer, |
92 iPhoneServer, |
93 iManualCallControlHandler ); |
93 iManualCallControlHandler ); |
94 |
94 |
95 iDeviceModeHandler = CPEDeviceModeHandler::NewL( |
95 iDeviceModeHandler = CPEDeviceModeHandler::NewL( |
96 iCallHandling, |
96 iCallHandling, |
97 iMessageHandler ); |
97 iMessageHandler ); |
98 } |
98 } |
99 |
99 |
100 // ----------------------------------------------------------------------------- |
100 // ----------------------------------------------------------------------------- |
101 // CPEClientServices::NewL |
101 // CPEClientServices::NewL |
102 // Two-phased constructor. |
102 // Two-phased constructor. |
108 MPECallHandling& aCallHandling, |
108 MPECallHandling& aCallHandling, |
109 CPEManualCallControlHandler& aManualCallControlHandler ) |
109 CPEManualCallControlHandler& aManualCallControlHandler ) |
110 { |
110 { |
111 TEFLOGSTRING( KTAOBJECT, "PE CPEClientServices::NewL()" ); |
111 TEFLOGSTRING( KTAOBJECT, "PE CPEClientServices::NewL()" ); |
112 |
112 |
113 CPEClientServices* self = new ( ELeave ) CPEClientServices( |
113 CPEClientServices* self = new ( ELeave ) CPEClientServices( |
114 aModel, |
114 aModel, |
115 aMessageHandler, |
115 aMessageHandler, |
116 aCallHandling, |
116 aCallHandling, |
117 aManualCallControlHandler ); |
117 aManualCallControlHandler ); |
118 |
118 |
119 CleanupStack::PushL( self ); |
119 CleanupStack::PushL( self ); |
120 self->ConstructL(); |
120 self->ConstructL(); |
121 CleanupStack::Pop( self ); |
121 CleanupStack::Pop( self ); |
122 return (self); |
122 return (self); |