94 QCOMPARE( text, QString( |
94 QCOMPARE( text, QString( |
95 "txt_phone_info_not_allowed")); |
95 "txt_phone_info_not_allowed")); |
96 PsUiUtils::errorCodeTextMapping(KErrGsmSSDataMissing, text); |
96 PsUiUtils::errorCodeTextMapping(KErrGsmSSDataMissing, text); |
97 QCOMPARE( text, QString( |
97 QCOMPARE( text, QString( |
98 "txt_phone_info_not_allowed")); |
98 "txt_phone_info_not_allowed")); |
|
99 PsUiUtils::errorCodeTextMapping(KErrAccessDenied, text); |
|
100 QCOMPARE( text, QString( |
|
101 "txt_phone_info_not_allowed")); |
99 PsUiUtils::errorCodeTextMapping(KErrGsmSSIncompatibility, text); |
102 PsUiUtils::errorCodeTextMapping(KErrGsmSSIncompatibility, text); |
100 QCOMPARE( text, QString( |
103 QCOMPARE( text, QString( |
101 "txt_phone_info_conflict_error")); |
104 "txt_phone_info_conflict_error")); |
102 PsUiUtils::errorCodeTextMapping(KErrGsmSSSystemFailure, text); |
105 PsUiUtils::errorCodeTextMapping(KErrGsmSSSystemFailure, text); |
103 QCOMPARE( text, QString( |
106 QCOMPARE( text, QString( |
108 PsUiUtils::errorCodeTextMapping(KErrGsmSSResourcesUnavailable, text); |
111 PsUiUtils::errorCodeTextMapping(KErrGsmSSResourcesUnavailable, text); |
109 QCOMPARE( text, QString( |
112 QCOMPARE( text, QString( |
110 "txt_phone_info_request_rejected")); |
113 "txt_phone_info_request_rejected")); |
111 PsUiUtils::errorCodeTextMapping(KErrGsmSSNegativePasswordCheck, text); |
114 PsUiUtils::errorCodeTextMapping(KErrGsmSSNegativePasswordCheck, text); |
112 QCOMPARE( text, QString( |
115 QCOMPARE( text, QString( |
113 "Password error")); |
116 "txt_phone_info_password_error")); |
114 PsUiUtils::errorCodeTextMapping(KErrGsmSSPasswordRegistrationFailure, text); |
117 PsUiUtils::errorCodeTextMapping(KErrGsmSSPasswordRegistrationFailure, text); |
115 QCOMPARE( text, QString( |
118 QCOMPARE( text, QString( |
116 "Password error")); |
119 "txt_phone_info_password_error")); |
117 PsUiUtils::errorCodeTextMapping(KErrGsmSSPasswordAttemptsViolation, text); |
120 PsUiUtils::errorCodeTextMapping(KErrGsmSSPasswordAttemptsViolation, text); |
118 QCOMPARE( text, QString( |
121 QCOMPARE( text, QString( |
119 "txt_phone_info_barring_password_blocked")); |
122 "txt_phone_info_barring_password_blocked")); |
120 PsUiUtils::errorCodeTextMapping(KErrGsmSMSNoNetworkService, text); |
123 PsUiUtils::errorCodeTextMapping(KErrGsmSMSNoNetworkService, text); |
121 QCOMPARE( text, QString( |
124 QCOMPARE( text, QString( |
122 "No network coverage")); |
125 "txt_phone_info_no_network_coverage")); |
123 PsUiUtils::errorCodeTextMapping(KErrGsmNoService, text); |
126 PsUiUtils::errorCodeTextMapping(KErrGsmNoService, text); |
124 QCOMPARE( text, QString( |
127 QCOMPARE( text, QString( |
125 "No network coverage")); |
128 "txt_phone_info_no_network_coverage")); |
126 PsUiUtils::errorCodeTextMapping(KErrSsActivationDataLost, text); |
129 PsUiUtils::errorCodeTextMapping(KErrSsActivationDataLost, text); |
127 QCOMPARE( text, QString( |
130 QCOMPARE( text, QString( |
128 "Check network services")); |
131 "txt_phone_info_check_network_services")); |
129 PsUiUtils::errorCodeTextMapping(KErrGsmSSUnknownAlphabet, text); |
132 PsUiUtils::errorCodeTextMapping(KErrGsmSSUnknownAlphabet, text); |
130 QCOMPARE( text, QString("txt_phone_info_invalid_phone_number")); |
133 QCOMPARE( text, QString("txt_phone_info_invalid_phone_number")); |
131 |
134 |
132 expect("XQSysInfo::isSupported").returns(false); |
135 expect("XQSysInfo::isSupported").returns(false); |
133 PsUiUtils::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text); |
136 PsUiUtils::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text); |
134 QCOMPARE( text, QString( |
137 QCOMPARE( text, QString( |
135 "txt_phone_info_request_not_completed")); |
138 "txt_phone_info_request_not_completed")); |
136 QVERIFY( verify() ); |
139 QVERIFY( verify() ); |
137 |
140 |
138 expect("XQSysInfo::isSupported").returns(true); |
141 expect("XQSysInfo::isSupported").returns(true); |
139 expect("XQSettingsManager::readItemValue").returns(QVariant(EBTSapConnected)); |
|
140 PsUiUtils::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text); |
142 PsUiUtils::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text); |
141 QCOMPARE( text, QString( |
143 QCOMPARE( text, QString( |
142 "Operation not possible in SIM access profile mode")); |
144 "txt_phone_info_offline_not_allowed")); |
143 QVERIFY( verify() ); |
145 QVERIFY( verify() ); |
144 |
146 |
145 expect("XQSysInfo::isSupported").returns(true); |
|
146 expect("XQSettingsManager::readItemValue").returns(QVariant(EBTSapNotConnected)); |
|
147 PsUiUtils::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text); |
|
148 QCOMPARE( text, QString( |
|
149 "Operation not possible in Off-line mode")); |
|
150 |
|
151 PsUiUtils::errorCodeTextMapping(-1, text); |
147 PsUiUtils::errorCodeTextMapping(-1, text); |
152 QCOMPARE( text, QString( |
148 QCOMPARE( text, QString( |
153 "txt_phone_info_request_not_completed")); |
149 "txt_phone_info_request_not_completed")); |
154 |
150 |
155 QVERIFY( verify() ); |
151 QVERIFY( verify() ); |