259 iQueryCanceled = EFalse; |
259 iQueryCanceled = EFalse; |
260 lAlphaSupported = ESecUiAlphaSupported; |
260 lAlphaSupported = ESecUiAlphaSupported; |
261 lCancelSupported = ESecUiCancelSupported; |
261 lCancelSupported = ESecUiCancelSupported; |
262 TBuf<0x100> title; |
262 TBuf<0x100> title; |
263 title.Zero(); |
263 title.Zero(); |
264 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("AskSecCodeL")); |
264 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("txt_pin_code_dialog_sec_code")); |
265 title.Append(stringHolder->Des()); |
265 title.Append(stringHolder->Des()); |
266 CleanupStack::PopAndDestroy(stringHolder); |
266 CleanupStack::PopAndDestroy(stringHolder); |
267 title.Append(_L("$")); |
267 title.Append(_L("$")); |
268 title.AppendNum(-1); // Don't know the number of remaining attempts |
268 title.AppendNum(-1); // Don't know the number of remaining attempts |
269 queryAccepted = iSecQueryUi->SecQueryDialog(title, iSecUi_password, SEC_C_SECURITY_CODE_MIN_LENGTH, SEC_C_SECURITY_CODE_MAX_LENGTH, ESecUiSecretSupported | lAlphaSupported |
269 queryAccepted = iSecQueryUi->SecQueryDialog(title, iSecUi_password, SEC_C_SECURITY_CODE_MIN_LENGTH, SEC_C_SECURITY_CODE_MAX_LENGTH, ESecUiSecretSupported | lAlphaSupported |
704 iQueryCanceled = EFalse; |
704 iQueryCanceled = EFalse; |
705 TInt lType = ESecUiSecretSupported | ESecUiAlphaSupported | lCancelSupported | lEmergencySupported | secCodeTypeToAsk; |
705 TInt lType = ESecUiSecretSupported | ESecUiAlphaSupported | lCancelSupported | lEmergencySupported | secCodeTypeToAsk; |
706 RDEBUG("lType", lType); |
706 RDEBUG("lType", lType); |
707 TBuf<0x100> title; |
707 TBuf<0x100> title; |
708 title.Zero(); |
708 title.Zero(); |
709 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("PassPhraseRequiredL")); |
709 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("txt_pin_code_dialog_sec_code")); |
710 title.Append(stringHolder->Des()); |
710 title.Append(stringHolder->Des()); |
711 CleanupStack::PopAndDestroy(stringHolder); |
711 CleanupStack::PopAndDestroy(stringHolder); |
712 queryAccepted = iSecQueryUi->SecQueryDialog(title, iSecUi_password, SEC_C_SECURITY_CODE_MIN_LENGTH, SEC_C_SECURITY_CODE_MAX_LENGTH, lType); |
712 queryAccepted = iSecQueryUi->SecQueryDialog(title, iSecUi_password, SEC_C_SECURITY_CODE_MIN_LENGTH, SEC_C_SECURITY_CODE_MAX_LENGTH, lType); |
713 RDEBUG("iSecUi_password", 0); |
713 RDEBUG("iSecUi_password", 0); |
714 RDEBUGSTR(iSecUi_password); |
714 RDEBUGSTR(iSecUi_password); |
1539 if (codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts) // TODO this might be 10 ? |
1539 if (codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts) // TODO this might be 10 ? |
1540 codeInfo.iRemainingEntryAttempts = -1; |
1540 codeInfo.iRemainingEntryAttempts = -1; |
1541 |
1541 |
1542 TBuf<0x100> title; |
1542 TBuf<0x100> title; |
1543 title.Zero(); |
1543 title.Zero(); |
1544 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("Puk2RequiredL")); |
1544 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("txt_pin_code_dialog_puk2_code")); |
1545 title.Append(stringHolder->Des()); |
1545 title.Append(stringHolder->Des()); |
1546 CleanupStack::PopAndDestroy(stringHolder); |
1546 CleanupStack::PopAndDestroy(stringHolder); |
1547 title.Append(_L("$")); |
1547 title.Append(_L("$")); |
1548 title.AppendNum(codeInfo.iRemainingEntryAttempts); |
1548 title.AppendNum(codeInfo.iRemainingEntryAttempts); |
1549 queryAccepted = iSecQueryUi->SecQueryDialog(title, iSecUi_password, SEC_C_PUK2_CODE_MIN_LENGTH, SEC_C_PUK2_CODE_MAX_LENGTH, ESecUiSecretNotSupported | ESecUiAlphaNotSupported |
1549 queryAccepted = iSecQueryUi->SecQueryDialog(title, iSecUi_password, SEC_C_PUK2_CODE_MIN_LENGTH, SEC_C_PUK2_CODE_MAX_LENGTH, ESecUiSecretNotSupported | ESecUiAlphaNotSupported |
1604 RDEBUG("CSecQueryUi", 0); |
1604 RDEBUG("CSecQueryUi", 0); |
1605 iSecQueryUi = CSecQueryUi::NewL(); |
1605 iSecQueryUi = CSecQueryUi::NewL(); |
1606 iQueryCanceled = EFalse; |
1606 iQueryCanceled = EFalse; |
1607 TBuf<0x100> title; |
1607 TBuf<0x100> title; |
1608 title.Zero(); |
1608 title.Zero(); |
1609 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("PIN2-New|PIN2-Verif")); |
1609 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("txt_pin_code_dialog_new_pin2_code")); |
1610 title.Append(stringHolder->Des()); |
1610 title.Append(stringHolder->Des()); |
1611 CleanupStack::PopAndDestroy(stringHolder); |
1611 CleanupStack::PopAndDestroy(stringHolder); |
|
1612 title.Append(_L("|")); |
|
1613 HBufC* stringHolder2 = HbTextResolverSymbian::LoadLC(_L("Verify")); |
|
1614 title.Append(stringHolder2->Des()); |
|
1615 CleanupStack::PopAndDestroy(stringHolder2); |
1612 // ESecUiCodeEtelReqest/ESecUiNone might be useful |
1616 // ESecUiCodeEtelReqest/ESecUiNone might be useful |
1613 queryAccepted = iSecQueryUi->SecQueryDialog(title, aNewPassword, SEC_C_PIN2_CODE_MIN_LENGTH, SEC_C_PIN2_CODE_MAX_LENGTH, ESecUiAlphaNotSupported | ESecUiCancelSupported |
1617 queryAccepted = iSecQueryUi->SecQueryDialog(title, aNewPassword, SEC_C_PIN2_CODE_MIN_LENGTH, SEC_C_PIN2_CODE_MAX_LENGTH, ESecUiAlphaNotSupported | ESecUiCancelSupported |
1614 | secCodeType); |
1618 | secCodeType); |
1615 RDEBUG("aNewPassword", 0); |
1619 RDEBUG("aNewPassword", 0); |
1616 RDEBUGSTR(aNewPassword); |
1620 RDEBUGSTR(aNewPassword); |
1840 // TODO ESecUiCodeEtelReqest/ESecUiNone might be useful |
1844 // TODO ESecUiCodeEtelReqest/ESecUiNone might be useful |
1841 // TODO also support Emergency |
1845 // TODO also support Emergency |
1842 |
1846 |
1843 TBuf<0x100> title; |
1847 TBuf<0x100> title; |
1844 title.Zero(); |
1848 title.Zero(); |
1845 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("UPuk1RequiredL")); |
1849 HBufC* stringHolder = HbTextResolverSymbian::LoadLC(_L("txt_pin_code_dialog_puk_code")); |
1846 title.Append(stringHolder->Des()); |
1850 title.Append(stringHolder->Des()); |
1847 CleanupStack::PopAndDestroy(stringHolder); |
1851 CleanupStack::PopAndDestroy(stringHolder); |
1848 title.Append(_L("$")); |
1852 title.Append(_L("$")); |
1849 title.AppendNum(codeInfo.iRemainingEntryAttempts); |
1853 title.AppendNum(codeInfo.iRemainingEntryAttempts); |
1850 queryAccepted = iSecQueryUi->SecQueryDialog(title, iSecUi_password, SEC_C_PUK_CODE_MIN_LENGTH, SEC_C_PUK_CODE_MAX_LENGTH, ESecUiAlphaNotSupported |
1854 queryAccepted = iSecQueryUi->SecQueryDialog(title, iSecUi_password, SEC_C_PUK_CODE_MIN_LENGTH, SEC_C_PUK_CODE_MAX_LENGTH, ESecUiAlphaNotSupported |