equal
deleted
inserted
replaced
3990 |
3990 |
3991 ------------------------------------------------------------------------------- |
3991 ------------------------------------------------------------------------------- |
3992 */ |
3992 */ |
3993 CMenu* CTestSetMenu::SelectL( TKeyCode aSelection, TBool& aContinue ) |
3993 CMenu* CTestSetMenu::SelectL( TKeyCode aSelection, TBool& aContinue ) |
3994 { |
3994 { |
3995 TBuf<32> currSetName; |
3995 |
3996 MapKeyCode(aSelection); |
3996 MapKeyCode(aSelection); |
3997 |
3997 |
3998 if( ( aSelection != EKeyRightArrow ) && |
3998 if( ( aSelection != EKeyRightArrow ) && |
3999 ( aSelection != EKeyEnter ) ) |
3999 ( aSelection != EKeyEnter ) ) |
4000 { |
4000 { |
4062 iTestSetName ); |
4062 iTestSetName ); |
4063 |
4063 |
4064 |
4064 |
4065 return iSubMenu; |
4065 return iSubMenu; |
4066 case ESetSave: |
4066 case ESetSave: |
4067 // during the save operation default set name (ConsoleUI.set) is replaced with |
|
4068 // new name created base on current date. |
|
4069 // Set is the reloaded to make sure that |
|
4070 // old test set with default name will not affect test execution |
|
4071 currSetName.Copy( iTestSetName ); |
|
4072 ret = iMain->UIStore().SaveTestSet2( iTestSetName ); |
4067 ret = iMain->UIStore().SaveTestSet2( iTestSetName ); |
4073 if( ret != KErrNone ) |
4068 if( ret != KErrNone ) |
4074 { |
4069 { |
4075 User::InfoPrint( _L("Test set saving failed at saving test set") ); |
4070 User::InfoPrint( _L("Test set saving failed") ); |
4076 } |
4071 } |
4077 |
|
4078 ret = iMain->UIStore().RemoveTestSet( currSetName ); |
|
4079 if( ret != KErrNone ) |
|
4080 { |
|
4081 User::InfoPrint( _L("Test set saving failed at removing old test set") ); |
|
4082 } |
|
4083 |
|
4084 ret = iMain->UIStore().LoadTestSet( iTestSetName ); |
|
4085 if( ret != KErrNone ) |
|
4086 { |
|
4087 User::InfoPrint( _L("Test set saving failed at reloding test set") ); |
|
4088 } |
|
4089 break; |
4072 break; |
4090 |
4073 |
4091 default: |
4074 default: |
4092 // case ESetStartPar: |
4075 // case ESetStartPar: |
4093 // setType = CStartedTestSet::ESetParallel; |
4076 // setType = CStartedTestSet::ESetParallel; |