diff -r 558113899881 -r b3425bf29f82 classicui_pub/tsrc/bc/apps/S60_SDK3.0/bctestcmdlg/src/bctestmemselitem.cpp --- a/classicui_pub/tsrc/bc/apps/S60_SDK3.0/bctestcmdlg/src/bctestmemselitem.cpp Mon May 03 12:45:33 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,190 +0,0 @@ -/* -* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: test case -* -*/ - - - - - - - - - -#include -#include -#include -#include -#include - -#include "BCTestMemSelItem.h" -#include "BCTestCmDlg.hrh" -#include "streamlogger.h" -#include "CVRSettingsDialogMMCSupported.h" - -// ======== MEMBER FUNCTIONS ======== - -const TInt KItemPosition = 5;// Menu position of the test item - -// --------------------------------------------------------------------------- -// Symbian 2nd static Constructor -// --------------------------------------------------------------------------- -// -CBCTestMemSelSettingItem* CBCTestMemSelSettingItem::NewL() - { - CBCTestMemSelSettingItem* self = new( ELeave ) CBCTestMemSelSettingItem(); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - return self; - } - -// --------------------------------------------------------------------------- -// C++ default constructor -// --------------------------------------------------------------------------- -// -CBCTestMemSelSettingItem::CBCTestMemSelSettingItem():iItem(NULL) - { - } - -// --------------------------------------------------------------------------- -// Destructor -// --------------------------------------------------------------------------- -// -CBCTestMemSelSettingItem::~CBCTestMemSelSettingItem() - { - Teardown(); - } - -// --------------------------------------------------------------------------- -// Symbian 2nd Constructor -// --------------------------------------------------------------------------- -// -void CBCTestMemSelSettingItem::ConstructL() - { - BuildScriptL(); - } - -// --------------------------------------------------------------------------- -// CBCTestMemSelSettingItem::BuildScriptL -// --------------------------------------------------------------------------- -// -void CBCTestMemSelSettingItem::BuildScriptL() - { - AddTestL( DELAY(1), TEND); - - // Add script as your need. - for(int i=0; iCompleteConstructionL(); - AssertTrueL(ETrue, _L("complete construction")); - } - -void CBCTestMemSelSettingItem::TestEditL() - { - CVRSettingsDialog* settingsDlg = CVRSettingsDialog::NewL(); - settingsDlg->ExecuteLD( R_VR_SETTINGS_DIALOG ); - } - -void CBCTestMemSelSettingItem::TestStoreL() - { - iItem = new (ELeave) CAknMemorySelectionSettingItem(0, iMemory); - iItem->StoreL(); - AssertTrueL(ETrue, _L("store")); - iItem->LoadL(); - AssertTrueL(ETrue, _L("laod")); - } - -void CBCTestMemSelSettingItem::TestSettingL() - { - iItem = new (ELeave) CAknMemorySelectionSettingItem(0, iMemory); - TFileName text(iItem->SettingTextL()); - text.ZeroTerminate(); - AssertTrueL(ETrue, text); - } - -void CBCTestMemSelSettingItem::SetupL() - { - iMemory = CAknMemorySelectionDialog::EPhoneMemory; - } - - -