60 // ----------------------------------------------------------------------------- |
60 // ----------------------------------------------------------------------------- |
61 // |
61 // |
62 void CPhoneHandlerResponse::ConstructL() |
62 void CPhoneHandlerResponse::ConstructL() |
63 { |
63 { |
64 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::ConstructL() start" ); |
64 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::ConstructL() start" ); |
65 |
65 |
66 iActive = CPhoneHandlerActive::NewL( *this ); |
66 iActive = CPhoneHandlerActive::NewL( *this ); |
67 |
67 |
68 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::ConstructL() end" ); |
68 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::ConstructL() end" ); |
69 } |
69 } |
70 |
70 |
71 // ----------------------------------------------------------------------------- |
71 // ----------------------------------------------------------------------------- |
72 // CPhoneHandlerResponse::NewL |
72 // CPhoneHandlerResponse::NewL |
73 // Two-phased constructor. |
73 // Two-phased constructor. |
74 // ----------------------------------------------------------------------------- |
74 // ----------------------------------------------------------------------------- |
75 // |
75 // |
76 CPhoneHandlerResponse* CPhoneHandlerResponse::NewL( |
76 CPhoneHandlerResponse* CPhoneHandlerResponse::NewL( |
77 CPhoneHandlerControl& aControl ) |
77 CPhoneHandlerControl& aControl ) |
78 { |
78 { |
79 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::NewL() start" ); |
79 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::NewL() start" ); |
80 |
80 |
81 CPhoneHandlerResponse* self = |
81 CPhoneHandlerResponse* self = |
82 new( ELeave ) CPhoneHandlerResponse( aControl ); |
82 new( ELeave ) CPhoneHandlerResponse( aControl ); |
83 |
83 |
84 CleanupStack::PushL( self ); |
84 CleanupStack::PushL( self ); |
85 self->ConstructL(); |
85 self->ConstructL(); |
86 CleanupStack::Pop( self ); |
86 CleanupStack::Pop( self ); |
87 |
87 |
88 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::NewL() end" ); |
88 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::NewL() end" ); |
89 |
89 |
90 return self; |
90 return self; |
91 } |
91 } |
92 |
92 |
93 // Destructor |
93 // Destructor |
94 CPhoneHandlerResponse::~CPhoneHandlerResponse() |
94 CPhoneHandlerResponse::~CPhoneHandlerResponse() |
95 { |
95 { |
96 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::~CPhoneHandlerResponse()" ); |
96 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::~CPhoneHandlerResponse()" ); |
97 |
97 |
98 delete iActive; |
98 delete iActive; |
99 } |
99 } |
100 |
100 |
101 // ----------------------------------------------------------------------------- |
101 // ----------------------------------------------------------------------------- |
102 // CPhoneHandlerResponse::SendResponse |
102 // CPhoneHandlerResponse::SendResponse |
103 // Sends response to RemCon FW. |
103 // Sends response to RemCon FW. |
104 // (other items were commented in a header). |
104 // (other items were commented in a header). |
105 // ----------------------------------------------------------------------------- |
105 // ----------------------------------------------------------------------------- |
106 // |
106 // |
107 void CPhoneHandlerResponse::SetResponse( |
107 void CPhoneHandlerResponse::SetResponse( |
108 TRemConExtCallHandlingApiOperationId aOperation, TInt aError ) |
108 TRemConExtCallHandlingApiOperationId aOperation, TInt aError ) |
109 { |
109 { |
110 COM_TRACE_2( "[PHONECMDHANDLER] CPhoneHandlerResponse::Process(aOperation=%d,aError=%d)",aOperation, aError ); |
110 COM_TRACE_2( "[PHONECMDHANDLER] CPhoneHandlerResponse::Process(aOperation=%d,aError=%d)",aOperation, aError ); |
111 |
111 |
112 iOperation = aOperation; |
112 iOperation = aOperation; |
113 iError = aError; |
113 iError = aError; |
114 } |
114 } |
115 |
115 |
116 // ----------------------------------------------------------------------------- |
116 // ----------------------------------------------------------------------------- |
117 // CPhoneHandlerResponse::SendResponse |
117 // CPhoneHandlerResponse::SendResponse |
118 // Sends response to RemCon FW. |
118 // Sends response to RemCon FW. |
119 // (other items were commented in a header). |
119 // (other items were commented in a header). |
120 // ----------------------------------------------------------------------------- |
120 // ----------------------------------------------------------------------------- |
121 // |
121 // |
122 void CPhoneHandlerResponse::Process() |
122 void CPhoneHandlerResponse::Process() |
123 { |
123 { |
124 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::Process()" ); |
124 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::Process()" ); |
125 |
125 |
126 iControl.CommandInitiator().SendResponse( iActive->iStatus, |
126 iControl.CommandInitiator().SendResponse( iActive->iStatus, |
127 iOperation, |
127 iOperation, |
128 iError ); |
128 iError ); |
129 iActive->SetActive(); |
129 iActive->SetActive(); |
130 } |
130 } |
131 |
131 |
132 // ----------------------------------------------------------------------------- |
132 // ----------------------------------------------------------------------------- |
133 // CPhoneHandlerLastNumberRedial::Delete |
133 // CPhoneHandlerLastNumberRedial::Delete |
134 // (other items were commented in a header). |
134 // (other items were commented in a header). |
135 // ----------------------------------------------------------------------------- |
135 // ----------------------------------------------------------------------------- |
136 // |
136 // |
137 void CPhoneHandlerResponse::Delete() |
137 void CPhoneHandlerResponse::Delete() |
138 { |
138 { |
139 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::Delete()" ); |
139 COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerResponse::Delete()" ); |
140 |
140 |
141 delete this; |
141 delete this; |
142 } |
142 } |
143 |
143 |
144 // ----------------------------------------------------------------------------- |
144 // ----------------------------------------------------------------------------- |
145 // CPhoneHandlerResponse::RequestCompleted |
145 // CPhoneHandlerResponse::RequestCompleted |
146 // Handler for completed asynchronous calls. |
146 // Handler for completed asynchronous calls. |
147 // (other items were commented in a header). |
147 // (other items were commented in a header). |
148 // ----------------------------------------------------------------------------- |
148 // ----------------------------------------------------------------------------- |
149 // |
149 // |
150 void CPhoneHandlerResponse::RequestCompleted( const TInt aError ) |
150 void CPhoneHandlerResponse::RequestCompleted( const TInt aError ) |
151 { |
151 { |
152 COM_TRACE_1( "[PHONECMDHANDLER] CPhoneHandlerResponse::RequestCompleted() aError=%d", aError ); |
152 COM_TRACE_1( "[PHONECMDHANDLER] CPhoneHandlerResponse::RequestCompleted() aError=%d", aError ); |
153 |
153 |
154 (void)aError; // avoid warning in WINSCW urel build |
154 (void)aError; // avoid warning in WINSCW urel build |
155 |
155 |
156 // Think about adding value to TRemConExtCallHandlingApiOperationId |
156 // Think about adding value to TRemConExtCallHandlingApiOperationId |
157 // in RemConExtensionApi.h like "ERemConExtNoCallHandlingOperation". |
157 // in RemConExtensionApi.h like "ERemConExtNoCallHandlingOperation". |
158 // In this method iOperation should be set to that value. |
158 // In this method iOperation should be set to that value. |
159 iError = KErrNone; |
159 iError = KErrNone; |
160 } |
160 } |
161 |
161 |
162 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
162 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
163 |
163 |
164 // End of File |
164 // End of File |