equal
deleted
inserted
replaced
124 } |
124 } |
125 } |
125 } |
126 TRACE_FUNC_EXIT |
126 TRACE_FUNC_EXIT |
127 } |
127 } |
128 |
128 |
129 void CCNUMCommandHandler::HandleCommandCancel() |
|
130 { |
|
131 TRACE_FUNC_ENTRY |
|
132 Cancel(); |
|
133 TRACE_FUNC_EXIT |
|
134 } |
|
135 |
|
136 void CCNUMCommandHandler::RunL() |
129 void CCNUMCommandHandler::RunL() |
137 { |
130 { |
138 TRACE_FUNC_ENTRY |
131 TRACE_FUNC_ENTRY |
139 if(iStatus.Int() != KErrNone) |
132 if(iStatus.Int() != KErrNone) |
140 { |
133 { |
160 } |
153 } |
161 else |
154 else |
162 { |
155 { |
163 ASSERT(iPendingEvent == EMobilePhoneStoreRead); |
156 ASSERT(iPendingEvent == EMobilePhoneStoreRead); |
164 // step 5 append a phone number entry to the reply buffer |
157 // step 5 append a phone number entry to the reply buffer |
165 if(iOwnNumberEntry.iNumber.iTelNumber.Compare(KNullDesC) != 0) |
158 if(iOwnNumberEntry.iNumber.iTelNumber.Length() != 0) |
166 { |
159 { |
167 // 129 is the type of address octet in interger format |
160 // 129 is the type of address octet in interger format |
168 _LIT8(KATNumReply, "\r\n+CNUM: ,\"%S\",129"); |
161 _LIT8(KATNumReply, "\r\n+CNUM: ,\"%S\",129"); |
169 TBuf8<RMobilePhone::KMaxMobileTelNumberSize > telNumber8; |
162 TBuf8<RMobilePhone::KMaxMobileTelNumberSize > telNumber8; |
170 telNumber8.Copy(iOwnNumberEntry.iNumber.iTelNumber); |
163 telNumber8.Copy(iOwnNumberEntry.iNumber.iTelNumber); |