# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1277306970 -10800 # Node ID 407d15c32f245c44fe81fb265b1e99223638d987 # Parent 56e9a0aaad899bb7ea84b05a63a01a7b08a73bac Revision: 201023 Kit: 2010125 diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_info/classicui_metadata/classicui_metadata.mrp --- a/classicui_info/classicui_metadata/classicui_metadata.mrp Fri Jun 11 13:54:51 2010 +0300 +++ b/classicui_info/classicui_metadata/classicui_metadata.mrp Wed Jun 23 18:29:30 2010 +0300 @@ -1,19 +1,3 @@ -# -# Copyright (c) 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: -# - component classicui_metadata source \sf\mw\classicui\classicui_info\classicui_metadata source \sf\mw\classicui\package_definition.xml diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/bwins/testdomcfdfilterfactoryu.def --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/bwins/testdomcfdfilterfactoryu.def Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -EXPORTS - ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &) - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/conf/tctestdomcfdfilterfactory.cfg --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/conf/tctestdomcfdfilterfactory.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -[Test] -title CreateAttributeFilterLC -run testscripter c:\testframework\ui_testdomcfdfilterfactory.cfg 1 -[Endtest] - - -[Test] -title CreateFilenameFilterLC -run testscripter c:\testframework\ui_testdomcfdfilterfactory.cfg 2 -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/conf/ui_testdomcfdfilterfactory.cfg --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/conf/ui_testdomcfdfilterfactory.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -[Test] -title CreateAttributeFilterLC -create testdomcfdfilterfactory test -test TestFFFCreateAttributeFilterLC -delete test -[Endtest] - - -[Test] -title CreateFilenameFilterLC -create testdomcfdfilterfactory test -test TestFFFCreateFilenameFilterLC -delete test -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/data/testdomcfdfilterfactory.rss --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/data/testdomcfdfilterfactory.rss Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/* -* Copyright (c) 2008 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: Resource definitions for project testsdkcfdfilerfactory - * -*/ - - -NAME TEST - -#include -#include -#include - -RESOURCE RSS_SIGNATURE - { - } -RESOURCE TBUF - { - buf = ""; - } - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/eabi/testdomcfdfilterfactoryu.def --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/eabi/testdomcfdfilterfactoryu.def Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -EXPORTS - _Z9LibEntryLR13CTestModuleIf @ 1 NONAME - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/bld.inf --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/bld.inf Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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: ?Description -* -*/ - - - -PRJ_PLATFORMS -DEFAULT - - -PRJ_EXPORTS - - -PRJ_TESTMMPFILES -testdomcfdfilterfactory.mmp - -PRJ_MMPFILES - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/testdomcfdfilterfactory.mmp --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/testdomcfdfilterfactory.mmp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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: the mmp file for the testing -* -*/ - - -#include -#ifdef SBSV2 - #include -#else // SBSV2 not defined - #include -#endif // SBSV2 - -TARGET testdomcfdfilterfactory.dll -TARGETTYPE dll -UID 0x1000008D 0x2001CB80 - -CAPABILITY ALL -TCB - -DEFFILE testdomcfdfilterfactory.def - -#ifdef SBSV2 - - USERINCLUDE ../inc - - MW_LAYER_SYSTEMINCLUDE - - SOURCEPATH ../data - START RESOURCE testdomcfdfilterfactory.rss - HEADER - TARGETPATH RESOURCE_FILES_DIR - LANGUAGE_IDS - END - - SOURCEPATH ../src - -#else // SBSV2 not defined - -USERINCLUDE ../inc - -MW_LAYER_SYSTEMINCLUDE - -SOURCEPATH ../data - START RESOURCE testdomcfdfilterfactory.rss - HEADER - TARGETPATH RESOURCE_FILES_DIR - LANGUAGE_IDS - END - -SOURCEPATH ../src -#endif // SBSV2 - -SOURCE testdomcfdfilterfactory.cpp -SOURCE testdomcfdfilterfactoryblocks.cpp - -LIBRARY euser.lib -LIBRARY stiftestinterface.lib -LIBRARY stiftestengine.lib -LIBRARY bafl.lib -LIBRARY cone.lib -LIBRARY CommonDialogs.lib - -LANG SC - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/testdomcfdfilterfactory.pkg --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/testdomcfdfilterfactory.pkg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -; -; Copyright (c) 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: -; -; Languages -&EN - -; Header -#{"testdomcfdfilterfactory"}, (0x2001CB80), 1, 0, 0, TYPE=SA -; ?remembers replacing "your uid3" with your uid3, and deletes this line - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -;Copying ordinary file (not language dependent) to fixed drive drive. - -"..\init\testdomcfdfilterfactory.ini"-"c:\Testframework\testdomcfdfilterfactory.ini", FF ; FF stands for Normal file -"..\conf\tctestdomcfdfilterfactory.cfg"-"c:\Testframework\tctestdomcfdfilterfactory.cfg", FF ; FF stands for Normal file -"..\conf\ui_testdomcfdfilterfactory.cfg"-"c:\Testframework\ui_testdomcfdfilterfactory.cfg", FF ; FF stands for Normal file -; ?adds your cfg file if need - -"\epoc32\RELEASE\ARMV5\urel\testdomcfdfilterfactory.dll"-"c:\sys\bin\testdomcfdfilterfactory.dll", FF - -; ?deletes this line, and deletes the follow line if you have not any resource -"\epoc32\data\Z\resource\testdomcfdfilterfactory.rsc"-"c:\resource\testdomcfdfilterfactory.rsc", FF - - -; Trim For Mms -; ------------ -; to be added later diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/inc/testdomcfdfilterfactory.h --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/inc/testdomcfdfilterfactory.h Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,116 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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: for testing the cfd filer factory module -* -*/ - - - -#ifndef C_TESTDOMCFDFILTERFACTORY_H -#define C_TESTDOMCFDFILTERFACTORY_H - -// INCLUDES -#include -#include -#include -#include - -// MACROS -#define TEST_CLASS_VERSION_MAJOR 0 -#define TEST_CLASS_VERSION_MINOR 0 -#define TEST_CLASS_VERSION_BUILD 0 - -// Logging path -_LIT( KtestdomcfdfilterfactoryLogPath, "\\logs\\testframework\\testdomcfdfilterfactory\\" ); -// Log file -_LIT( KtestdomcfdfilterfactoryLogFile, "testdomcfdfilterfactory.txt" ); -_LIT( KtestdomcfdfilterfactoryLogFileWithTitle, "testdomcfdfilterfactory_[%S].txt" ); - -/** -* Ctestdomcfdfilterfactory test class for STIF Test Framework TestScripter. -* @since S60 5.0 -*/ -NONSHARABLE_CLASS( CTestDOMCFDFilterFactory ) : public CScriptBase - { -public: // Constructors and destructor - - /** - * Two-phased constructor. - */ - static CTestDOMCFDFilterFactory* NewL( CTestModuleIf& aTestModuleIf ); - - /** - * Destructor. - */ - virtual ~CTestDOMCFDFilterFactory(); - -public: // Functions from base classes - - /** - * From CScriptBase Runs a script line. - * @since S60 5.0 - * @param aItem Script line containing method name and parameters - * @return Symbian OS error code - */ - virtual TInt RunMethodL( CStifItemParser& aItem ); - -private: - - /** - * C++ default constructor. - */ - CTestDOMCFDFilterFactory( CTestModuleIf& aTestModuleIf ); - - /** - * By default Symbian 2nd phase constructor is private. - */ - void ConstructL(); - - - /** - * Method used to log version of test class - */ - void SendTestClassVersion(); - -private: //test the AknFileFilterFactory.h - /** - * TestFFFCreateAttributeFilterLC test method. - * @since S60 5.0 - * @param aItem Script line containing parameters. - * @return Symbian OS error code. - */ - virtual TInt TestFFFCreateAttributeFilterLC( CStifItemParser& aItem ); - - /** - * TestFFFCreateFilenameFilterLC test method. - * @since S60 5.0 - * @param aItem Script line containing parameters. - * @return Symbian OS error code. - */ - virtual TInt TestFFFCreateFilenameFilterLC( CStifItemParser& aItem ); - -private: // Data - - /** - * ScreenSaver Property - */ - TInt iOldScreenSaverProperty; - // Resource file offset - TInt iOffset; - - }; - -#endif // C_TESTDOMCFDFILTERFACTORY_H - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/init/testdomcfdfilterfactory.ini --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/init/testdomcfdfilterfactory.ini Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,181 +0,0 @@ -# -# This is STIFTestFramework initialization file -# Comment lines start with '#'-character. -# See STIF TestFramework users guide.doc for instructions - -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -# Set following test engine settings: -# - Set Test Reporting mode. TestReportMode's possible values are: -# + 'Summary': Summary of the tested test cases. -# + 'Environment': Hardware and software info. -# + 'TestCases': Test case report. -# + 'FullReport': Set of all above ones. -# + Example 'TestReportMode= Summary TestCases' -# -# - CreateTestReport setting controls report creation mode -# + YES, Test report will created. -# + NO, No Test report. -# -# - File path indicates the base path of the test report. -# - File name indicates the name of the test report. -# -# - File format indicates the type of the test report. -# + TXT, Test report file will be txt type, for example 'TestReport.txt'. -# + HTML, Test report will be html type, for example 'TestReport.html'. -# -# - File output indicates output source of the test report. -# + FILE, Test report logging to file. -# + RDEBUG, Test report logging to using rdebug. -# -# - File Creation Mode indicates test report overwriting if file exist. -# + OVERWRITE, Overwrites if the Test report file exist. -# + APPEND, Continue logging after the old Test report information if -# report exist. - -[Engine_Defaults] - -TestReportMode= FullReport # Possible values are: - # 'Summary', 'Environment', 'TestCases' or 'FullReport' - -CreateTestReport= YES # Possible values: YES or NO - -TestReportFilePath= C:\LOGS\TestFramework\ -TestReportFileName= TestReport - -TestReportFormat= TXT # Possible values: TXT or HTML -TestReportOutput= FILE # Possible values: FILE or RDEBUG -TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND -UITestingSupport= Yes -SeparateProcesses= YES -[End_Defaults] -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - - - -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -# Module configurations start -# Modules are added between module tags -# tags. Module name is specified after ModuleName= tag, like -# ModuleName= testdomcfdfilterfactorytestdomcfdfilterfactorytestdomcfdfilterfactory -# Modules might have initialisation file, specified as -# IniFile= YYYYYY -# Modules might have several configuration files, like -# TestCaseFile= NormalCases.txt -# TestCaseFile= SmokeCases.txt -# TestCaseFile= ManualCases.txt - -# (TestCaseFile is synonym for old term ConfigFile) - -# Following case specifies demo module settings. Demo module -# does not read any settings from file, so tags -# IniFile and TestCaseFile are not used. -# In the simplest case it is enough to specify only the -# name of the test module when adding new test module - -[New_Module] -ModuleName= testcombiner -TestCaseFile= c:\testframework\tctestdomcfdfilterfactory.cfg -[End_Module] - -#[New_Module] -#ModuleName= testscripter -#TestCaseFile= c:\testframework\ui_testdomcfdfilterfactory.cfg -#[End_Module] - -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - -#Load testmoduletestdomcfdfilterfactory, optionally with initialization file and/or test case files -#[New_Module] -#ModuleName= testmodulexxx - -#TestModuletestdomcfdfilterfactory used initialization file -#IniFile= init.txt - -#TestModuletestdomcfdfilterfactory used configuration file(s) -#TestCaseFile= testcases1.cfg -#TestCaseFile= testcases2.cfg -#TestCaseFile= manualtestcases.cfg - -#[End_Module] -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - - - -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -# Set STIFTestFramework logging overwrite parameters for Logger. -# Hardware and emulator environment logging path and styles can -# be configured from here to overwrite the Logger's implemented values. -# -# Settings description: -# - Indicates option for creation log directory/directories. If log directory/directories -# is/are not created by user they will make by software. -# + YES, Create log directory/directories if not allready exist. -# + NO, Log directory/directories not created. Only created one is used. -# -# - Overwrite emulator path setting. -# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined -# Logger's path 'D:\\LOGS\\Module\\' with those definition the path -# will be 'C:\LOGS\TestFramework\LOGS\Module\' -# -# - Overwrite emulator's logging format. -# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. -# + HTML, Log file(s) will be html type(s), for example 'Module.html'. -# -# - Overwrited emulator logging output source. -# + FILE, Logging to file(s). -# + RDEBUG, Logging to using rdebug(s). -# -# - Overwrite hardware path setting (Same description as above in emulator path). -# - Overwrite hardware's logging format(Same description as above in emulator format). -# - Overwrite hardware's logging output source(Same description as above in emulator output). -# -# - File Creation Mode indicates file overwriting if file exist. -# + OVERWRITE, Overwrites if file(s) exist. -# + APPEND, Continue logging after the old logging information if file(s) exist. -# -# - Will thread id include to the log filename. -# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. -# + NO, No thread id to log file(s), Example filename 'Module.txt'. -# -# - Will time stamps include the to log file. -# + YES, Time stamp added to each line in log file(s). Time stamp is -# for example'12.Nov.2003 115958 LOGGING INFO' -# + NO, No time stamp(s). -# -# - Will line breaks include to the log file. -# + YES, Each logging event includes line break and next log event is in own line. -# + NO, No line break(s). -# -# - Will event ranking include to the log file. -# + YES, Event ranking number added to each line in log file(s). Ranking number -# depends on environment's tics, for example(includes time stamp also) -# '012 12.Nov.2003 115958 LOGGING INFO' -# + NO, No event ranking. -# - -[Logger_Defaults] - -#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' - -CreateLogDirectories= YES # Possible values: YES or NO - -EmulatorBasePath= C:\LOGS\TestFramework\ -EmulatorFormat= HTML # Possible values: TXT or HTML -EmulatorOutput= FILE # Possible values: FILE or RDEBUG - -#HardwareBasePath= D:\LOGS\TestFramework\ -#HardwareFormat= HTML # Possible values: TXT or HTML -#HardwareOutput= FILE # Possible values: FILE or RDEBUG - -FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND - -#ThreadIdToLogFile= YES # Possible values: YES or NO -#WithTimeStamp= YES # Possible values: YES or NO -#WithLineBreak= YES # Possible values: YES or NO -#WithEventRanking= YES # Possible values: YES or NO - -[End_Logger_Defaults] -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - -# End of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/src/testdomcfdfilterfactory.cpp --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/src/testdomcfdfilterfactory.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,158 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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: for testing the cfd filer factory module -* -*/ - - - -// INCLUDE FILES -#include -#include -#include -#include - -#include "testdomcfdfilterfactory.h" - -// CONSTANTS -_LIT( KModuleName, "testdomcfdfilterfactory.dll" ); - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// Ctestdomcfdfilterfactory::Ctestdomcfdfilterfactory -// C++ default constructor can NOT contain any code, that -// might leave. -// ----------------------------------------------------------------------------- -// -CTestDOMCFDFilterFactory::CTestDOMCFDFilterFactory( CTestModuleIf& aTestModuleIf ): - CScriptBase( aTestModuleIf ) - { - } - -// ----------------------------------------------------------------------------- -// Ctestdomcfdfilterfactory::~Ctestdomcfdfilterfactory -// Destructor. -// ----------------------------------------------------------------------------- -// -CTestDOMCFDFilterFactory::~CTestDOMCFDFilterFactory() - { - // Delete logger - delete iLog; - - CCoeEnv::Static()->DeleteResourceFile( iOffset ); - } - -// ----------------------------------------------------------------------------- -// Ctestdomcfdfilterfactory::ConstructL -// Symbian 2nd phase constructor can leave. -// ----------------------------------------------------------------------------- -// -void CTestDOMCFDFilterFactory::ConstructL() - { - //Read logger settings to check whether test case name is to be - //appended to log file name. - RSettingServer settingServer; - CleanupClosePushL( settingServer ); - TInt ret = settingServer.Connect(); - if ( ret != KErrNone ) - { - User::Leave(ret); - } - // Struct to StifLogger settigs. - TLoggerSettings loggerSettings; - // Parse StifLogger defaults from STIF initialization file. - ret = settingServer.GetLoggerSettings( loggerSettings ); - if ( ret != KErrNone ) - { - User::Leave( ret ); - } - // Close Setting server session - settingServer.Close(); - CleanupStack::PopAndDestroy( &settingServer ); - - TFileName logFileName; - - if ( loggerSettings.iAddTestCaseTitle ) - { - TName title; - TestModuleIf().GetTestCaseTitleL( title ); - logFileName.Format( KtestdomcfdfilterfactoryLogFileWithTitle, &title ); - } - else - { - logFileName.Copy( KtestdomcfdfilterfactoryLogFile ); - } - - iLog = CStifLogger::NewL( KtestdomcfdfilterfactoryLogPath, - logFileName, - CStifLogger::ETxt, - CStifLogger::EFile, - EFalse ); - - SendTestClassVersion(); - // Load resource file. - iOffset = CCoeEnv::Static()->AddResourceFileL( _L( "c:\\resource\\testdomcfdfilterfactory.rsc" ) ); - } - -// ----------------------------------------------------------------------------- -// Ctestdomcfdfilterfactory::NewL -// Two-phased constructor. -// ----------------------------------------------------------------------------- -// -CTestDOMCFDFilterFactory* CTestDOMCFDFilterFactory::NewL( CTestModuleIf& aTestModuleIf ) - { - CTestDOMCFDFilterFactory* self = new( ELeave ) CTestDOMCFDFilterFactory( aTestModuleIf ); - - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - - return self; - - } - -//----------------------------------------------------------------------------- -// Ctestdomcfdfilterfactory::SendTestClassVersion -// Method used to send version of test class -//----------------------------------------------------------------------------- -// -void CTestDOMCFDFilterFactory::SendTestClassVersion() - { - TVersion moduleVersion; - moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; - moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; - moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; - - TFileName moduleName; - moduleName = KModuleName; - - TBool newVersionOfMethod = ETrue; - TestModuleIf().SendTestModuleVersion( moduleVersion, moduleName, - newVersionOfMethod ); - } - -// ========================== OTHER EXPORTED FUNCTIONS ========================= - -// ----------------------------------------------------------------------------- -// LibEntryL is a polymorphic Dll entry point. -// Returns: CScriptBase: New CScriptBase derived object -// ----------------------------------------------------------------------------- -// -EXPORT_C CScriptBase* LibEntryL( - CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework - { - return ( CScriptBase* ) CTestDOMCFDFilterFactory::NewL( aTestModuleIf ); - } -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/common_file_dialogs_filter_factory_api/tsrc/src/testdomcfdfilterfactoryblocks.cpp --- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/src/testdomcfdfilterfactoryblocks.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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: for testing the cfd filer factory module -* -*/ - - - -// [INCLUDE FILES] -#include -#include -#include -#include -#include -#include -#include - -#include "testdomcfdfilterfactory.h" - - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// Ctestdomcfdfilterfactory::RunMethodL -// Run specified method. Contains also table of test mothods and their names. -// ----------------------------------------------------------------------------- -// -TInt CTestDOMCFDFilterFactory::RunMethodL( CStifItemParser& aItem ) - { - - static TStifFunctionInfo const KFunctions[] = - { - // First string is the function name used in TestScripter script file. - // Second is the actual implementation member function. - ENTRY( "TestFFFCreateAttributeFilterLC", - CTestDOMCFDFilterFactory::TestFFFCreateAttributeFilterLC ), - ENTRY( "TestFFFCreateFilenameFilterLC", - CTestDOMCFDFilterFactory::TestFFFCreateFilenameFilterLC ), - - // [test cases entries] - - }; - - const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); - - return RunInternalL( KFunctions, count, aItem ); - - } - -// ----------------------------------------------------------------------------- -// CTestDOMCFDFilterFactory::TestFFFCreateAttributeFilterLC -// ----------------------------------------------------------------------------- -// -TInt CTestDOMCFDFilterFactory::TestFFFCreateAttributeFilterLC( CStifItemParser& /*aItem*/ ) - { - - // Print to UI - _LIT( Ktestdomcfdfilterfactory, "testdomcfdfilterfactory" ); - _LIT( KTestFFFCreateAttributeFilterLC, "In TestFFFCreateAttributeFilterLC" ); - TestModuleIf().Printf( 0, Ktestdomcfdfilterfactory, KTestFFFCreateAttributeFilterLC ); - // Print to log file - iLog->Log( KTestFFFCreateAttributeFilterLC ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestDOMCFDFilterFactory::TestFFFCreateFilenameFilterLC -// ----------------------------------------------------------------------------- -// -TInt CTestDOMCFDFilterFactory::TestFFFCreateFilenameFilterLC( CStifItemParser& /*aItem*/ ) - { - - // Print to UI - _LIT( Ktestdomcfdfilterfactory, "testdomcfdfilterfactory" ); - _LIT( KTestFFFCreateFilenameFilterLC, "In TestFFFCreateFilenameFilterLC" ); - TestModuleIf().Printf( 0, Ktestdomcfdfilterfactory, KTestFFFCreateFilenameFilterLC ); - // Print to log file - iLog->Log( KTestFFFCreateFilenameFilterLC ); - - return KErrNone; - } - -// [End of File] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_plat/extended_notifiers_api/inc/AknNotifierWrapper.h --- a/classicui_plat/extended_notifiers_api/inc/AknNotifierWrapper.h Fri Jun 11 13:54:51 2010 +0300 +++ b/classicui_plat/extended_notifiers_api/inc/AknNotifierWrapper.h Wed Jun 23 18:29:30 2010 +0300 @@ -21,6 +21,7 @@ #include #include #include +#include // FORWARD DECLARATIONS class CAknNotifierMessageObserver; diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/bwins/testsdkcfdu.def --- a/classicui_pub/common_file_dialogs_api/tsrc/bwins/testsdkcfdu.def Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -EXPORTS - ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &) - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdcommondialogs.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdcommondialogs.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,199 +0,0 @@ -[Test] -title TestCDRunSelectDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 2 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSelectDlgLDFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 3 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSelectDlgLDTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 4 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSelectDlgLDFileId -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 5 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunMoveDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 6 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunMoveDlgLDFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 7 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunMoveDlgLDTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 8 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunMoveDlgLDFileId -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 9 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSaveDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 10 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSaveDlgLDFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 11 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSaveDlgLDTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 12 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSaveDlgLDFileId -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 13 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSaveDlgLDIdTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 14 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSaveDlgNoDirectorySelectionLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 15 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSaveDlgNoDirectorySelectionLDTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 16 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunCopyDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 17 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunCopyDlgLDFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 18 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunCopyDlgLDFileId -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 19 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 1 -[Endtest] - -[Test] -title TestCDRunSelectDlgLDFolder -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 20 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 28 -[Endtest] - -[Test] -title TestCDRunSelectDlgLDFolderFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 21 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 28 -[Endtest] - -[Test] -title TestCDRunSelectDlgLDFolderTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 22 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 28 -[Endtest] - -[Test] -title TestCDRunSelectDlgLDFolderFileID -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 23 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 27 -[Endtest] - -[Test] -title TestCDRunSelectDlgLDFolderTitleFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 24 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 27 -[Endtest] - -[Test] -title TestCDRunSaveDlgLDFolderTitleFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 25 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 27 -[Endtest] - -[Test] -title TestCDRunFolderSelectDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 26 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogs.cfg 28 -[Endtest] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdcommondialogsdynmem.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdcommondialogsdynmem.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,201 +0,0 @@ -[Test] -title TestCDDMRunSelectDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 2 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSelectDlgLDFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 3 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSelectDlgLDTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 4 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSelectDlgLDFileId -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 5 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunMoveDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 6 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunMoveDlgLDFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 7 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunMoveDlgLDTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 8 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunMoveDlgLDFileId -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 9 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSaveDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 10 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSaveDlgLDFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 11 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSaveDlgLDTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 12 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSaveDlgLDFileId -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 13 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSaveDlgLDIdTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 14 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSaveDlgNoDirectorySelectionLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 15 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSaveDlgNoDirectorySelectionLDTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 16 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunCopyDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 17 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunCopyDlgLDFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 18 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunCopyDlgLDFileId -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 19 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 1 -[Endtest] - -[Test] -title TestCDDMRunSelectDlgLDFolder -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 20 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 28 - -[Endtest] - -[Test] -title TestCDDMRunSelectDlgLDFolderFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 21 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 28 -[Endtest] - -[Test] -title TestCDDMRunSelectDlgLDFolderTitle -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 22 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 28 -[Endtest] - -[Test] -title TestCDDMRunSelectDlgLDFolderFileID -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 23 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 27 -[Endtest] - -[Test] -title TestCDDMRunSelectDlgLDFolderTitleFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 24 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 27 -[Endtest] - -[Test] -title TestCDDMRunSaveDlgLDFolderTitleFilter -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 25 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 27 -[Endtest] - -[Test] -title TestCDDMRunFolderSelectDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 26 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg 28 -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdfilenamepromptdialog.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdfilenamepromptdialog.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ - -[Test] -title CreateFileNamePromptDialog -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 2 -[Endtest] - -[Test] -title ShowFileNamePromptDialog -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 3 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 1 -[Endtest] - - -[Test] -title QuikCreate FNPD -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 4 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 1 -[Endtest] - - -[Test] -title QuikCreate FNPD with title -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 5 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 1 -[Endtest] - - -[Test] -title QuikCreate FNPD with resource -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 6 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 1 -[Endtest] - - -[Test] -title Setting Test For FNPD -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 7 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 1 -[Endtest] - - - -[Test] -title Setting observer test For FNPD -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 8 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg 1 -[Endtest] \ No newline at end of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdfileselectiondialog.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdfileselectiondialog.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,81 +0,0 @@ - -[Test] -title ExcuteFileDialog -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 11 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 7 -[Endtest] - - -[Test] -title ExcuteFileDialog -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 11 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 9 -[Endtest] - - - -[Test] -title ExcuteResFileDialog -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 12 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 1 -[Endtest] - - -[Test] -title RunDlgFileDialog -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 13 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 8 -[Endtest] - - -[Test] -title RunDlgTitleFileDialog -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 14 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 1 -[Endtest] - - -[Test] -title RunDlgResFileDialog -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 15 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 1 -[Endtest] - - -[Test] -title Test FSD Setting -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 16 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 9 -[Endtest] - - -[Test] -title Test FSD Add OBserver -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 17 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 1 -[Endtest] - - -[Test] -title Test FSD Add Filter -// CreateFileDialog -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 18 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdfileselectiondialog.cfg 1 -[Endtest] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectiondialog.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectiondialog.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,93 +0,0 @@ -[Test] -title TestMSDNewL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 2 -[Endtest] - -[Test] -title TestMSDNewWithResourceL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 3 -[Endtest] - -[Test] -title TestMSDNewWithMediaL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 4 -[Endtest] - -[Test] -title TestMSDSetTitleL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 5 -[Endtest] - -[Test] -title TestMSDSetLeftSoftkeyL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 6 -[Endtest] - -[Test] -title TestMSDSetRightSoftkeyL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 7 -[Endtest] - -[Test] -title TestMSDSetObserverL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 8 -[Endtest] - -[Test] -title TestMSDExecuteL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 9 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 1 -[Endtest] - -[Test] -title TestMSDExecuteLDefaultFolderL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 10 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 1 -[Endtest] - -[Test] -title TestMSDRunDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 11 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 1 -[Endtest] - -[Test] -title TestMSDRunDlgLDTitleL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 12 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 1 -[Endtest] - -[Test] -title TestMSDRunDlgLDResourceL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 13 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 1 -[Endtest] - -[Test] -title TestMSDGetItemL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 14 -[Endtest] - -[Test] -title TestMSDGetMemoriesL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg 15 -[Endtest] \ No newline at end of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectiondialogmulti.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectiondialogmulti.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,93 +0,0 @@ -[Test] -title TestMSDMDNewL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 2 -[Endtest] - -[Test] -title TestMSDMDNewWithResourceL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 3 -[Endtest] - -[Test] -title TestMSDMDNewWithMediaL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 4 -[Endtest] - -[Test] -title TestMSDMDSetTitleL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 5 -[Endtest] - -[Test] -title TestMSDMDSetLeftSoftkeyL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 6 -[Endtest] - -[Test] -title TestMSDMDSetRightSoftkeyL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 7 -[Endtest] - -[Test] -title TestMSDMDExecuteL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 8 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 1 -[Endtest] - -[Test] -title TestMSDMDExecuteLDefaultFolderL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 9 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 1 -[Endtest] - -[Test] -title TestMSDMDRunDlgLD -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 10 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 1 -[Endtest] - -[Test] -title TestMSDMDRunDlgLDTitleL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 11 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 1 -[Endtest] - -[Test] -title TestMSDMDRunDlgLDResourceL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 12 -// Press Key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 1 -[Endtest] - -[Test] -title TestMSDMDGetItemL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 13 -[Endtest] - -[Test] -title TestMSDMDAddDrivePathsL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 14 -[Endtest] - -[Test] -title TestMSDMDFindIndexByDriveL -// Show dialog -run testscripter c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg 15 -[Endtest] \ No newline at end of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingitem.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingitem.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -[Test] -title settingitem -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingitem.cfg 2 -//Press key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingitem.cfg 1 -[Endtest] \ No newline at end of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingitemmulti.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingitemmulti.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -[Test] -title settingitemmultidrive -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingitemmulti.cfg 2 -//Press key -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingitemmulti.cfg 1 -[Endtest] \ No newline at end of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingpage.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingpage.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -[Test] -title newlnopara -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 3 -[Endtest] - -[Test] -title newl -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 4 -[Endtest] -[Test] -title deconstruction -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 5 -[Endtest] - -[Test] -title excuteselection -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 6 -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 2 -[Endtest] - -[Test] -title excute cancel -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 7 -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 1 -[Endtest] - -[Test] -title excute ok -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 8 -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 2 -[Endtest] - -[Test] -title rundlg cancel -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 9 -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 1 -[Endtest] - - -[Test] -title rundlg2 cancel -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 10 -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 1 -[Endtest] - - -[Test] -title rundlg3 cancel -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 11 -run testscripter c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg 1 -[Endtest] \ No newline at end of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdcommondialogs.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdcommondialogs.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,412 +0,0 @@ -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -//----------------------------------------------------------------------------------// -//----------------------------AknCommonDialogs.h------------------------------------// -//----------------------------------------------------------------------------------// -// Test AknCommonDialogs.h -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLD#2 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLDFilter#3 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLDFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLDTitle#4 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLDTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLDFileId#5 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLDFileId -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunMoveDlgLD( -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunMoveDlgLD#6 -create testsdkcfd test -bringtoforeground -test TestCDRunMoveDlgLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunMoveDlgLD( -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunMoveDlgLDFilter#7 -create testsdkcfd test -bringtoforeground -test TestCDRunMoveDlgLDFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunMoveDlgLD( -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunMoveDlgLDTitle#8 -create testsdkcfd test -bringtoforeground -test TestCDRunMoveDlgLDTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunMoveDlgLD( -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunMoveDlgLDFileId#9 -create testsdkcfd test -bringtoforeground -test TestCDRunMoveDlgLDFileId -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSaveDlgLD#10 -create testsdkcfd test -bringtoforeground -test TestCDRunSaveDlgLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSaveDlgLDFilter#11 -create testsdkcfd test -bringtoforeground -test TestCDRunSaveDlgLDFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileSelectionTitle, -// const TDesC& aFileNamePromptTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSaveDlgLDTitle#12 -create testsdkcfd test -bringtoforeground -test TestCDRunSaveDlgLDTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSaveDlgLDFileId#13 -create testsdkcfd test -bringtoforeground -test TestCDRunSaveDlgLDFileId -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// const TDesC& aFileNamePromptTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSaveDlgLDIdTitle#14 -create testsdkcfd test -bringtoforeground -test TestCDRunSaveDlgLDIdTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgNoDirectorySelectionLD( -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSaveDlgNoDirectorySelectionLD#15 -create testsdkcfd test -bringtoforeground -test TestCDRunSaveDlgNoDirectorySelectionLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgNoDirectorySelectionLD( -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileNamePromptTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSaveDlgNoDirectorySelectionLDTitle#16 -create testsdkcfd test -bringtoforeground -test TestCDRunSaveDlgNoDirectorySelectionLDTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunCopyDlgLD( -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunCopyDlgLD#17 -create testsdkcfd test -bringtoforeground -test TestCDRunCopyDlgLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunCopyDlgLD( -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunCopyDlgLDFilter#18 -create testsdkcfd test -bringtoforeground -test TestCDRunCopyDlgLDFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunCopyDlgLD( -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunCopyDlgLDFileId#19 -create testsdkcfd test -bringtoforeground -test TestCDRunCopyDlgLDFileId -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLDFolder#20 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLDFolder -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLDFolderFilter#21 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLDFolderFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLDFolderTitle#22 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLDFolderTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLDFolderFileID#23 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLDFolderFileID -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileFilter* aFilter = NULL, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSelectDlgLDFolderTitleFilter#24 -create testsdkcfd test -bringtoforeground -test TestCDRunSelectDlgLDFolderTitleFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TDes& aDefaultFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileFilter* aFilter = NULL, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunSaveDlgLDFolderTitleFilter#25 -create testsdkcfd test -bringtoforeground -test TestCDRunSaveDlgLDFolderTitleFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunFolderSelectDlgLD( -// TDes& aFolder, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileFilter* aFilter = NULL, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDRunFolderSelectDlgLD#26 -create testsdkcfd test -bringtoforeground -test TestCDRunFolderSelectDlgLD -delete test -sendtobackground -[Endtest] - -[Test] -title PressKey-Double#27 -pause 10000 -presskey global EKeyDevice1 -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -[Test] -title PressKey-Tripple#28 -pause 10000 -presskey global EKeyDevice1 -pause 10000 -presskey global EKeyDevice1 -pause 10000 -presskey global EKeyDevice1 -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdcommondialogsdynmem.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdcommondialogsdynmem.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,439 +0,0 @@ -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice1 -[Endtest] - - -//----------------------------------------------------------------------------------// -//-------------------------------AknCommonDialogsDynMem.h---------------------------// -//----------------------------------------------------------------------------------// -// Test AknCommonDialogsDynMem.h -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLD#2 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLDFilter#3 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLDFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLDTitle#4 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLDTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLDFileId#5 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLDFileId -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunMoveDlgLD( -// TInt aIncludedMedias, -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunMoveDlgLD#6 -create testsdkcfd test -bringtoforeground -test TestCDDMRunMoveDlgLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunMoveDlgLD( -// TInt aIncludedMedias, -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunMoveDlgLDFilter#7 -create testsdkcfd test -bringtoforeground -test TestCDDMRunMoveDlgLDFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunMoveDlgLD( -// TInt aIncludedMedias, -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunMoveDlgLDTitle#8 -create testsdkcfd test -bringtoforeground -test TestCDDMRunMoveDlgLDTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunMoveDlgLD( -// TInt aIncludedMedias, -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunMoveDlgLDFileId#9 -create testsdkcfd test -bringtoforeground -test TestCDDMRunMoveDlgLDFileId -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TInt aIncludedMedias, -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSaveDlgLD#10 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSaveDlgLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TInt aIncludedMedias, -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSaveDlgLDFilter#11 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSaveDlgLDFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TInt aIncludedMedias, -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileSelectionTitle, -// const TDesC& aFileNamePromptTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSaveDlgLDTitle#12 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSaveDlgLDTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TInt aIncludedMedias, -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSaveDlgLDFileId#13 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSaveDlgLDFileId -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TInt aIncludedMedias, -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// const TDesC& aFileNamePromptTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSaveDlgLDIdTitle#14 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSaveDlgLDIdTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgNoDirectorySelectionLD( -// TInt aIncludedMedias, -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSaveDlgNoDirectorySelectionLD#15 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSaveDlgNoDirectorySelectionLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgNoDirectorySelectionLD( -// TInt aIncludedMedias, -// TDes& aDefaultFileName, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileNamePromptTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSaveDlgNoDirectorySelectionLDTitle#16 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSaveDlgNoDirectorySelectionLDTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunCopyDlgLD( -// TInt aIncludedMedias, -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunCopyDlgLD#17 -create testsdkcfd test -bringtoforeground -test TestCDDMRunCopyDlgLD -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunCopyDlgLD( -// TInt aIncludedMedias, -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunCopyDlgLDFilter#18 -create testsdkcfd test -bringtoforeground -test TestCDDMRunCopyDlgLDFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunCopyDlgLD( -// TInt aIncludedMedias, -// TDes& aDirectory, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunCopyDlgLDFileId#19 -create testsdkcfd test -bringtoforeground -test TestCDDMRunCopyDlgLDFileId -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLDFolder#20 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLDFolder -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// MAknFileFilter* aFilter, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLDFolderFilter#21 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLDFolderFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLDFolderTitle#22 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLDFolderTitle -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLDFolderFileID#23 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLDFolderFileID -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileFilter* aFilter = NULL, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSelectDlgLDFolderTitleFilter#24 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSelectDlgLDFolderTitleFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunSaveDlgLD( -// TInt aIncludedMedias, -// TDes& aDefaultFileName, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileFilter* aFilter = NULL, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunSaveDlgLDFolderTitleFilter#25 -create testsdkcfd test -bringtoforeground -test TestCDDMRunSaveDlgLDFolderTitleFilter -delete test -sendtobackground -[Endtest] - -// For test function: -// IMPORT_C static TBool RunFolderSelectDlgLD( -// TInt aIncludedMedias, -// TDes& aFolder, -// const TDesC& aStartFolder, -// TInt aMemorySelectionResourceId, -// TInt aFileSelectionResourceId, -// const TDesC& aFileSelectionTitle, -// MAknFileFilter* aFilter = NULL, -// MAknFileSelectionObserver* aObserver = NULL ); -[Test] -title TestCDDMRunFolderSelectDlgLD#26 -create testsdkcfd test -bringtoforeground -test TestCDDMRunFolderSelectDlgLD -delete test -sendtobackground -[Endtest] - -[Test] -title PressKey-Double#27 -pause 10000 -presskey global EKeyDevice1 -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -[Test] -title PressKey-Tripple#28 -pause 10000 -presskey global EKeyDevice1 -pause 10000 -presskey global EKeyDevice1 -pause 10000 -presskey global EKeyDevice1 -[Endtest] - - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdfilenamepromptdialog.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdfilenamepromptdialog.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,87 +0,0 @@ -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -//----------------------------------------------------------------------------------// -//------------------------------CAknFileNamePromptDialog.h---------------------------// -//----------------------------------------------------------------------------------// - -[Test] -title CreateFileNamePromptDialog -create testsdkcfd test -test TestFNPDNewL -test TestFNPDDeleteL -delete test -[Endtest] - -[Test] -title ShowFileNamePromptDialog -create testsdkcfd test -bringtoforeground -test TestFNPDNewLWithResL -test TestFNPDExecuteL -test TestFNPDDeleteL -delete test -sendtobackground -[Endtest] - - -[Test] -title QuikCreate FNPD -bringtoforeground -create testsdkcfd test -test TestFNPDRunDlgLD -sendtobackground -delete test -[Endtest] - - -[Test] -title QuikCreate FNPD with title -create testsdkcfd test -bringtoforeground -test TestFNPDRunDlgLDWithTitleLD -sendtobackground -delete test -[Endtest] - - -[Test] -title QuikCreate FNPD with resource -create testsdkcfd test -bringtoforeground -test TestFNPDRunDlgLDWithResLD -sendtobackground -delete test -[Endtest] - - -[Test] -title Setting Test For FNPD -create testsdkcfd test -bringtoforeground -test TestFNPDNewL -test TestFNPDSetPathL -test TestFNPDSetTitleL -test TestFNPDSetLeftSoftkeyL -test TestFNPDSetRightSoftkeyL -test TestFNPDRenameL -test TestFNPDDeleteL -sendtobackground -delete test -[Endtest] - - - -[Test] -title Setting observer test For FNPD -create testsdkcfd test -bringtoforeground -test TestFNPDNewL -test TestFNPDSetObserverL -sendtobackground -delete test -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdfileselectiondialog.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdfileselectiondialog.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,164 +0,0 @@ -[Test]//1# -title PressRightSoftKey -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -[Test]//2# -title PressLeftSoftKey -pause 10000 -presskey global EKeyDevice0 -[Endtest] - -[Test]//3# -title PressRightKey -pause 10000 -presskey global EKeyRightArrow -[Endtest] - -[Test]//4# -title PressLeftKey -pause 10000 -presskey global EKeyLeftArrow -[Endtest] - -[Test]//5# -title PressUpKey -pause 10000 -presskey global EKeyUpArrow -[Endtest] - -[Test]//6# -title PressDownKey -pause 10000 -presskey global EKeyDownArrow -[Endtest] - -[Test]//7# -title PressSelectionKey -pause 10000 -presskey global EKeyDevice3 -[Endtest] - -[Test]//8# -title PressKey- -pause 10000 -presskey global EKeyDevice7 -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -[Test]//9# -title PressKey-Double -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -[Test]//10# -title PressBackUpKey -pause 10000 -presskey global EKeyDevice1 -[Endtest] - - -//----------------------------------------------------------------------------------// -//------------------------------CAknFileSelectiondialog.h---------------------------// -//----------------------------------------------------------------------------------// - -[Test]//11# -title ExcuteFileDialog -create testsdkcfd test -bringtoforeground -test TestFSDNewL -test TestFSDExecuteL -sendtobackground -test TestFSDDelete -delete test -[Endtest] - - -[Test]//12# -title ExcuteResFileDialog -create testsdkcfd test -bringtoforeground -test TestFSDNewLWithResL -test TestFSDExecuteL -test TestFSDDelete -sendtobackground -delete test -[Endtest] - - -[Test]//13# -title RunDlgFileDialog -create testsdkcfd test -bringtoforeground -test TestFSDRunDlgLD -sendtobackground -delete test -[Endtest] - - -[Test]//14# -title RunDlgTitleFileDialog -create testsdkcfd test -bringtoforeground -test TestFSDRunDlgLDWithTitleLD -sendtobackground -delete test -[Endtest] - - -[Test]//15# -title RunDlgResFileDialog -create testsdkcfd test -bringtoforeground -test TestFSDRunDlgLDWithResLD -sendtobackground -delete test -[Endtest] - - -[Test]//16# -title Test FSD Setting -create testsdkcfd test -bringtoforeground -test TestFSDNewL -test TestFSDSetDefaultFolderL -test TestFSDSetTitleL -test TestFSDSetLeftSoftkeyFileL -test TestFSDSetLeftSoftkeyFolderL -test TestFSDSetRightSoftkeyRootFolderL -test TestFSDSetRightSoftkeySubfolderL -test TestFSDExecuteL -test TestFSDDelete -sendtobackground -delete test -[Endtest] - - -[Test]//17# -title Test FSD Add OBserver -create testsdkcfd test -bringtoforeground -test TestFSDNewL -test TestFSDSetObserverL -//test FDlgExecuteL -test TestFSDDelete -sendtobackground -delete test -[Endtest] - - -[Test]//18# -title Test FSD Add Filter -create testsdkcfd test -bringtoforeground -test TestFSDNewL -test TestFSDAddFilterL -test TestFSDExecuteL -test TestFSDDelete -sendtobackground -delete test -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectiondialog.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectiondialog.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,119 +0,0 @@ -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -//----------------------------------------------------------------------------------// -//------------------------------CAknMemorySelectiondialog.h---------------------------// -//----------------------------------------------------------------------------------// - - -[Test] -title TestMSDNewL -create testsdkcfd test -test TestMSDNewL -delete test -[Endtest] - -[Test] -title TestMSDNewWithResourceL -create testsdkcfd test -test TestMSDNewWithResourceL -delete test -[Endtest] - -[Test] -title TestMSDNewWithMediaL -create testsdkcfd test -test TestMSDNewWithMediaL -delete test -[Endtest] - -[Test] -title TestMSDSetTitleL -create testsdkcfd test -test TestMSDSetTitleL -delete test -[Endtest] - -[Test] -title TestMSDSetLeftSoftkeyL -create testsdkcfd test -test TestMSDSetLeftSoftkeyL -delete test -[Endtest] - -[Test] -title TestMSDSetRightSoftkeyL -create testsdkcfd test -test TestMSDSetRightSoftkeyL -delete test -[Endtest] - -[Test] -title TestMSDSetObserverL -create testsdkcfd test -test TestMSDSetObserverL -delete test -[Endtest] - -[Test] -title TestMSDExecuteL -bringtoforeground -create testsdkcfd test -test TestMSDExecuteL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDExecuteLDefaultFolderL -bringtoforeground -create testsdkcfd test -test TestMSDExecuteLDefaultFolderL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDRunDlgLD -bringtoforeground -create testsdkcfd test -test TestMSDRunDlgLD -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDRunDlgLDTitleL -bringtoforeground -create testsdkcfd test -test TestMSDRunDlgLDTitleL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDRunDlgLDResourceL -bringtoforeground -create testsdkcfd test -test TestMSDRunDlgLDResourceL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDGetItemL -create testsdkcfd test -test TestMSDGetItemL -delete test -[Endtest] - -[Test] -title TestMSDGetMemoriesL -create testsdkcfd test -test TestMSDGetMemoriesL -delete test -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectiondialogmulti.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectiondialogmulti.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,121 +0,0 @@ -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice1 -[Endtest] - -//----------------------------------------------------------------------------------// -//-----------------------CAknMemorySelectiondialogMultiDrive.h----------------------// -//----------------------------------------------------------------------------------// - - -[Test] -title TestMSDMDNewL -create testsdkcfd test -test TestMSDMDNewL -delete test -[Endtest] - -[Test] -title TestMSDMDNewWithResourceL -create testsdkcfd test -test TestMSDMDNewWithResourceL -delete test -[Endtest] - -[Test] -title TestMSDMDNewWithMediaL -create testsdkcfd test -test TestMSDMDNewWithMediaL -delete test -[Endtest] - -[Test] -title TestMSDMDSetTitleL -create testsdkcfd test -test TestMSDMDSetTitleL -delete test -[Endtest] - -[Test] -title TestMSDMDSetLeftSoftkeyL -create testsdkcfd test -test TestMSDMDSetLeftSoftkeyL -delete test -[Endtest] - -[Test] -title TestMSDMDSetRightSoftkeyL -create testsdkcfd test -test TestMSDMDSetRightSoftkeyL -delete test -[Endtest] - -[Test] -title TestMSDMDExecuteL -bringtoforeground -create testsdkcfd test -test TestMSDMDExecuteL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDMDExecuteLDefaultFolderL -bringtoforeground -create testsdkcfd test -test TestMSDMDExecuteLDefaultFolderL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDMDRunDlgLD -bringtoforeground -create testsdkcfd test -test TestMSDMDRunDlgLD -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDMDRunDlgLDTitleL -bringtoforeground -create testsdkcfd test -test TestMSDMDRunDlgLDTitleL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDMDRunDlgLDResourceL -bringtoforeground -create testsdkcfd test -test TestMSDMDRunDlgLDResourceL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDMDGetItemL -bringtoforeground -create testsdkcfd test -test TestMSDMDGetItemL -sendtobackground -delete test -[Endtest] - -[Test] -title TestMSDMDAddDrivePathsL -create testsdkcfd test -test TestMSDMDAddDrivePathsL -delete test -[Endtest] - -[Test] -title TestMSDMDFindIndexByDriveL -create testsdkcfd test -test TestMSDMDFindIndexByDriveL -delete test -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingitem.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingitem.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice0 -[Endtest] - -//----------------------------------------------------------------------------------// -//-------------------------CAknMemorySelectionSettingItem.h-------------------------// -//----------------------------------------------------------------------------------// - -[Test] -title SettingItem -bringtoforeground -create testsdkcfd test -test TestSettingItemConstructorL -test TestSettingItemCompleteConstructionL -test TestSettingItemEditItemL -test TestSettingItemLoadL -test TestSettingItemStoreL -test TestSettingItemSettingTextL -test TestSettingItemDeconstructorL -delete test -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingitemmulti.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingitemmulti.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice0 -[Endtest] - -//----------------------------------------------------------------------------------// -//--------------------CAknMemorySelectionSettingItemMultiDrive.h--------------------// -//----------------------------------------------------------------------------------// - -[Test] -title SettingItem -bringtoforeground -create testsdkcfd test -test TestSettingItemMultiConstructorL -test TestSettingItemMultiCompleteConstructionL -test TestSettingItemMultiEditItemL -test TestSettingItemMultiLoadL -test TestSettingItemMultiStoreL -test TestSettingItemMultiSettingTextL -test TestSettingItemMultiDeconstructorL -delete test -[Endtest] - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingpage.cfg --- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingpage.cfg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,93 +0,0 @@ -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice1 -[Endtest] - - -[Test] -title PressKey -pause 10000 -presskey global EKeyDevice0 -[Endtest] - -//----------------------------------------------------------------------------------// -//-------------------------CAknMemorySelectionSettingPage.h-------------------------// -//----------------------------------------------------------------------------------// - -[Test] -title SettingPage1 -create testsdkcfd test -test TestSettingPageNewLNoParaL -delete test -[Endtest] - -[Test] -title SettingPage2 -create testsdkcfd test -test TestSettingPageNewL -delete test -[Endtest] - -[Test] -title SettingPage3 -create testsdkcfd test -test TestSettingPageDeconstructorL -sendtobackground -delete test -[Endtest] - -[Test] -title SettingPage4 -create testsdkcfd test -bringtoforeground -test TestSettingPageExecuteLOnlyMemoryTypeL 1 -sendtobackground -delete test -[Endtest] - -[Test] -title SettingPage5 -create testsdkcfd test -bringtoforeground -test TestSettingPageExecuteLOnlyMemoryTypeL 2 -sendtobackground -delete test -[Endtest] - -[Test] -title SettingPage6 -create testsdkcfd test -bringtoforeground -test TestSettingPageExecuteLOnlyMemoryTypeL 3 -sendtobackground -delete test -[Endtest] - - -[Test] -title SettingPage7 -create testsdkcfd test -bringtoforeground -test TestSettingPageRunDlgLDTwoParaL 1 -sendtobackground -delete test -[Endtest] - -[Test] -title SettingPage8 -create testsdkcfd test -bringtoforeground -test TestSettingPageRunDlgLDThreeParaL 2 -sendtobackground -delete test -[Endtest] - -[Test] -title SettingPage9 -create testsdkcfd test -bringtoforeground -test TestSettingPageRunDlgLDFiveParaL 3 -sendtobackground -delete test -[Endtest] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/data/testsdkcfd.rss --- a/classicui_pub/common_file_dialogs_api/tsrc/data/testsdkcfd.rss Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -/* -* Copyright (c) 2008 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: Resource definitions for project testsdkcfd - * -*/ - - -NAME TEST - -#include -#include -#include - -#include // enumerations -#include // resource structures - -#include "testsdkcfd.hrh" - -RESOURCE RSS_SIGNATURE - { - } -RESOURCE TBUF - { - buf = ""; - } - -// --------------------------------------------------------------------------- -// r_test_memory_selection_dialog -// --------------------------------------------------------------------------- -// -RESOURCE MEMORYSELECTIONDIALOG r_test_memory_selection_dialog - { - title = "Choose memory:"; - softkey_1 = "Accept"; - softkey_2 = "Negative"; - } - -RESOURCE AVKON_SETTING_ITEM_LIST r_settings_item_list - { - items = - { - AVKON_SETTING_ITEM - { - identifier = ETestSettingItem; - name = "test"; - } - }; - } - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/eabi/testsdkcfdu.def --- a/classicui_pub/common_file_dialogs_api/tsrc/eabi/testsdkcfdu.def Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -EXPORTS - _Z9LibEntryLR13CTestModuleIf @ 1 NONAME - _ZTI12CTestControl @ 2 NONAME ; ## - _ZTI20CTestSettingItemList @ 3 NONAME ; ## - _ZTI30CTestSettingItemListMultiDrive @ 4 NONAME ; ## - _ZTI37CTestSDKCFDMAknMemorySelectionOberver @ 5 NONAME ; ## - _ZTV12CTestControl @ 6 NONAME ; ## - _ZTV20CTestSettingItemList @ 7 NONAME ; ## - _ZTV30CTestSettingItemListMultiDrive @ 8 NONAME ; ## - _ZTV37CTestSDKCFDMAknMemorySelectionOberver @ 9 NONAME ; ## - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/group/bld.inf --- a/classicui_pub/common_file_dialogs_api/tsrc/group/bld.inf Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 Common File Dialogs -* -*/ - - - -PRJ_PLATFORMS -DEFAULT - - -PRJ_EXPORTS - -PRJ_TESTMMPFILES -testsdkcfd.mmp - -PRJ_MMPFILES - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/group/testsdkcfd.mmp --- a/classicui_pub/common_file_dialogs_api/tsrc/group/testsdkcfd.mmp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -/*TYPE TESTCLASS*//* -* Copyright (c) 2002 - 2007 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 Common File Dialogs -* -*/ - - -#include -#ifdef SBSV2 - - #include - -#else // SBSV2 not defined - - #include - -#endif // SBSV2 - -TARGET testsdkcfd.dll -TARGETTYPE dll -UID 0x1000008D 0x2001CB80 - -CAPABILITY ALL -TCB - -DEFFILE testsdkcfd.def - -#ifdef SBSV2 - USERINCLUDE ../inc - - MW_LAYER_SYSTEMINCLUDE - - SOURCEPATH ../data - START RESOURCE testsdkcfd.rss - HEADER - TARGETPATH RESOURCE_FILES_DIR - LANGUAGE_IDS - END - - SOURCEPATH ../src - -#else // SBSV2 not defined - - USERINCLUDE ../inc - - MW_LAYER_SYSTEMINCLUDE - - SOURCEPATH ../data - START RESOURCE testsdkcfd.rss - HEADER - TARGETPATH RESOURCE_FILES_DIR - LANGUAGE_IDS - END - - SOURCEPATH ../src - -#endif // SBSV2 - - -SOURCE testsdkcfd.cpp -SOURCE testsdkcfdblocks.cpp -SOURCE testsdkcfdblockscommondialogs.cpp -SOURCE testsdkcfdblockscommondialogsdynmem.cpp -SOURCE testsdkcfdblocksfilenamepromptdialog.cpp -SOURCE testsdkcfdblocksfileselectiondialog.cpp -SOURCE testsdkcfdblocksmemoryselectiondialog.cpp -SOURCE testsdkcfdblocksmemoryselectionsettingitem.cpp -SOURCE testsdkcfdblocksmemoryselectionsettingpage.cpp -SOURCE testsdkcfdcontrol.cpp -SOURCE testsdkcfdmaknmemoryselectionobserver.cpp -SOURCE testsdkcfdsettingitem.cpp -SOURCE testsdkcfdblocksmemoryselectiondialogmultidrive.cpp -SOURCE testsdkcfdblocksmemoryselectionsettingitemmultidrive.cpp -SOURCE testsdkcfdsettingitemmultidrive.cpp - -LIBRARY euser.lib -LIBRARY cone.lib -LIBRARY avkon.lib -LIBRARY eikcore.lib -LIBRARY stiftestinterface.lib -LIBRARY stiftestengine.lib -LIBRARY commondialogs.lib - -LANG SC - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/group/testsdkcfd.pkg --- a/classicui_pub/common_file_dialogs_api/tsrc/group/testsdkcfd.pkg Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +0,0 @@ -; -; Copyright (c) 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: -; - -; Languages -&EN - -; Header -#{"testsdkcfd"}, (0x2001CB80), 1, 0, 0, TYPE=SA - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -;Copying ordinary file (not language dependent) to fixed drive drive. -"..\init\testsdkcfd.ini"-"c:\Testframework\testsdkcfd.ini", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdcommondialogs.cfg"-"c:\Testframework\tctestsdkcfdcommondialogs.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdcommondialogs.cfg"-"c:\Testframework\ui_testsdkcfdcommondialogs.cfg", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdcommondialogsdynmem.cfg"-"c:\Testframework\tctestsdkcfdcommondialogsdynmem.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdcommondialogsdynmem.cfg"-"c:\Testframework\ui_testsdkcfdcommondialogsdynmem.cfg", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdfilenamepromptdialog.cfg"-"c:\Testframework\tctestsdkcfdfilenamepromptdialog.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdfilenamepromptdialog.cfg"-"c:\Testframework\ui_testsdkcfdfilenamepromptdialog.cfg", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdfileselectiondialog.cfg"-"c:\Testframework\tctestsdkcfdfileselectiondialog.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdfileselectiondialog.cfg"-"c:\Testframework\ui_testsdkcfdfileselectiondialog.cfg", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdmemoryselectiondialog.cfg"-"c:\Testframework\tctestsdkcfdmemoryselectiondialog.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdmemoryselectiondialog.cfg"-"c:\Testframework\ui_testsdkcfdmemoryselectiondialog.cfg", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdmemoryselectionsettingitem.cfg"-"c:\Testframework\tctestsdkcfdmemoryselectionsettingitem.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdmemoryselectionsettingitem.cfg"-"c:\Testframework\ui_testsdkcfdmemoryselectionsettingitem.cfg", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdmemoryselectionsettingpage.cfg"-"c:\Testframework\tctestsdkcfdmemoryselectionsettingpage.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdmemoryselectionsettingpage.cfg"-"c:\Testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdmemoryselectiondialogmulti.cfg"-"c:\Testframework\tctestsdkcfdmemoryselectiondialogmulti.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdmemoryselectiondialogmulti.cfg"-"c:\Testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg", FF ; FF stands for Normal file -"..\conf\tctestsdkcfdmemoryselectionsettingitemmulti.cfg"-"c:\Testframework\tctestsdkcfdmemoryselectionsettingitemmulti.cfg", FF ; FF stands for Normal file -"..\conf\ui_testsdkcfdmemoryselectionsettingitemmulti.cfg"-"c:\Testframework\ui_testsdkcfdmemoryselectionsettingitemmulti.cfg", FF ; FF stands for Normal file - -"\epoc32\RELEASE\ARMV5\urel\testsdkcfd.dll"-"c:\sys\bin\testsdkcfd.dll", FF - -"\epoc32\data\Z\resource\testsdkcfd.rsc"-"c:\resource\testsdkcfd.rsc", FF - - -; Trim For Mms -; ------------ -; to be added later - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfd.h --- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfd.h Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1118 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 Common File Dialogs - * -*/ - - -#ifndef C_TESTSDKCFD_H -#define C_TESTSDKCFD_H - -// INCLUDES -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "testsdkcfdcontrol.h" -#include "testsdkcfdsettingitem.h" -#include "testsdkcfdsettingitemmultidrive.h" - -// Logging path -_LIT( KtestsdkcfdLogPath, "\\logs\\testframework\\testsdkcfd\\" ); -// Log file -_LIT( KtestsdkcfdLogFile, "testsdkcfd.txt" ); -_LIT( KtestsdkcfdLogFileWithTitle, "testsdkcfd_[%S].txt" ); - -// FORWARD DECLARATIONS -class CTestSDKCFD; -class AknCommonDialogs; -class AknCommonDialogsDynMem; - -/** - * CTestSDKCFD test class for STIF Test Framework TestScripter. - * @since S60 5.0 - */ -NONSHARABLE_CLASS(CTestSDKCFD) : public CScriptBase - { -public: // Constructors and destructor - - /** - * Two-phased constructor. - */ - static CTestSDKCFD* NewL( CTestModuleIf& aTestModuleIf ); - - /** - * Destructor. - */ - virtual ~CTestSDKCFD(); - -public: // Functions from base classes - - /** - * From CScriptBase Runs a script line. - * @since ?Series60_version - * @param aItem Script line containing method name and parameters - * @return Symbian OS error code - */ - virtual TInt RunMethodL( CStifItemParser& aItem ); - -private: - - /** - * C++ default constructor. - */ - CTestSDKCFD( CTestModuleIf& aTestModuleIf ); - - /** - * By default Symbian 2nd phase constructor is private. - */ - void ConstructL(); - - /** - * Frees all resources allocated from test methods. - * @since ?Series60_version - */ - void Delete(); - -private: // Test CAknMemorySelectionDialog.h - /** - * TestMSDNewL test function for testing the NewL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDNewL(CStifItemParser& aItem); - /** - * TestMSDNewWithResourceL test function for testing the NewL function with Resource - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDNewWithResourceL(CStifItemParser& aItem); - /** - * TestMSDNewWithMediaL test function for testing the NewL function with Medias - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDNewWithMediaL(CStifItemParser& aItem); - /** - * TestMSDSetTitleL test function for testing the SetSetTitleL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDSetTitleL(CStifItemParser& aItem); - /** - * TestMSDSetLeftSoftkeyL test function for testing the LeftSoftkeyL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDSetLeftSoftkeyL(CStifItemParser& aItem); - /** - * TestMSDSetRightSoftkeyL test function for testing the SetRightSoftkeyL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDSetRightSoftkeyL(CStifItemParser& aItem); - /** - * TestMSDSetObserverL test function for testing the SetObserverL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDSetObserverL(CStifItemParser& aItem); - /** - * TestMSDExecuteL test function for testing the ExecuteL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDExecuteL(CStifItemParser& aItem); - /** - * TestMSDExecuteLDefaultFolderL test function for testing the ExecuteL function with a default folder - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDExecuteLDefaultFolderL(CStifItemParser& aItem); - /** - * TestMSDRunDlgLD test function for testing the RunDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDRunDlgLD(CStifItemParser& aItem); - /** - * TestMSDRunDlgLD test function for testing the RunDlgLD function with a title - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDRunDlgLDTitleL(CStifItemParser& aItem); - /** - * TestMSDRunDlgLD test function for testing the RunDlgLD function with a resource - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDRunDlgLDResourceL(CStifItemParser& aItem); - /** - * TestMSDGetItemL test function for testing the GetItemL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDGetItemL(CStifItemParser& aItem); - /** - * TestMSDGetMemoriesL test function for testing the GetMemories function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestMSDGetMemoriesL(CStifItemParser& aItem); - -private: // Test AknCommonDialogs.h - - /** - * TestCDRunSelectDlgLD test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSelectDlgLDFilter test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLDFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSelectDlgLDTitleL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLDTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSelectDlgLDFileIdL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLDFileIdL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunMoveDlgLD test function for testing the RunMoveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunMoveDlgLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunMoveDlgLDFilterL test function for testing the RunMoveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunMoveDlgLDFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunMoveDlgLDTitleL test function for testing the RunMoveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunMoveDlgLDTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunMoveDlgLDFileIdL test function for testing the RunMoveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunMoveDlgLDFileIdL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSaveDlgLD test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSaveDlgLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSaveDlgLDFilterL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSaveDlgLDFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSaveDlgLDTitleL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSaveDlgLDTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSaveDlgLDFileIdL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSaveDlgLDFileIdL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSaveDlgLDIdTitleL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSaveDlgLDIdTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSaveDlgNoDirectorySelectionLD test function for testing the RunSaveDlgNoDirectorySelectionLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSaveDlgNoDirectorySelectionLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSaveDlgNoDirectorySelectionLDTitleL test function for testing the RunSaveDlgNoDirectorySelectionLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSaveDlgNoDirectorySelectionLDTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunCopyDlgLD test function for testing the RunCopyDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunCopyDlgLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunCopyDlgLDFilterL test function for testing the RunCopyDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunCopyDlgLDFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunCopyDlgLDFileIdL test function for testing the RunCopyDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunCopyDlgLDFileIdL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSelectDlgLDFolderL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLDFolderL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSelectDlgLDFolderFilterL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLDFolderFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSelectDlgLDFolderTitleL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLDFolderTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSelectDlgLDFolderFileIDL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLDFolderFileIDL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSelectDlgLDFolderTitleFilterL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSelectDlgLDFolderTitleFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunSaveDlgLDFolderTitleFilterL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunSaveDlgLDFolderTitleFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDRunFolderSelectDlgLD test function for testing the RunFolderSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDRunFolderSelectDlgLD( CStifItemParser& /*aItem*/ ); - -private: // Test AknCommonDialogsDynMem.h - - /** - * TestCDDMRunSelectDlgLD test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSelectDlgLDFilter test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLDFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSelectDlgLDTitleL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLDTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSelectDlgLDFileIdL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLDFileIdL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunMoveDlgLD test function for testing the RunMoveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunMoveDlgLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunMoveDlgLDFilterL test function for testing the RunMoveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunMoveDlgLDFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunMoveDlgLDTitleL test function for testing the RunMoveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunMoveDlgLDTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunMoveDlgLDFileIdL test function for testing the RunMoveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunMoveDlgLDFileIdL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSaveDlgLD test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSaveDlgLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSaveDlgLDFilterL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSaveDlgLDFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSaveDlgLDTitleL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSaveDlgLDTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSaveDlgLDFileIdL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSaveDlgLDFileIdL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSaveDlgLDIdTitleL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSaveDlgLDIdTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSaveDlgNoDirectorySelectionLD test function for testing the RunSaveDlgNoDirectorySelectionLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSaveDlgNoDirectorySelectionLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSaveDlgNoDirectorySelectionLDTitleL test function for testing the RunSaveDlgNoDirectorySelectionLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSaveDlgNoDirectorySelectionLDTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunCopyDlgLD test function for testing the RunCopyDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunCopyDlgLD( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunCopyDlgLDFilterL test function for testing the RunCopyDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunCopyDlgLDFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunCopyDlgLDFileIdL test function for testing the RunCopyDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunCopyDlgLDFileIdL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSelectDlgLDFolderL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLDFolderL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSelectDlgLDFolderFilterL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLDFolderFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSelectDlgLDFolderTitleL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLDFolderTitleL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSelectDlgLDFolderFileIDL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLDFolderFileIDL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSelectDlgLDFolderTitleFilterL test function for testing the RunSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSelectDlgLDFolderTitleFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunSaveDlgLDFolderTitleFilterL test function for testing the RunSaveDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunSaveDlgLDFolderTitleFilterL( CStifItemParser& /*aItem*/ ); - - /** - * TestCDDMRunFolderSelectDlgLD test function for testing the RunFolderSelectDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestCDDMRunFolderSelectDlgLD( CStifItemParser& /*aItem*/ ); - -private: // Test CAknFileSelectionDialog.h - - /** - * TestFSDNewL test function for testing the NewL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDNewL( CStifItemParser& aItem ); - - /** - * TestFSDNewLWithResL test function for testing the NewL function with ResourceID - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDNewLWithResL( CStifItemParser& aItem ); - - /** - * TestFSDExecuteL test function for testing the ExecuteL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDExecuteL( CStifItemParser& aItem ); - - /** - * TestFSDRunDlgLD test function for testing the RunDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDRunDlgLD( CStifItemParser& aItem ); - - /** - * TestFSDRunDlgLDWithTitleLD test function for testing the RunDlgLD function - with the title parameter - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDRunDlgLDWithTitleLD( CStifItemParser& aItem ); - - /** - * TestFSDRunDlgLDWithResLD test function for testing the RunDlgLD function - with the resouceID parameter - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDRunDlgLDWithResLD( CStifItemParser& aItem ); - - /** - * TestFSDDelete test function for testing the destruction function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDDelete( CStifItemParser& aItem ); - - /** - * TestFSDSetDefaultFolderL test function for testing the SetDefaultFolderL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDSetDefaultFolderL( CStifItemParser& aItem ); - - /** - * TestFSDSetTitleL test function for testing the SetTitleL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDSetTitleL( CStifItemParser& aItem ); - - /** - * TestFSDSetLeftSoftkeyFileL test function for testing the - SetLeftSoftkeyFileL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDSetLeftSoftkeyFileL( CStifItemParser& aItem ); - - /** - * TestFSDSetLeftSoftkeyFolderL test function for testing the - SetLeftSoftkeyFolderL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDSetLeftSoftkeyFolderL( CStifItemParser& aItem ); - - /** - * TestFSDSetRightSoftkeyRootFolderL test function for testing the - SetRightSoftkeyRootFolderL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDSetRightSoftkeyRootFolderL( CStifItemParser& aItem ); - - /** - * TestFSDSetRightSoftkeySubfolderL test function for testing the - SetRightSoftkeySubfolderL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDSetRightSoftkeySubfolderL( CStifItemParser& aItem ); - - /** - * TestFSDSetObserverL test function for testing the SetObserverL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDSetObserverL( CStifItemParser& aItem ); - - /** - * TestFSDAddFilterL test function for testing the AddFilterL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFSDAddFilterL( CStifItemParser& aItem ); - -private: //Test CAknFileNamePromptDialog.h - - /** - * TestFNPDNewL test function for testing the NewL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDNewL( CStifItemParser& aItem ); - /** - * TestFNPDNewLWithResL test function for testing the NewL function with ResourceID - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDNewLWithResL( CStifItemParser& aItem ); - /** - * TestFNPDSetPathL test function for testing the SetPathL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDSetPathL( CStifItemParser& aItem ); - /** - * TestFNPDExecuteL test function for testing the ExecuteL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDExecuteL( CStifItemParser& aItem ); - /** - * TestFNPDRunDlgLD test function for testing the RunDlgLD function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDRunDlgLD( CStifItemParser& aItem ); - /** - * TestFNPDRunDlgLDWithTitleLD test function for testing the RunDlgLD - function with the title parameter - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDRunDlgLDWithTitleLD( CStifItemParser& aItem ); - /** - * TestFNPDRunDlgLDWithResLD test function for testing the RunDlgLD - function with the resourceID - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDRunDlgLDWithResLD( CStifItemParser& aItem ); - /** - * TestFNPDDeleteL test function for testing the deconstruct function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDDeleteL( CStifItemParser& aItem ); - /** - * TestFNPDSetObserverL test function for testing the SetObserverL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDSetObserverL( CStifItemParser& aItem ); - /** - * TestFNPDSetTitleL test function for testing the SetTitleL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDSetTitleL( CStifItemParser& aItem ); - /** - * TestFNPDSetLeftSoftkeyL test function for testing the SetLeftSoftkeyL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDSetLeftSoftkeyL( CStifItemParser& aItem ); - /** - * TestFNPDSetRightSoftkeyL test function for testing the SetRightSoftkeyL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDSetRightSoftkeyL( CStifItemParser& aItem ); - /** - * TestFNPDRenameL test function for testing the RenameL function - * @since S60 5.0 - * @param aItem never used - * @return Symbian OS error code. - */ - virtual TInt TestFNPDRenameL( CStifItemParser& aItem ); - -private: - /** - * TestFSDSetDefaultFolderL test function for testing the SetDefaultFolderL function - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingPage.h - virtual TInt TestSettingPageNewLNoParaL( CStifItemParser& aItem ); - - /** - * Test NewL function with parameter of CAknMemorySelectionSettingPage - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingPage.h - virtual TInt TestSettingPageNewL( CStifItemParser& aItem ); - - /** - * Test ExecuteL with Only Memory Type parameter of CAknMemorySelectionSettingPage - * @since S60 5.0 - * @param aItem number for softkey - * 1 LeftKey pressed - * 2 RightKey pressed - * 3 SelectKey pressed - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingPage.h - virtual TInt TestSettingPageExecuteLOnlyMemoryTypeL( CStifItemParser& aItem ); - - /** - * Test destructor of CAknMemorySelectionSettingPage - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingPage.h - virtual TInt TestSettingPageDeconstructorL( CStifItemParser& aItem ); - - /** - * Test RunDlgLD of CAknMemorySelectionSettingPage - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingPage.h - virtual TInt TestSettingPageRunDlgLDTwoParaL( CStifItemParser& aItem ); - - /** - * Test RunDlgLD of CAknMemorySelectionSettingPage - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingPage.h - virtual TInt TestSettingPageRunDlgLDThreeParaL( CStifItemParser& aItem ); - - /** - * Test RunDlgLD of CAknMemorySelectionSettingPage - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingPage.h - virtual TInt TestSettingPageRunDlgLDFiveParaL( CStifItemParser& aItem ); - -private: - /** - * Test constructor of CAknMemorySelectionSettingItem - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItem.h - virtual TInt TestSettingItemConstructorL( CStifItemParser& aItem ); - /** - * Test deconstructor of CAknMemorySelectionSettingItem - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItem.h - virtual TInt TestSettingItemDeconstructorL( CStifItemParser& aItem ); - /** - * Test constructor of CAknMemorySelectionSettingItem - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItem.h - virtual TInt TestSettingItemCompleteConstructionL( CStifItemParser& aItem ); - /** - * Test constructor of CAknMemorySelectionSettingItem - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItem.h - virtual TInt TestSettingItemEditItemL( CStifItemParser& aItem ); - /** - * Test constructor of CAknMemorySelectionSettingItem - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItem.h - virtual TInt TestSettingItemLoadL( CStifItemParser& aItem ); - /** - * Test constructor of CAknMemorySelectionSettingItem - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItem.h - virtual TInt TestSettingItemStoreL( CStifItemParser& aItem ); - /** - * Test constructor of CAknMemorySelectionSettingItem - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItem.h - virtual TInt TestSettingItemSettingTextL( CStifItemParser& aItem ); - -private: - /** - * Test function of CAknMemorySelectionSettingItemMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItemMultiDrive.h - virtual TInt TestSettingItemMultiConstructorL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionSettingItemMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItemMultiDrive.h - virtual TInt TestSettingItemMultiDeconstructorL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionSettingItemMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItemMultiDrive.h - virtual TInt TestSettingItemMultiCompleteConstructionL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionSettingItemMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItemMultiDrive.h - virtual TInt TestSettingItemMultiEditItemL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionSettingItemMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItemMultiDrive.h - virtual TInt TestSettingItemMultiLoadL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionSettingItemMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItemMultiDrive.h - virtual TInt TestSettingItemMultiStoreL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionSettingItemMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionSettingItemMultiDrive.h - virtual TInt TestSettingItemMultiSettingTextL( CStifItemParser& aItem ); - -private: - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDNewL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDNewWithResourceL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDNewWithMediaL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDSetTitleL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDSetLeftSoftkeyL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDSetRightSoftkeyL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDExecuteL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDExecuteLDefaultFolderL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDRunDlgLD( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDRunDlgLDTitleL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDRunDlgLDResourceL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDGetItemL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDAddDrivePathsL( CStifItemParser& aItem ); - /** - * Test function of CAknMemorySelectionDialogMultiDrive - * @since S60 5.0 - * @return Symbian OS error code. - */ - //function for function in CAknMemorySelectionDialogMultiDrive.h - virtual TInt TestMSDMDFindIndexByDriveL( CStifItemParser& aItem ); - -private: // Data - - enum TSwitchId - { - ECaseOne = 1, - ECaseTwo = 2, - ECaseThree = 3 - }; - - //Own : test functions in CAknFileSelectionDialog.h - CAknFileSelectionDialog* iFDlg; - - //Own : test functions in CAknFileSelectionDialog.h - CAknFileNamePromptDialog* iFNPDialog; - - // Own : test functions in CAknMemorySelectionSettingPage.h - CAknMemorySelectionSettingPage* iSettingPage; - - //Own : test functions in CAknMemorySelectionSettingItem.h - CTestSettingItemList* iSettingItemList; - - //Own : test functions in CAknMemorySelectionSettingItemMultiDrive.h - CTestSettingItemListMultiDrive* iSettingItemListMulti; - - // ScreenSaver Property - TInt iOldScreenSaverProperty; - - // Resource file offset - TInt iOffset; - }; - -#endif // C_TESTSDKCFD_H -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfd.hrh --- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfd.hrh Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/* -* Copyright (c) 2008 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 Common File Dialogs -* -*/ - - -#ifndef TESTSDKCFD_HRH -#define TESTSDKCFD_HRH - -enum SettingListID - { - ETestSettingItem = 9000 - }; - -#endif // TESTSDKCFD_HRH diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdcontrol.h --- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdcontrol.h Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 CAknMemorySelectionSettingPage.h - * -*/ - - -#ifndef C_TESTSDKCFDCONTROL_H -#define C_TESTSDKCFDCONTROL_H - -// INCLUDES -#include -#include -#include -#include -#include -#include - -/** - * CTestControl is used to add setting page control in its window - */ -class CTestControl : public CCoeControl, public MAknMemorySelectionObserver - { -public: - /** - * Two-phased constructor. - */ - static CTestControl* NewL(); - - /** - * Destructor. - */ - ~CTestControl(); - - /** - * Public function to test setting page RunDL function. - */ - TInt TestSettingPageRunLDL( CStifItemParser& aItem ); - - /** - * from MAknMemorySelectionObserver. - */ - TBool OkToExitL( CAknMemorySelectionDialog::TMemory aMemory ); - -private: - - /** - * Constructor. - */ - CTestControl(); - - /** - * By default Symbian 2nd phase constructor is private. - */ - void ConstructL(); - - /** - * Receive key events. - */ - TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); - - /** - * Draw control. - */ - void Draw(const TRect& aRect) const; - - /** - * Return number of controls in its window. - */ - TInt CountComponentControls() const; - - /** - * Controls in its window. - */ - CCoeControl* ComponentControl(TInt aIndex) const; - - /** - * Resize screen. - */ - void SizeChanged(); - -private: - //data - CAknMemorySelectionSettingPage* iSettingPage; - }; - -#endif /*C_TESTSDKCFDCONTROL_H*/ diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdmaknmemoryselectionobserver.h --- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdmaknmemoryselectionobserver.h Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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: observer - * -*/ - - -#ifndef C_TESTSDKCFDMAKNMEMORYSELECTIONOBSERVER_H -#define C_TESTSDKCFDMAKNMEMORYSELECTIONOBSERVER_H - -// INCLUDES -#include - -class CTestSDKCFDMAknMemorySelectionOberver : public CBase, public MAknMemorySelectionObserver -{ -public: - - /** - * Two-phased constructor. - */ - static CTestSDKCFDMAknMemorySelectionOberver* NewL(); - - /** - * Get's called when user selects a memory. - * @param aMemory Currently selected memory. - * @return Returns ETrue if it is ok to exit from dialog. - */ - TBool OkToExitL( CAknMemorySelectionDialog::TMemory aMemory ); - - /** - * Destructor. - */ - virtual ~CTestSDKCFDMAknMemorySelectionOberver(); - -private: - - /** - * By default Symbian 2nd phase constructor is private. - */ - void ConstructL(); - - /** - * C++ default constructor. - */ - CTestSDKCFDMAknMemorySelectionOberver(); - -}; - -#endif /*C_TESTSDKCFDMAKNMEMORYSELECTIONOBSERVER_H*/ - - - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdsettingitem.h --- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdsettingitem.h Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 Common File Dialogs - * -*/ - - -#ifndef C_TESTSDKCFDSETTINGITEM_H -#define C_TESTSDKCFDSETTINGITEM_H - -#include -#include - -/** - * CTestSettingItem derived from CAknMemorySelectionSettingItem and test it for - * getting private member variable - */ -class CTestSettingItem : public CAknMemorySelectionSettingItem - { -public: - - /** - * Constructor. - */ - CTestSettingItem( TInt aIdentifier, - CAknMemorySelectionSettingPage::TMemory& aSelectedMemory ); - - /** - * Get iExternale value. - */ - CAknMemorySelectionDialog::TMemory GetExternalData() const; - - /** - * Get iInternale value. - */ - CAknMemorySelectionDialog::TMemory GetInternalData() const; - - /** - * Get setting page pointer. - */ - CAknMemorySelectionSettingPage* GetSettingPagePointer() const; - - /** - * Get text value. - */ - TDes GetSettingText() const; - /** - * Get text value. - */ - void GetText( TDes& aDes ); - }; - -/** - * CTestSettingItemList derived from CAknSettingItemList and test it for getting private member variable - */ -class CTestSettingItemList : public CAknSettingItemList - { -public: - - /** - * By default Symbian 2nd phase constructor is private. - */ - void ConstructL(); - - /** - * Constructor. - */ - CAknSettingItem* CreateSettingItemL( TInt aIdentifier ); - -public: - //Own : setting itme pointer - CTestSettingItem* iItem; - }; - -#endif // C_TESTSDKCFDSETTINGITEM_H - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdsettingitemmultidrive.h --- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdsettingitemmultidrive.h Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 Common File Dialogs - * -*/ - - -#ifndef C_TESTSDKCFDSETTINGITEMMULTIDRIVE_H -#define C_TESTSDKCFDSETTINGITEMMULTIDRIVE_H - -#include - -/** - * CTestSettingItemMultiDrive derived from CAknMemorySelectionSettingItemMultiDrive - * and test it for getting private member variable - */ -class CTestSettingItemMultiDrive : public CAknMemorySelectionSettingItemMultiDrive - { -public: - - /** - * Constructor. - */ - CTestSettingItemMultiDrive( TInt aIdentifier, TDriveNumber& aSelectedDrive ); - - /** - * Get setting page pointer. - */ - CAknMemorySelectionSettingItemExtension* GetExtensionPointer() const; - }; - -/** - * CTestSettingItemListMultiDrive derived from CAknSettingItemList - * and test it for getting private member variable - */ -class CTestSettingItemListMultiDrive : public CAknSettingItemList - { -public: - - /** - * By default Symbian 2nd phase constructor is private. - */ - void ConstructL(); - - /** - * Constructor. - */ - CAknSettingItem* CreateSettingItemL( TInt aIdentifier ); - -private: - //Own : setting itme pointer - CTestSettingItemMultiDrive* iItem; - }; - -#endif // C_TESTSDKCFDSETTINGITEMMULTIDRIVE_H - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/init/testsdkcfd.ini --- a/classicui_pub/common_file_dialogs_api/tsrc/init/testsdkcfd.ini Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,197 +0,0 @@ -# -# This is STIFTestFramework initialization file -# Comment lines start with '#'-character. -# See STIF TestFramework users guide.doc for instructions - -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -# Set following test engine settings: -# - Set Test Reporting mode. TestReportMode's possible values are: -# + 'Summary': Summary of the tested test cases. -# + 'Environment': Hardware and software info. -# + 'TestCases': Test case report. -# + 'FullReport': Set of all above ones. -# + Example 'TestReportMode= Summary TestCases' -# -# - CreateTestReport setting controls report creation mode -# + YES, Test report will created. -# + NO, No Test report. -# -# - File path indicates the base path of the test report. -# - File name indicates the name of the test report. -# -# - File format indicates the type of the test report. -# + TXT, Test report file will be txt type, for example 'TestReport.txt'. -# + HTML, Test report will be html type, for example 'TestReport.html'. -# -# - File output indicates output source of the test report. -# + FILE, Test report logging to file. -# + RDEBUG, Test report logging to using rdebug. -# -# - File Creation Mode indicates test report overwriting if file exist. -# + OVERWRITE, Overwrites if the Test report file exist. -# + APPEND, Continue logging after the old Test report information if -# report exist. - -[Engine_Defaults] - -TestReportMode= FullReport # Possible values are: - # 'Summary', 'Environment', 'TestCases' or 'FullReport' - -CreateTestReport= YES # Possible values: YES or NO -Timeout= 60000 -TestReportFilePath= C:\LOGS\TestFramework\ -TestReportFileName= TestReport - -TestReportFormat= TXT # Possible values: TXT or HTML -TestReportOutput= FILE # Possible values: FILE or RDEBUG -TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND -UITestingSupport= Yes -SeparateProcesses= YES -[End_Defaults] -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - - - -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -# Module configurations start -# Modules are added between module tags -# tags. Module name is specified after ModuleName= tag, like -# ModuleName= XXXXXXXXX -# Modules might have initialisation file, specified as -# IniFile= YYYYYY -# Modules might have several configuration files, like -# TestCaseFile= NormalCases.txt -# TestCaseFile= SmokeCases.txt -# TestCaseFile= ManualCases.txt - -# (TestCaseFile is synonym for old term ConfigFile) - -# Following case specifies demo module settings. Demo module -# does not read any settings from file, so tags -# IniFile and TestCaseFile are not used. -# In the simplest case it is enough to specify only the -# name of the test module when adding new test module - -[New_Module] -ModuleName= testcombiner -TestCaseFile= c:\testframework\tctestsdkcfdcommondialogs.cfg -TestCaseFile= c:\testframework\tctestsdkcfdcommondialogsdynmem.cfg -TestCaseFile= c:\testframework\tctestsdkcfdfilenamepromptdialog.cfg -TestCaseFile= c:\testframework\tctestsdkcfdfileselectiondialog.cfg -TestCaseFile= c:\testframework\tctestsdkcfdmemoryselectiondialog.cfg -TestCaseFile= c:\testframework\tctestsdkcfdmemoryselectionsettingitem.cfg -TestCaseFile= c:\testframework\tctestsdkcfdmemoryselectionsettingpage.cfg -TestCaseFile= c:\testframework\tctestsdkcfdmemoryselectiondialogmulti.cfg -TestCaseFile= c:\testframework\tctestsdkcfdmemoryselectionsettingitemmulti.cfg -[End_Module] - -#[New_Module] -#ModuleName= testscripter -#TestCaseFile= c:\testframework\ui_testsdkcfdcommondialogs.cfg -#TestCaseFile= c:\testframework\ui_testsdkcfdcommondialogsdynmem.cfg -#TestCaseFile= c:\testframework\ui_testsdkcfdfilenamepromptdialog.cfg -#TestCaseFile= c:\testframework\ui_testsdkcfdfileselectiondialog.cfg -#TestCaseFile= c:\testframework\ui_testsdkcfdmemoryselectiondialog.cfg -#TestCaseFile= c:\testframework\ui_testsdkcfdmemoryselectionsettingitem.cfg -#TestCaseFile= c:\testframework\ui_testsdkcfdmemoryselectionsettingpage.cfg -#TestCaseFile= c:\testframework\ui_testsdkcfdmemoryselectiondialogmulti.cfg -#TestCaseFile= c:\testframework\ui_testsdkcfdmemoryselectionsettingitemmulti.cfg -#[End_Module] - -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - -#Load testmoduleXXX, optionally with initialization file and/or test case files -#[New_Module] -#ModuleName= testmodulexxx - -#TestModuleXXX used initialization file -#IniFile= init.txt - -#TestModuleXXX used configuration file(s) -#TestCaseFile= testcases1.cfg -#TestCaseFile= testcases2.cfg -#TestCaseFile= manualtestcases.cfg - -#[End_Module] -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - - - -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -# Set STIFTestFramework logging overwrite parameters for Logger. -# Hardware and emulator environment logging path and styles can -# be configured from here to overwrite the Logger's implemented values. -# -# Settings description: -# - Indicates option for creation log directory/directories. If log directory/directories -# is/are not created by user they will make by software. -# + YES, Create log directory/directories if not allready exist. -# + NO, Log directory/directories not created. Only created one is used. -# -# - Overwrite emulator path setting. -# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined -# Logger's path 'D:\\LOGS\\Module\\' with those definition the path -# will be 'C:\LOGS\TestFramework\LOGS\Module\' -# -# - Overwrite emulator's logging format. -# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. -# + HTML, Log file(s) will be html type(s), for example 'Module.html'. -# -# - Overwrited emulator logging output source. -# + FILE, Logging to file(s). -# + RDEBUG, Logging to using rdebug(s). -# -# - Overwrite hardware path setting (Same description as above in emulator path). -# - Overwrite hardware's logging format(Same description as above in emulator format). -# - Overwrite hardware's logging output source(Same description as above in emulator output). -# -# - File Creation Mode indicates file overwriting if file exist. -# + OVERWRITE, Overwrites if file(s) exist. -# + APPEND, Continue logging after the old logging information if file(s) exist. -# -# - Will thread id include to the log filename. -# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. -# + NO, No thread id to log file(s), Example filename 'Module.txt'. -# -# - Will time stamps include the to log file. -# + YES, Time stamp added to each line in log file(s). Time stamp is -# for example'12.Nov.2003 115958 LOGGING INFO' -# + NO, No time stamp(s). -# -# - Will line breaks include to the log file. -# + YES, Each logging event includes line break and next log event is in own line. -# + NO, No line break(s). -# -# - Will event ranking include to the log file. -# + YES, Event ranking number added to each line in log file(s). Ranking number -# depends on environment's tics, for example(includes time stamp also) -# '012 12.Nov.2003 115958 LOGGING INFO' -# + NO, No event ranking. -# - -[Logger_Defaults] - -#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' - -CreateLogDirectories= YES # Possible values: YES or NO - -EmulatorBasePath= C:\LOGS\TestFramework\ -EmulatorFormat= HTML # Possible values: TXT or HTML -EmulatorOutput= FILE # Possible values: FILE or RDEBUG - -#HardwareBasePath= D:\LOGS\TestFramework\ -#HardwareFormat= HTML # Possible values: TXT or HTML -#HardwareOutput= FILE # Possible values: FILE or RDEBUG - -FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND - -#ThreadIdToLogFile= YES # Possible values: YES or NO -#WithTimeStamp= YES # Possible values: YES or NO -#WithLineBreak= YES # Possible values: YES or NO -#WithEventRanking= YES # Possible values: YES or NO - -[End_Logger_Defaults] -# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - -# End of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfd.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfd.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,166 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 Common File Dialogs -* -*/ - - - -// INCLUDE FILES -#include -#include -#include - -#include "testsdkcfd.h" - -_LIT( KResourcePath, "C:\\resource\\testsdkcfd.rsc" ); - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::CTestSDKCFD -// C++ default constructor can NOT contain any code, that -// might leave. -// ----------------------------------------------------------------------------- -// -CTestSDKCFD::CTestSDKCFD( CTestModuleIf& aTestModuleIf ): - CScriptBase( aTestModuleIf ) - { - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::ConstructL -// Symbian 2nd phase constructor can leave. -// ----------------------------------------------------------------------------- -// -void CTestSDKCFD::ConstructL() - { - //Read logger settings to check whether test case name is to be - //appended to log file name. - RSettingServer settingServer; - CleanupClosePushL( settingServer ); - TInt ret = settingServer.Connect(); - if(ret != KErrNone) - { - User::Leave(ret); - } - // Struct to StifLogger settigs. - TLoggerSettings loggerSettings; - // Parse StifLogger defaults from STIF initialization file. - ret = settingServer.GetLoggerSettings(loggerSettings); - if(ret != KErrNone) - { - User::Leave(ret); - } - // Close Setting server session - settingServer.Close(); - CleanupStack::PopAndDestroy( &settingServer ); - - TFileName logFileName; - - if(loggerSettings.iAddTestCaseTitle) - { - TName title; - TestModuleIf().GetTestCaseTitleL(title); - logFileName.Format(KtestsdkcfdLogFileWithTitle, &title); - } - else - { - logFileName.Copy(KtestsdkcfdLogFile); - } - - iLog = CStifLogger::NewL( KtestsdkcfdLogPath, - logFileName, - CStifLogger::ETxt, - CStifLogger::EFile, - EFalse ); - iOffset = CCoeEnv::Static()->AddResourceFileL( KResourcePath ); - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::NewL -// Two-phased constructor. -// ----------------------------------------------------------------------------- -// -CTestSDKCFD* CTestSDKCFD::NewL( - CTestModuleIf& aTestModuleIf ) - { - CTestSDKCFD* self = new( ELeave ) CTestSDKCFD( aTestModuleIf ); - - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop(); - - return self; - - } - -// Destructor -CTestSDKCFD::~CTestSDKCFD() - { - - // Delete resources allocated from test methods - Delete(); - - if ( iFDlg ) - { - delete iFDlg; - iFDlg = NULL; - } - - if ( iFNPDialog ) - { - delete iFNPDialog; - iFNPDialog = NULL; - } - - if ( iSettingPage ) - { - delete iSettingPage; - iSettingPage = NULL; - } - - if ( iSettingItemList ) - { - delete iSettingItemList; - iSettingItemList = NULL; - } - - if ( iSettingItemListMulti ) - { - delete iSettingItemListMulti; - iSettingItemListMulti = NULL; - } - - delete iLog; - - CCoeEnv::Static()->DeleteResourceFile( iOffset ); - } - -// ========================== OTHER EXPORTED FUNCTIONS ========================= - -// ----------------------------------------------------------------------------- -// LibEntryL is a polymorphic Dll entry point. -// Returns: CScriptBase: New CScriptBase derived object -// ----------------------------------------------------------------------------- -// -EXPORT_C CScriptBase* LibEntryL( - CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework - { - - return ( CScriptBase* ) CTestSDKCFD::NewL( aTestModuleIf ); - - } -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocks.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocks.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,207 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 Common File Dialogs -* -*/ - - - -// [INCLUDE FILES] -#include -#include -#include - -#include "testsdkcfd.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::Delete -// Delete here all resources allocated and opened from test methods. -// Called from destructor. -// ----------------------------------------------------------------------------- -// -void CTestSDKCFD::Delete() - { - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::RunMethodL -// Run specified method. Contains also table of test mothods and their names. -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::RunMethodL( CStifItemParser& aItem ) - { - - static TStifFunctionInfo const KFunctions[] = - { - // First string is the function name used in TestScripter script file. - // Second is the actual implementation member function. - - // Test CAknMemorySelectionDialog.h - ENTRY( "TestMSDNewL", CTestSDKCFD::TestMSDNewL ), - ENTRY( "TestMSDNewWithResourceL", CTestSDKCFD::TestMSDNewWithResourceL ), - ENTRY( "TestMSDNewWithMediaL", CTestSDKCFD::TestMSDNewWithMediaL ), - ENTRY( "TestMSDSetTitleL", CTestSDKCFD::TestMSDSetTitleL ), - ENTRY( "TestMSDSetLeftSoftkeyL", CTestSDKCFD::TestMSDSetLeftSoftkeyL ), - ENTRY( "TestMSDSetRightSoftkeyL", CTestSDKCFD::TestMSDSetRightSoftkeyL ), - ENTRY( "TestMSDSetObserverL", CTestSDKCFD::TestMSDSetObserverL ), - ENTRY( "TestMSDExecuteL", CTestSDKCFD::TestMSDExecuteL ), - ENTRY( "TestMSDExecuteLDefaultFolderL", CTestSDKCFD::TestMSDExecuteLDefaultFolderL ), - ENTRY( "TestMSDRunDlgLD", CTestSDKCFD::TestMSDRunDlgLD ), - ENTRY( "TestMSDRunDlgLDTitleL", CTestSDKCFD::TestMSDRunDlgLDTitleL ), - ENTRY( "TestMSDRunDlgLDResourceL", CTestSDKCFD::TestMSDRunDlgLDResourceL ), - ENTRY( "TestMSDGetItemL", CTestSDKCFD::TestMSDGetItemL ), - ENTRY( "TestMSDGetMemoriesL", CTestSDKCFD::TestMSDGetMemoriesL ), - - - // Test AknCommonDialogs.h - ENTRY( "TestCDRunSelectDlgLD", CTestSDKCFD::TestCDRunSelectDlgLD ), - ENTRY( "TestCDRunSelectDlgLDFilter", CTestSDKCFD::TestCDRunSelectDlgLDFilterL ), - ENTRY( "TestCDRunSelectDlgLDTitle", CTestSDKCFD::TestCDRunSelectDlgLDTitleL ), - ENTRY( "TestCDRunSelectDlgLDFileId", CTestSDKCFD::TestCDRunSelectDlgLDFileIdL ), - ENTRY( "TestCDRunMoveDlgLD", CTestSDKCFD::TestCDRunMoveDlgLD ), - ENTRY( "TestCDRunMoveDlgLDFilter", CTestSDKCFD::TestCDRunMoveDlgLDFilterL ), - ENTRY( "TestCDRunMoveDlgLDTitle", CTestSDKCFD::TestCDRunMoveDlgLDTitleL ), - ENTRY( "TestCDRunMoveDlgLDFileId", CTestSDKCFD::TestCDRunMoveDlgLDFileIdL ), - ENTRY( "TestCDRunSaveDlgLD", CTestSDKCFD::TestCDRunSaveDlgLD ), - ENTRY( "TestCDRunSaveDlgLDFilter", CTestSDKCFD::TestCDRunSaveDlgLDFilterL ), - ENTRY( "TestCDRunSaveDlgLDTitle", CTestSDKCFD::TestCDRunSaveDlgLDTitleL ), - ENTRY( "TestCDRunSaveDlgLDFileId", CTestSDKCFD::TestCDRunSaveDlgLDFileIdL ), - ENTRY( "TestCDRunSaveDlgLDIdTitle", CTestSDKCFD::TestCDRunSaveDlgLDIdTitleL ), - ENTRY( "TestCDRunSaveDlgNoDirectorySelectionLD", CTestSDKCFD::TestCDRunSaveDlgNoDirectorySelectionLD ), - ENTRY( "TestCDRunSaveDlgNoDirectorySelectionLDTitle", CTestSDKCFD::TestCDRunSaveDlgNoDirectorySelectionLDTitleL ), - ENTRY( "TestCDRunCopyDlgLD", CTestSDKCFD::TestCDRunCopyDlgLD ), - ENTRY( "TestCDRunCopyDlgLDFilter", CTestSDKCFD::TestCDRunCopyDlgLDFilterL ), - ENTRY( "TestCDRunCopyDlgLDFileId", CTestSDKCFD::TestCDRunCopyDlgLDFileIdL ), - ENTRY( "TestCDRunSelectDlgLDFolder", CTestSDKCFD::TestCDRunSelectDlgLDFolderL ), - ENTRY( "TestCDRunSelectDlgLDFolderFilter", CTestSDKCFD::TestCDRunSelectDlgLDFolderFilterL ), - ENTRY( "TestCDRunSelectDlgLDFolderTitle", CTestSDKCFD::TestCDRunSelectDlgLDFolderTitleL ), - ENTRY( "TestCDRunSelectDlgLDFolderFileID", CTestSDKCFD::TestCDRunSelectDlgLDFolderFileIDL ), - ENTRY( "TestCDRunSelectDlgLDFolderTitleFilter", CTestSDKCFD::TestCDRunSelectDlgLDFolderTitleFilterL ), - ENTRY( "TestCDRunSaveDlgLDFolderTitleFilter", CTestSDKCFD::TestCDRunSaveDlgLDFolderTitleFilterL ), - ENTRY( "TestCDRunFolderSelectDlgLD", CTestSDKCFD::TestCDRunFolderSelectDlgLD ), - - // Test AknCommonDialogsDynMem.h - ENTRY( "TestCDDMRunSelectDlgLD", CTestSDKCFD::TestCDDMRunSelectDlgLD ), - ENTRY( "TestCDDMRunSelectDlgLDFilter", CTestSDKCFD::TestCDDMRunSelectDlgLDFilterL ), - ENTRY( "TestCDDMRunSelectDlgLDTitle", CTestSDKCFD::TestCDDMRunSelectDlgLDTitleL ), - ENTRY( "TestCDDMRunSelectDlgLDFileId", CTestSDKCFD::TestCDDMRunSelectDlgLDFileIdL ), - ENTRY( "TestCDDMRunMoveDlgLD", CTestSDKCFD::TestCDDMRunMoveDlgLD ), - ENTRY( "TestCDDMRunMoveDlgLDFilter", CTestSDKCFD::TestCDDMRunMoveDlgLDFilterL ), - ENTRY( "TestCDDMRunMoveDlgLDTitle", CTestSDKCFD::TestCDDMRunMoveDlgLDTitleL ), - ENTRY( "TestCDDMRunMoveDlgLDFileId", CTestSDKCFD::TestCDDMRunMoveDlgLDFileIdL ), - ENTRY( "TestCDDMRunSaveDlgLD", CTestSDKCFD::TestCDDMRunSaveDlgLD ), - ENTRY( "TestCDDMRunSaveDlgLDFilter", CTestSDKCFD::TestCDDMRunSaveDlgLDFilterL ), - ENTRY( "TestCDDMRunSaveDlgLDTitle", CTestSDKCFD::TestCDDMRunSaveDlgLDTitleL ), - ENTRY( "TestCDDMRunSaveDlgLDFileId", CTestSDKCFD::TestCDDMRunSaveDlgLDFileIdL ), - ENTRY( "TestCDDMRunSaveDlgLDIdTitle", CTestSDKCFD::TestCDDMRunSaveDlgLDIdTitleL ), - ENTRY( "TestCDDMRunSaveDlgNoDirectorySelectionLD", CTestSDKCFD::TestCDDMRunSaveDlgNoDirectorySelectionLD ), - ENTRY( "TestCDDMRunSaveDlgNoDirectorySelectionLDTitle", CTestSDKCFD::TestCDDMRunSaveDlgNoDirectorySelectionLDTitleL ), - ENTRY( "TestCDDMRunCopyDlgLD", CTestSDKCFD::TestCDDMRunCopyDlgLD ), - ENTRY( "TestCDDMRunCopyDlgLDFilter", CTestSDKCFD::TestCDDMRunCopyDlgLDFilterL ), - ENTRY( "TestCDDMRunCopyDlgLDFileId", CTestSDKCFD::TestCDDMRunCopyDlgLDFileIdL ), - ENTRY( "TestCDDMRunSelectDlgLDFolder", CTestSDKCFD::TestCDDMRunSelectDlgLDFolderL ), - ENTRY( "TestCDDMRunSelectDlgLDFolderFilter", CTestSDKCFD::TestCDDMRunSelectDlgLDFolderFilterL ), - ENTRY( "TestCDDMRunSelectDlgLDFolderTitle", CTestSDKCFD::TestCDDMRunSelectDlgLDFolderTitleL ), - ENTRY( "TestCDDMRunSelectDlgLDFolderFileID", CTestSDKCFD::TestCDDMRunSelectDlgLDFolderFileIDL ), - ENTRY( "TestCDDMRunSelectDlgLDFolderTitleFilter", CTestSDKCFD::TestCDDMRunSelectDlgLDFolderTitleFilterL ), - ENTRY( "TestCDDMRunSaveDlgLDFolderTitleFilter", CTestSDKCFD::TestCDDMRunSaveDlgLDFolderTitleFilterL ), - ENTRY( "TestCDDMRunFolderSelectDlgLD", CTestSDKCFD::TestCDDMRunFolderSelectDlgLD ), - - // Test CAknFileSelectionDialog.h - ENTRY( "TestFSDNewL", CTestSDKCFD::TestFSDNewL ), - ENTRY( "TestFSDNewLWithResL", CTestSDKCFD::TestFSDNewLWithResL ), - ENTRY( "TestFSDExecuteL", CTestSDKCFD::TestFSDExecuteL ), - ENTRY( "TestFSDRunDlgLD", CTestSDKCFD::TestFSDRunDlgLD ), - ENTRY( "TestFSDRunDlgLDWithTitleLD", CTestSDKCFD::TestFSDRunDlgLDWithTitleLD ), - ENTRY( "TestFSDRunDlgLDWithResLD", CTestSDKCFD::TestFSDRunDlgLDWithResLD ), - ENTRY( "TestFSDDelete", CTestSDKCFD::TestFSDDelete ), - ENTRY( "TestFSDSetDefaultFolderL", CTestSDKCFD::TestFSDSetDefaultFolderL ), - ENTRY( "TestFSDSetTitleL", CTestSDKCFD::TestFSDSetTitleL ), - ENTRY( "TestFSDSetLeftSoftkeyFileL", CTestSDKCFD::TestFSDSetLeftSoftkeyFileL ), - ENTRY( "TestFSDSetLeftSoftkeyFolderL", CTestSDKCFD::TestFSDSetLeftSoftkeyFolderL ), - ENTRY( "TestFSDSetRightSoftkeyRootFolderL", CTestSDKCFD::TestFSDSetRightSoftkeyRootFolderL ), - ENTRY( "TestFSDSetRightSoftkeySubfolderL", CTestSDKCFD::TestFSDSetRightSoftkeySubfolderL ), - ENTRY( "TestFSDSetObserverL", CTestSDKCFD::TestFSDSetObserverL ), - ENTRY( "TestFSDAddFilterL", CTestSDKCFD::TestFSDAddFilterL ), - - // Test CAknFileNamePromptDialog.h - ENTRY( "TestFNPDNewL", CTestSDKCFD::TestFNPDNewL ), - ENTRY( "TestFNPDNewLWithResL", CTestSDKCFD::TestFNPDNewLWithResL ), - ENTRY( "TestFNPDSetPathL", CTestSDKCFD::TestFNPDSetPathL ), - ENTRY( "TestFNPDExecuteL", CTestSDKCFD::TestFNPDExecuteL ), - ENTRY( "TestFNPDRunDlgLD", CTestSDKCFD::TestFNPDRunDlgLD ), - ENTRY( "TestFNPDRunDlgLDWithTitleLD", CTestSDKCFD::TestFNPDRunDlgLDWithTitleLD ), - ENTRY( "TestFNPDRunDlgLDWithResLD", CTestSDKCFD::TestFNPDRunDlgLDWithResLD ), - ENTRY( "TestFNPDDeleteL", CTestSDKCFD::TestFNPDDeleteL ), - ENTRY( "TestFNPDSetObserverL", CTestSDKCFD::TestFNPDSetObserverL ), - ENTRY( "TestFNPDSetTitleL", CTestSDKCFD::TestFNPDSetTitleL ), - ENTRY( "TestFNPDSetLeftSoftkeyL", CTestSDKCFD::TestFNPDSetLeftSoftkeyL ), - ENTRY( "TestFNPDSetRightSoftkeyL", CTestSDKCFD::TestFNPDSetRightSoftkeyL ), - ENTRY( "TestFNPDRenameL", CTestSDKCFD::TestFNPDRenameL ), - - // Test CAknMemorySelectionSettingPage - ENTRY( "TestSettingPageNewLNoParaL", CTestSDKCFD::TestSettingPageNewLNoParaL ), - ENTRY( "TestSettingPageNewL", CTestSDKCFD::TestSettingPageNewL ), - ENTRY( "TestSettingPageExecuteLOnlyMemoryTypeL", CTestSDKCFD::TestSettingPageExecuteLOnlyMemoryTypeL ), - ENTRY( "TestSettingPageDeconstructorL", CTestSDKCFD::TestSettingPageDeconstructorL ), - ENTRY( "TestSettingPageRunDlgLDTwoParaL", CTestSDKCFD::TestSettingPageRunDlgLDTwoParaL ), - ENTRY( "TestSettingPageRunDlgLDThreeParaL", CTestSDKCFD::TestSettingPageRunDlgLDThreeParaL ), - ENTRY( "TestSettingPageRunDlgLDFiveParaL", CTestSDKCFD::TestSettingPageRunDlgLDFiveParaL ), - - ENTRY( "TestSettingItemConstructorL", CTestSDKCFD::TestSettingItemConstructorL ), - ENTRY( "TestSettingItemDeconstructorL", CTestSDKCFD::TestSettingItemDeconstructorL ), - ENTRY( "TestSettingItemCompleteConstructionL", CTestSDKCFD::TestSettingItemCompleteConstructionL ), - ENTRY( "TestSettingItemEditItemL", CTestSDKCFD::TestSettingItemEditItemL ), - ENTRY( "TestSettingItemLoadL", CTestSDKCFD::TestSettingItemLoadL ), - ENTRY( "TestSettingItemStoreL", CTestSDKCFD::TestSettingItemStoreL ), - ENTRY( "TestSettingItemSettingTextL", CTestSDKCFD::TestSettingItemSettingTextL ), - - // Test CAknMemorySelectionSettingItemMultiDrive - ENTRY( "TestSettingItemMultiConstructorL", CTestSDKCFD::TestSettingItemMultiConstructorL ), - ENTRY( "TestSettingItemMultiDeconstructorL", CTestSDKCFD::TestSettingItemMultiDeconstructorL ), - ENTRY( "TestSettingItemMultiCompleteConstructionL", CTestSDKCFD::TestSettingItemMultiCompleteConstructionL ), - ENTRY( "TestSettingItemMultiEditItemL", CTestSDKCFD::TestSettingItemMultiEditItemL ), - ENTRY( "TestSettingItemMultiLoadL", CTestSDKCFD::TestSettingItemMultiLoadL ), - ENTRY( "TestSettingItemMultiStoreL", CTestSDKCFD::TestSettingItemMultiStoreL ), - ENTRY( "TestSettingItemMultiSettingTextL", CTestSDKCFD::TestSettingItemMultiSettingTextL ), - - // Test CAknMemorySelectionDialogMultiDrive - ENTRY( "TestMSDMDNewL", CTestSDKCFD::TestMSDMDNewL ), - ENTRY( "TestMSDMDNewWithResourceL", CTestSDKCFD::TestMSDMDNewWithResourceL ), - ENTRY( "TestMSDMDNewWithMediaL", CTestSDKCFD::TestMSDMDNewWithMediaL ), - ENTRY( "TestMSDMDSetTitleL", CTestSDKCFD::TestMSDMDSetTitleL ), - ENTRY( "TestMSDMDSetLeftSoftkeyL", CTestSDKCFD::TestMSDMDSetLeftSoftkeyL ), - ENTRY( "TestMSDMDSetRightSoftkeyL", CTestSDKCFD::TestMSDMDSetRightSoftkeyL ), - ENTRY( "TestMSDMDExecuteL", CTestSDKCFD::TestMSDMDExecuteL ), - ENTRY( "TestMSDMDExecuteLDefaultFolderL", CTestSDKCFD::TestMSDMDExecuteLDefaultFolderL ), - ENTRY( "TestMSDMDRunDlgLD", CTestSDKCFD::TestMSDMDRunDlgLD ), - ENTRY( "TestMSDMDRunDlgLDTitleL", CTestSDKCFD::TestMSDMDRunDlgLDTitleL ), - ENTRY( "TestMSDMDRunDlgLDResourceL", CTestSDKCFD::TestMSDMDRunDlgLDResourceL ), - ENTRY( "TestMSDMDGetItemL", CTestSDKCFD::TestMSDMDGetItemL ), - ENTRY( "TestMSDMDAddDrivePathsL", CTestSDKCFD::TestMSDMDAddDrivePathsL ), - ENTRY( "TestMSDMDFindIndexByDriveL", CTestSDKCFD::TestMSDMDFindIndexByDriveL ), - - // [test cases entries] - - }; - - const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); - - return RunInternalL( KFunctions, count, aItem ); - - } - -// [End of File] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblockscommondialogs.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblockscommondialogs.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,583 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 AknCommonDialogs.h -* -*/ - - - -// [INCLUDE FILES] -#include -#include -#include -#include - -#include "testsdkcfd.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD( fileName, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLDFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLDFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD( fileName, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLDTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLDTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD( fileName, 0, fileSelTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLDFileIdL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLDFileIdL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD( fileName, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunMoveDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunMoveDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogs::RunMoveDlgLD( directory, 0, observer ); - STIF_ASSERT_FALSE( flag ); - CleanupStack::PopAndDestroy( observer ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunMoveDlgLDFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunMoveDlgLDFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogs::RunMoveDlgLD( directory, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunMoveDlgLDTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunMoveDlgLDTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogs::RunMoveDlgLD( directory, 0, fileSelTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunMoveDlgLDFileIdL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunMoveDlgLDFileIdL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - TBool flag = AknCommonDialogs::RunMoveDlgLD( directory, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSaveDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSaveDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogs::RunSaveDlgLD( defaultFileName, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSaveDlgLDFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSaveDlgLDFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogs::RunSaveDlgLD( defaultFileName, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSaveDlgLDTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSaveDlgLDTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - _LIT( KFileNamePromptTitle, "File Name Prompt Title" ); - TBuf fileNamePromptTitle( KFileNamePromptTitle ); - - TBool flag = AknCommonDialogs::RunSaveDlgLD - ( defaultFileName, 0, fileSelTitle, fileNamePromptTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSaveDlgLDFileIdL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSaveDlgLDFileIdL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - - TBool flag = AknCommonDialogs::RunSaveDlgLD( defaultFileName, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSaveDlgLDIdTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSaveDlgLDIdTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - _LIT( KFileNamePromptTitle, "File Name Prompt Title" ); - TBuf fileNamePromptTitle( KFileNamePromptTitle ); - - TBool flag = AknCommonDialogs::RunSaveDlgLD - ( defaultFileName, 0, 0, fileNamePromptTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSaveDlgNoDirectorySelectionLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSaveDlgNoDirectorySelectionLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - - TBool flag = AknCommonDialogs::RunSaveDlgNoDirectorySelectionLD - ( defaultFileName, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSaveDlgNoDirectorySelectionLDTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSaveDlgNoDirectorySelectionLDTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - _LIT( KFileNamePromptTitle, "File Name Prompt Title" ); - TBuf fileNamePromptTitle( KFileNamePromptTitle ); - - TBool flag = AknCommonDialogs::RunSaveDlgNoDirectorySelectionLD - ( defaultFileName, 0, fileNamePromptTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunCopyDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunCopyDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogs::RunCopyDlgLD( directory, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunCopyDlgLDFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunCopyDlgLDFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogs::RunCopyDlgLD( directory, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunCopyDlgLDFileIdL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunCopyDlgLDFileIdL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - TBool flag = AknCommonDialogs::RunCopyDlgLD( directory, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLDFolderL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLDFolderL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data\\Images" ); - TBuf startFolder( KStartFolder ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD( fileName, startFolder, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLDFolderFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLDFolderFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data\\Images" ); - TBuf startFolder( KStartFolder ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD - ( fileName, startFolder, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLDFolderTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLDFolderTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data\\Images" ); - TBuf startFolder( KStartFolder ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD - ( fileName, startFolder, 0, fileSelTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLDFolderFileIDL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLDFolderFileIDL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data" ); - TBuf startFolder( KStartFolder ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD - ( fileName, startFolder, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSelectDlgLDFolderTitleFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSelectDlgLDFolderTitleFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data" ); - TBuf startFolder( KStartFolder ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogs::RunSelectDlgLD - ( fileName, startFolder, 0, 0, fileSelTitle, NULL, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunSaveDlgLDFolderTitleFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunSaveDlgLDFolderTitleFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data" ); - TBuf startFolder( KStartFolder ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogs::RunSaveDlgLD - ( fileName, startFolder, 0, 0, fileSelTitle, NULL, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDRunFolderSelectDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDRunFolderSelectDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KFolder, "C:\\Data" ); - TBuf folder( KFolder ); - _LIT( KStartFolder, "C:\\Data\\Images" ); - TBuf startFolder( KStartFolder ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogs::RunFolderSelectDlgLD - ( folder, startFolder, 0, 0, fileSelTitle, NULL, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// [End of File] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblockscommondialogsdynmem.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblockscommondialogsdynmem.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,608 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 AknCommonDialogsDynMem.h -* -*/ - - - -// [INCLUDE FILES] -#include -#include -#include -#include - -#include "testsdkcfd.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, fileName, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLDFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLDFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypeMMC, fileName, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLDTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLDTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypeMMC, fileName, 0, fileSelTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLDFileIdL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLDFileIdL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypeMMC, fileName, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunMoveDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunMoveDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogsDynMem::RunMoveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypeMMC, directory, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunMoveDlgLDFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunMoveDlgLDFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogsDynMem::RunMoveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypeMMC, directory, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunMoveDlgLDTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunMoveDlgLDTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogsDynMem::RunMoveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypeMMC, directory, 0, fileSelTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunMoveDlgLDFileIdL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunMoveDlgLDFileIdL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - TBool flag = AknCommonDialogsDynMem::RunMoveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypeMMC, directory, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSaveDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSaveDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogsDynMem::RunSaveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, defaultFileName, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSaveDlgLDFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSaveDlgLDFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogsDynMem::RunSaveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, defaultFileName, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSaveDlgLDTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSaveDlgLDTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - _LIT( KFileNamePromptTitle, "File Name Prompt Title" ); - TBuf fileNamePromptTitle( KFileNamePromptTitle ); - - TBool flag = AknCommonDialogsDynMem::RunSaveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, defaultFileName, - 0, fileSelTitle, fileNamePromptTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSaveDlgLDFileIdL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSaveDlgLDFileIdL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - - TBool flag = AknCommonDialogsDynMem::RunSaveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, defaultFileName, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSaveDlgLDIdTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSaveDlgLDIdTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - _LIT( KFileNamePromptTitle, "File Name Prompt Title" ); - TBuf fileNamePromptTitle( KFileNamePromptTitle ); - - TBool flag = AknCommonDialogsDynMem::RunSaveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, defaultFileName, 0, 0, - fileNamePromptTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSaveDlgNoDirectorySelectionLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSaveDlgNoDirectorySelectionLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - - TBool flag = AknCommonDialogsDynMem::RunSaveDlgNoDirectorySelectionLD - ( AknCommonDialogsDynMem::EMemoryTypeMMC, defaultFileName, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSaveDlgNoDirectorySelectionLDTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSaveDlgNoDirectorySelectionLDTitleL - ( CStifItemParser& /*aItem*/ ) - { - _LIT( KDefaultFileName, "Save Dialog" ); - TBuf defaultFileName( KDefaultFileName ); - _LIT( KFileNamePromptTitle, "File Name Prompt Title" ); - TBuf fileNamePromptTitle( KFileNamePromptTitle ); - - TBool flag = AknCommonDialogsDynMem::RunSaveDlgNoDirectorySelectionLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, defaultFileName, 0, - fileNamePromptTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunCopyDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunCopyDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogsDynMem::RunCopyDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, directory, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunCopyDlgLDFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunCopyDlgLDFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogsDynMem::RunCopyDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, directory, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunCopyDlgLDFileIdL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunCopyDlgLDFileIdL( CStifItemParser& /*aItem*/ ) - { - _LIT( KDirectory, "C:\\Data" ); - TBuf directory( KDirectory ); - - TBool flag = AknCommonDialogsDynMem::RunCopyDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, directory, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLDFolderL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLDFolderL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data\\Images" ); - TBuf startFolder( KStartFolder ); - - struct MObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - }; - - MObserver* observer = new( ELeave ) MObserver; - CleanupStack::PushL( observer ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, fileName, startFolder, 0, observer ); - - CleanupStack::PopAndDestroy( observer ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLDFolderFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLDFolderFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data\\Images" ); - TBuf startFolder( KStartFolder ); - - struct MFileFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - MFileFilter* filter = new (ELeave) MFileFilter; - CleanupStack::PushL( filter ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, fileName, startFolder, 0, filter, NULL ); - - CleanupStack::PopAndDestroy( filter ); - - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLDFolderTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLDFolderTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data\\Images" ); - TBuf startFolder( KStartFolder ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, fileName, startFolder, 0, - fileSelTitle, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLDFolderFileIDL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLDFolderFileIDL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data" ); - TBuf startFolder( KStartFolder ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, fileName, startFolder, 0, 0, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSelectDlgLDFolderTitleFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSelectDlgLDFolderTitleFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data" ); - TBuf startFolder( KStartFolder ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogsDynMem::RunSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, fileName, startFolder, 0, 0, - fileSelTitle, NULL, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunSaveDlgLDFolderTitleFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunSaveDlgLDFolderTitleFilterL( CStifItemParser& /*aItem*/ ) - { - _LIT( KFileName, "Select Dialog" ); - TBuf fileName( KFileName ); - _LIT( KStartFolder, "C:\\Data" ); - TBuf startFolder( KStartFolder ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogsDynMem::RunSaveDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, fileName, startFolder, 0, 0, - fileSelTitle, NULL, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestCDDMRunFolderSelectDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestCDDMRunFolderSelectDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KFolder, "C:\\Data" ); - TBuf folder( KFolder ); - _LIT( KStartFolder, "C:\\Data\\Images" ); - TBuf startFolder( KStartFolder ); - _LIT( KFileSelTitle, "File Selection Title" ); - TBuf fileSelTitle( KFileSelTitle ); - - TBool flag = AknCommonDialogsDynMem::RunFolderSelectDlgLD - ( AknCommonDialogsDynMem::EMemoryTypePhone, folder, startFolder, 0, 0, - fileSelTitle, NULL, NULL ); - STIF_ASSERT_FALSE( flag ); - - return KErrNone; - } - - -// [End of File] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksfilenamepromptdialog.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksfilenamepromptdialog.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,294 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 CAknFileNamePromptDialog.h - * -*/ - - -// [INCLUDE FILES] -#include "testsdkcfd.h" - -// ============================ MEMBER FUNCTIONS =============================== - - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDNewL -// ----------------------------------------------------------------------------- -// - -TInt CTestSDKCFD::TestFNPDNewL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDNewL, "In TestFNPDNewL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDNewL ); - // Print to log file - iLog->Log( KTestFNPDNewL ); - - TInt err = KErrNone; - TRAP( err, iFNPDialog = CAknFileNamePromptDialog::NewL(); ); - return err; - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDNewLWithResL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDNewLWithResL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDNewL, "In TestFNPDNewL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDNewL ); - // Print to log file - iLog->Log( KTestFNPDNewL ); - - TInt err = KErrNone; - TRAP( err, iFNPDialog = CAknFileNamePromptDialog::NewL(0); ); - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDSetPathL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDSetPathL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDSetPathL, "In TestFNPDSetPathL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDSetPathL ); - // Print to log file - iLog->Log( KTestFNPDSetPathL ); - - TFileName folder(_L("C:\\Data\\")); - TInt err = KErrNone; - TRAP( err, iFNPDialog->SetPathL(folder); ); - return err; - } -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDExecuteL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDExecuteL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDExecuteL, "In TestFNPDExecuteL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDExecuteL ); - // Print to log file - iLog->Log( KTestFNPDExecuteL ); - - TFileName filename(_L("C:\\")); - - TInt err = KErrNone; - TRAP( err, iFNPDialog->ExecuteL(filename); ); - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDRunDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDRunDlgLD( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDRunDlgLD, "In TestFNPDRunDlgLD" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDRunDlgLD ); - // Print to log file - iLog->Log( KTestFNPDRunDlgLD ); - - TFileName filename(_L("C:\\")); - TFileName folder(_L("C:\\Data\\")); - TInt err = KErrNone; - - TRAP( err, CAknFileNamePromptDialog::RunDlgLD(filename, folder); ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDRunDlgLDWithTitleLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDRunDlgLDWithTitleLD( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDRunDlgLD, "In TestFNPDRunDlgLD" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDRunDlgLD ); - // Print to log file - iLog->Log( KTestFNPDRunDlgLD ); - - TFileName filename(_L("C:\\")); - TFileName folder(_L("C:\\Data\\")); - TInt err = KErrNone; - - TRAP( err, CAknFileNamePromptDialog::RunDlgLD(filename, folder, _L("a title")); ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDRunDlgLDWithResLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDRunDlgLDWithResLD( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDRunDlgLD, "In TestFNPDRunDlgLD" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDRunDlgLD ); - // Print to log file - iLog->Log( KTestFNPDRunDlgLD ); - - TFileName filename(_L("C:\\")); - TFileName folder(_L("C:\\Data\\")); - TInt err = KErrNone; - - TRAP( err, CAknFileNamePromptDialog::RunDlgLD(filename, folder, 0); ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDDeleteL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDDeleteL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDDeleteL, "In TestFNPDDeleteL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDDeleteL ); - // Print to log file - iLog->Log( KTestFNPDDeleteL ); - - delete iFNPDialog; - iFNPDialog = NULL; - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDSetObserverL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDSetObserverL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDSetObserverL, "In TestFNPDSetObserverL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDSetObserverL ); - // Print to log file - iLog->Log( KTestFNPDSetObserverL ); - - struct MonkObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - } monkObserver; - - TInt err = KErrNone; - - TRAP( err, iFNPDialog->SetObserver(&monkObserver); ); - - TFileName filename(_L("C:\\Data\\")); - iFNPDialog->ExecuteL( filename ); - - return err; - } - -TInt CTestSDKCFD::TestFNPDSetTitleL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDSetTitleL, "In TestFNPDSetTitleL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDSetTitleL ); - // Print to log file - iLog->Log( KTestFNPDSetTitleL ); - - TInt err = KErrNone; - - TRAP( err, iFNPDialog->SetTitleL(_L("FNPD Title")); ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDSetLeftSoftkeyL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDSetLeftSoftkeyL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDSetLeftSoftkeyL, "In TestFNPDSetLeftSoftkeyL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDSetLeftSoftkeyL ); - // Print to log file - iLog->Log( KTestFNPDSetLeftSoftkeyL ); - - TInt err = KErrNone; - - TRAP( err, iFNPDialog->SetLeftSoftkeyL(_L("FNPD LSoftkey")); ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDSetRightSoftkeyL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDSetRightSoftkeyL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDSetRightSoftkeyL, "In TestFNPDSetRightSoftkeyL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDSetRightSoftkeyL ); - // Print to log file - iLog->Log( KTestFNPDSetRightSoftkeyL ); - - TInt err = KErrNone; - - TRAP( err, iFNPDialog->SetRightSoftkeyL(_L("FNPD RSoftkey")); ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFNPDRenameL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFNPDRenameL( CStifItemParser& /*aItem*/ ) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFNPDRenameL, "In TestFNPDRenameL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFNPDRenameL ); - // Print to log file - iLog->Log( KTestFNPDRenameL ); - - TInt err = KErrNone; - TFileName filename; - - TRAP( err, iFNPDialog->RenameL(filename); ); - - return err; - } - -// [End of File] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksfileselectiondialog.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksfileselectiondialog.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,365 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 CAknFileSelectionDialog.h - * -*/ - - -// [INCLUDE FILES] -#include -#include - -#include "testsdkcfd.h" - -// ============================ MEMBER FUNCTIONS =============================== - - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDNewL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDNewL( CStifItemParser& /*aItem*/) - { - - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDNewL, "In TestFSDNewL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDNewL ); - // Print to log file - iLog->Log( KTestFSDNewL ); - - TCommonDialogType iDlgType = ECFDDialogTypeSelect; - TInt err = KErrNone; - TRAP( err, iFDlg = CAknFileSelectionDialog::NewL( iDlgType ) ); - return err; - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDNewLWithResL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDNewLWithResL( CStifItemParser& /*aItem*/) - { - - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( FDlgNewWithResL, "In FDlgNewWithResL" ); - TestModuleIf().Printf( 0, KCFDTestModule, FDlgNewWithResL ); - // Print to log file - iLog->Log( FDlgNewWithResL ); - - TCommonDialogType iDlgType = ECFDDialogTypeSelect; - TInt err = KErrNone; - TRAP( err, iFDlg = CAknFileSelectionDialog::NewL( iDlgType, 0 ) ); - return err; - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDExecuteL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDExecuteL( CStifItemParser& /*aItem*/) - { - - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KFDlgExecuteL, "In FDlgExecuteL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KFDlgExecuteL ); - // Print to log file - iLog->Log( KFDlgExecuteL ); - - _LIT( KRootPath, "C:\\TestFramework\\" ); - TFileName rootFileName( KRootPath ); - TInt err = KErrNone; - TRAP( err, iFDlg->ExecuteL( rootFileName ) ); - - return err; - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDRunDlgLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDRunDlgLD( CStifItemParser& /*aItem*/) - { - - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( FDlgQuickCreateL, "In FDlgQuickCreateL" ); - TestModuleIf().Printf( 0, KCFDTestModule, FDlgQuickCreateL ); - // Print to log file - iLog->Log( FDlgQuickCreateL ); - - TFileName filename(_L("C:\\data\\")); - TFileName folder(_L("C:\\")); - TInt err = KErrNone; - - TRAP( err, CAknFileSelectionDialog::RunDlgLD( filename, folder ) ); - - return err; - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDRunDlgLDWithTitleLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDRunDlgLDWithTitleLD( CStifItemParser& /*aItem*/) - { - - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( FDlgQuickCreateWithTitleL, "In FDlgQuickCreateWithTitleL" ); - TestModuleIf().Printf( 0, KCFDTestModule, FDlgQuickCreateWithTitleL ); - // Print to log file - iLog->Log( FDlgQuickCreateWithTitleL ); - - TFileName filename; - TFileName folder(_L("C:\\Data\\")); - TInt err = KErrNone; - - TRAP( err, CAknFileSelectionDialog::RunDlgLD( filename, folder, _L( "a title" ) ) ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDRunDlgLDWithResLD -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDRunDlgLDWithResLD( CStifItemParser& /*aItem*/) - { - - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( FDlgQuickCreateWithResL, "In FDlgQuickCreateWithResL" ); - TestModuleIf().Printf( 0, KCFDTestModule, FDlgQuickCreateWithResL ); - // Print to log file - iLog->Log( FDlgQuickCreateWithResL ); - - TFileName filename; - TFileName folder(_L("C:\\Data\\")); - TInt err = KErrNone; - - TRAP( err, CAknFileSelectionDialog::RunDlgLD( filename, folder, 0 ) ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDDelete -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDDelete( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KFDlgDeleteL, "In FDlgDeleteL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KFDlgDeleteL ); - // Print to log file - iLog->Log( KFDlgDeleteL ); - - if( iFDlg ) - { - delete iFDlg; - iFDlg = NULL; - } - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDSetDefaultFolderL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDSetDefaultFolderL( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDSetDefaultFolderL, "In TestFSDSetDefaultFolderL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDSetDefaultFolderL ); - // Print to log file - iLog->Log( KTestFSDSetDefaultFolderL ); - - TInt err = KErrNone; - - TRAP( err, iFDlg->SetDefaultFolderL(_L("Data\\") ) ); - - return err; - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDSetTitleL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDSetTitleL( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDSetTitleL, "In TestFSDSetTitleL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDSetTitleL ); - // Print to log file - iLog->Log( KTestFSDSetTitleL ); - - TInt err = KErrNone; - - TRAP( err, iFDlg->SetTitleL( _L("a title") ) ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDSetLeftSoftkeyFileL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDSetLeftSoftkeyFileL( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDSetLeftSoftkeyFileL, "In TestFSDSetLeftSoftkeyFileL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDSetLeftSoftkeyFileL ); - // Print to log file - iLog->Log( KTestFSDSetLeftSoftkeyFileL ); - - TInt err = KErrNone; - - TRAP( err, iFDlg->SetLeftSoftkeyFileL( _L("left fkey") ) ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDSetLeftSoftkeyFolderL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDSetLeftSoftkeyFolderL( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDSetLeftSoftkeyFolderL, "In TestFSDSetLeftSoftkeyFolderL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDSetLeftSoftkeyFolderL ); - // Print to log file - iLog->Log( KTestFSDSetLeftSoftkeyFolderL ); - - TInt err = KErrNone; - - TRAP( err, iFDlg->SetLeftSoftkeyFolderL( _L( "left dkey" ) ) ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDSetRightSoftkeyRootFolderL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDSetRightSoftkeyRootFolderL( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDSetRightSoftkeyRootFolderL, "In TestFSDSetRightSoftkeyRootFolderL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDSetRightSoftkeyRootFolderL ); - // Print to log file - iLog->Log( KTestFSDSetRightSoftkeyRootFolderL ); - - TInt err = KErrNone; - - TRAP( err, iFDlg->SetRightSoftkeyRootFolderL( _L( "right root" ) ) ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDSetRightSoftkeySubfolderL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDSetRightSoftkeySubfolderL( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDSetRightSoftkeySubfolderL, "In TestFSDSetRightSoftkeySubfolderL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDSetRightSoftkeySubfolderL ); - // Print to log file - iLog->Log( KTestFSDSetRightSoftkeySubfolderL ); - - TInt err = KErrNone; - - TRAP( err, iFDlg->SetRightSoftkeySubfolderL( _L( "right sdir" ) ) ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDSetObserverL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDSetObserverL( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDSetObserverL, "In TestFSDSetObserverL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDSetObserverL ); - // Print to log file - iLog->Log( KTestFSDSetObserverL ); - - struct MonkObserver : public MAknFileSelectionObserver - { - TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) - { - return ETrue; - } - } monkObserver; - - TInt err = KErrNone; - - TRAP( err, iFDlg->SetObserver( &monkObserver ) ); - - TFileName folder( _L( "C:\\Data\\" ) ); - iFDlg->ExecuteL( folder ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestFSDAddFilterL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestFSDAddFilterL( CStifItemParser& /*aItem*/) - { - // Print to UI - _LIT( KCFDTestModule, "CFDTestModule" ); - _LIT( KTestFSDAddFilterL, "In TestFSDAddFilterL" ); - TestModuleIf().Printf( 0, KCFDTestModule, KTestFSDAddFilterL ); - // Print to log file - iLog->Log( KTestFSDAddFilterL ); - - struct MonkFilter : public MAknFileFilter - { - TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/) const - { - return ETrue; - } - }; - - TInt err = KErrNone; - - TRAP( err, iFDlg->AddFilterL( new (ELeave) MonkFilter ) );//problems, should be push into stack - - return err; - } - -// [End of File] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectiondialog.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectiondialog.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,442 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 AknCommonDialogs.h - * -*/ - - -// [INCLUDE FILES] -#include -#include - -#include "testsdkcfd.h" -#include "testsdkcfdmaknmemoryselectionobserver.h" - - -const TInt KRootPathLength = 16; -const TInt KDefaultFolderLength = 512; -const TInt KItemDiscriptor = 512; - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDNewL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDNewL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall, "Test MemorySelectionDialog::TestMSDNewL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDNewWithResourceL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDNewWithResourceL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall, "Test MemorySelectionDialog::TestMSDNewWithResourceL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, 0, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDNewWithMediaL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDNewWithMediaL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall, "Test MemorySelectionDialog::TestMSDNewWithMediaL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall ); - TInt media = 1; - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, 0, ETrue, - media ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDSetTitleL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDSetTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall, "Test MemorySelectionDialog::SetTitleL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KDialogTitle, "Hello Dialog!" ); - TDesC dialogTitle(KDialogTitle); - memorySelectionDialog->SetTitleL( dialogTitle ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDSetLeftSoftkeyL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDSetLeftSoftkeyL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::SetLeftSoftkeyL" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KLeftKey, "Enter" ); - TDesC dialogLeftKey( KLeftKey ); - - memorySelectionDialog->SetLeftSoftkeyL( dialogLeftKey ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDSetRightSoftkeyL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDSetRightSoftkeyL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::SetRightSoftkeyL" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KRightKey, "Enter" ); - TDesC dialogRightKey( KRightKey ); - - memorySelectionDialog->SetRightSoftkeyL( dialogRightKey ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDSetObserverL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDSetObserverL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::SetObserver" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CTestSDKCFDMAknMemorySelectionOberver* msobserver= - CTestSDKCFDMAknMemorySelectionOberver::NewL( ); - CleanupStack::PushL( msobserver ); - STIF_ASSERT_NOT_NULL( msobserver ); - - memorySelectionDialog->SetObserver( msobserver ); - - CleanupStack::PopAndDestroy( 2 ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDExecuteL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDExecuteL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::ExecuteL" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KCallExecuteL1True, "MemorySelectionDialog::ExecuteL Return ETrue" ); - _LIT( KCallExecuteL1False, "MemorySelectionDialog::ExecuteL Return EFalse" ); - - CAknMemorySelectionDialog::TMemory memType = - CAknMemorySelectionDialog::EPhoneMemory; - CAknCommonDialogsBase::TReturnKey returnKey; - - returnKey = memorySelectionDialog->ExecuteL( memType ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - if ( returnKey ) - { - iLog->Log( KCallExecuteL1True ); - } - else - { - iLog->Log( KCallExecuteL1False ); - } - - return KErrNone; - } -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDExecuteLDefaultFolderL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDExecuteLDefaultFolderL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::TestMSDExecuteLDefaultFolderL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KCallExecuteL1True, "MemorySelectionDialog::ExecuteL Return ETrue" ); - _LIT( KCallExecuteL1False, "MemorySelectionDialog::ExecuteL Return EFalse" ); - CAknMemorySelectionDialog::TMemory memType = - CAknMemorySelectionDialog::EPhoneMemory; - _LIT( KRootPath, "C:\\" ); - _LIT( KDefaultFolder, " " ); - TBuf rootBuf( KRootPath ); - TBuf defaultBuf( KDefaultFolder ); - - CAknCommonDialogsBase::TReturnKey returnKey; - returnKey = memorySelectionDialog->ExecuteL( memType, &rootBuf, - &defaultBuf ); - - if ( returnKey ) - { - iLog->Log( KCallExecuteL1True ); - } - else - { - iLog->Log( KCallExecuteL1False ); - } - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDRunDlgLD -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDRunDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::NewL1" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CTestSDKCFDMAknMemorySelectionOberver* msobserver= - CTestSDKCFDMAknMemorySelectionOberver::NewL( ); - CleanupStack::PushL( msobserver ); - STIF_ASSERT_NOT_NULL( msobserver ); - - CAknMemorySelectionDialog::TMemory memType = - CAknMemorySelectionDialog::EPhoneMemory; - CAknMemorySelectionDialog::RunDlgLD( memType, msobserver ); - - CleanupStack::PopAndDestroy( 2 ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestNewMemorySelectionDialog -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDRunDlgLDTitleL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::TestMSDRunDlgLDTitleL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KDialogTitle, "Hello Dialog!" ); - TBuf dialogTitle( KDialogTitle ); - - CTestSDKCFDMAknMemorySelectionOberver* msobserver = - CTestSDKCFDMAknMemorySelectionOberver::NewL( ); - CleanupStack::PushL( msobserver ); - STIF_ASSERT_NOT_NULL( msobserver ); - - CAknMemorySelectionDialog::TMemory memType = - CAknMemorySelectionDialog::EPhoneMemory; - - CAknMemorySelectionDialog::RunDlgLD( memType, dialogTitle, msobserver ); - - CleanupStack::PopAndDestroy( 2 ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestNewMemorySelectionDialog -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDRunDlgLDResourceL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::TestMSDRunDlgLDResourceL" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CTestSDKCFDMAknMemorySelectionOberver* msobserver= - CTestSDKCFDMAknMemorySelectionOberver::NewL( ); - CleanupStack::PushL( msobserver ); - STIF_ASSERT_NOT_NULL( msobserver ); - - CAknMemorySelectionDialog::TMemory memType = - CAknMemorySelectionDialog::EPhoneMemory; - - _LIT( KRootPath, "C:\\" ); - _LIT( KDefaultFolder, " " ); - - TBuf rootBuf( KRootPath ); - TBuf defaultBuf( KDefaultFolder ); - CAknMemorySelectionDialog::RunDlgLD( memType, 0, &rootBuf, - &defaultBuf, msobserver ); - - CleanupStack::PopAndDestroy( 2 ); - - return KErrNone; - } - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDGetItemL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDGetItemL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::TestMSDGetItemL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - TInt index = 0; - TBuf itemdes; - memorySelectionDialog->GetItem( index, itemdes ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDGetMemoriesL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDGetMemoriesL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialog::TestMSDGetMemoriesL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialog* memorySelectionDialog = - CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CAknMemorySelectionDialog::TMemory memType = - CAknMemorySelectionDialog::EPhoneMemory; - - _LIT( KRootPath, "C:\\" ); - _LIT( KDefaultFolder, "" ); - TBuf rootBuf(KRootPath); - TBuf defaultBuf(KDefaultFolder); - memorySelectionDialog->GetMemories( memType, &rootBuf, &defaultBuf ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// [End of File] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectiondialogmultidrive.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectiondialogmultidrive.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,392 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 CAknMemorySelectionDialogMultiDrive.h - * -*/ - - -// [INCLUDE FILES] -#include -#include - -#include "testsdkcfd.h" - - -const TInt KRootPathLength = 16; -const TInt KDefaultFolderLength = 512; -const TInt KItemDiscriptor = 512; - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDNewL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDNewL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall, "Test MemorySelectionDialogMultiDrive::TestMSDMDNewL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDNewWithResourceL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDNewWithResourceL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall, "Test MemorySelectionDialogMultiDrive::TestMSDMDNewWithResourceL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, 0, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDNewWithMediaL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDNewWithMediaL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall, "Test MemorySelectionDialogMultiDrive::TestMSDMDNewWithMediaL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall ); - TInt media = 1; - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, 0, ETrue, - media ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDSetTitleL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDSetTitleL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall, "Test MemorySelectionDialogMultiDrive::SetTitleL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KDialogTitle, "Hello Dialog!" ); - TDesC dialogTitle(KDialogTitle); - memorySelectionDialog->SetTitleL( dialogTitle ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDSetLeftSoftkeyL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDSetLeftSoftkeyL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::SetLeftSoftkeyL" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KLeftKey, "Enter" ); - TDesC dialogLeftKey( KLeftKey ); - - memorySelectionDialog->SetLeftSoftkeyL( dialogLeftKey ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDSetRightSoftkeyL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDSetRightSoftkeyL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::SetRightSoftkeyL" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KRightKey, "Enter" ); - TDesC dialogRightKey( KRightKey ); - - memorySelectionDialog->SetRightSoftkeyL( dialogRightKey ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDExecuteL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDExecuteL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::ExecuteL" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KCallExecuteL1True, "MemorySelectionDialogMultiDrive::ExecuteL Return ETrue" ); - _LIT( KCallExecuteL1False, "MemorySelectionDialogMultiDrive::ExecuteL Return EFalse" ); - - TDriveNumber selectedDrive = EDriveC; - CAknCommonDialogsBase::TReturnKey returnKey; - - returnKey = memorySelectionDialog->ExecuteL( selectedDrive ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - if ( returnKey ) - { - iLog->Log( KCallExecuteL1True ); - } - else - { - iLog->Log( KCallExecuteL1False ); - } - - return KErrNone; - } -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDExecuteLDefaultFolderL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDExecuteLDefaultFolderL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::TestMSDMDExecuteLDefaultFolderL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KCallExecuteL1True, "MemorySelectionDialogMultiDrive::ExecuteL Return ETrue" ); - _LIT( KCallExecuteL1False, "MemorySelectionDialogMultiDrive::ExecuteL Return EFalse" ); - - TDriveNumber selectedDrive = EDriveC; - _LIT( KRootPath, "C:\\" ); - _LIT( KDefaultFolder, " " ); - TBuf rootBuf( KRootPath ); - TBuf defaultBuf( KDefaultFolder ); - - CAknCommonDialogsBase::TReturnKey returnKey; - returnKey = memorySelectionDialog->ExecuteL( selectedDrive, &rootBuf, - &defaultBuf ); - - if ( returnKey ) - { - iLog->Log( KCallExecuteL1True ); - } - else - { - iLog->Log( KCallExecuteL1False ); - } - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDRunDlgLD -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDRunDlgLD( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::NewL1" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - TDriveNumber selectedDrive = EDriveC; - CAknMemorySelectionDialogMultiDrive::RunDlgLD( selectedDrive ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDRunDlgLDTitleL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDRunDlgLDTitleL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::TestMSDMDRunDlgLDTitleL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - _LIT( KDialogTitle, "Hello Dialog!" ); - TBuf dialogTitle( KDialogTitle ); - - TDriveNumber selectedDrive = EDriveC; - - CAknMemorySelectionDialogMultiDrive::RunDlgLD( selectedDrive, dialogTitle ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDRunDlgLDResourceL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDRunDlgLDResourceL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::TestMSDMDRunDlgLDResourceL" ); - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - TDriveNumber selectedDrive = EDriveC; - - _LIT( KRootPath, "C:\\" ); - _LIT( KDefaultFolder, " " ); - - TBuf rootBuf( KRootPath ); - TBuf defaultBuf( KDefaultFolder ); - CAknMemorySelectionDialogMultiDrive::RunDlgLD( selectedDrive, 0, &rootBuf, - &defaultBuf ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDGetItemL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDGetItemL( CStifItemParser& /*aItem*/ ) - { - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::TestMSDMDGetItemL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - TInt index = 0; - TBuf itemdes; - memorySelectionDialog->GetItem( index, itemdes ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDAddDrivePathsL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDAddDrivePathsL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::TestMSDMDAddDrivePathsL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - _LIT( KRootPath, "C:\\Data" ); - _LIT( KDefaultFolder, "Others" ); - TBuf rootBuf(KRootPath); - TBuf defaultBuf(KDefaultFolder); - memorySelectionDialog->AddDrivePathsL( rootBuf, defaultBuf ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestMSDMDFindIndexByDriveL -// ----------------------------------------------------------------------------- -TInt CTestSDKCFD::TestMSDMDFindIndexByDriveL( CStifItemParser& /*aItem*/ ) - { - - _LIT( KTitle, "Class " ); - _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::TestMSDMDFindIndexByDriveL" ); - - iLog->Log( KTitle ); - iLog->Log( KCall1 ); - - CAknMemorySelectionDialogMultiDrive* memorySelectionDialog = - CAknMemorySelectionDialogMultiDrive::NewL( ECFDDialogTypeNormal, ETrue ); - CleanupStack::PushL( memorySelectionDialog ); - STIF_ASSERT_NOT_NULL( memorySelectionDialog ); - - TDriveNumber drive = EDriveC; - memorySelectionDialog->FindIndexByDrive( drive ); - - CleanupStack::PopAndDestroy( memorySelectionDialog ); - - return KErrNone; - } - -// [End of File] diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingitem.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingitem.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,178 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 CAknMemorySelectionSettingItem.h - * -*/ - - -// [INCLUDE FILES] -#include -#include - -#include "testsdkcfd.h" -#include "testsdkcfdsettingitem.h" - -// CONSTS -const TInt KBufSize = 64; - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemConstructorL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemConstructorL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemConstructorL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - iSettingItemList = new (ELeave) CTestSettingItemList; - iSettingItemList->ConstructL(); - STIF_ASSERT_NOT_NULL( iSettingItemList ); - return KErrNone; - } -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemDeconstructorL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemDeconstructorL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemDeconstructorL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - CTestSettingItemList* temp = new (ELeave) CTestSettingItemList; - CleanupStack::PushL( temp ); - temp->ConstructL(); - CleanupStack::PopAndDestroy( temp ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemCompleteConstructionL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemCompleteConstructionL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemCompleteConstructionL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - if ( !iSettingItemList ) - { - iSettingItemList = new (ELeave) CTestSettingItemList; - iSettingItemList->ConstructL(); - } -// iSettingItemList->iItem->CompleteConstructionL(); - CAknMemorySelectionSettingPage* temp= NULL; - temp = iSettingItemList->iItem->GetSettingPagePointer(); - STIF_ASSERT_NOT_NULL( temp ); - temp = NULL; - return KErrNone; - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemEditItemL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemEditItemL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemEditItemL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - if ( !iSettingItemList ) - { - iSettingItemList = new (ELeave) CTestSettingItemList; - iSettingItemList->ConstructL(); - } - iSettingItemList->EditItemL(0, ETrue); - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemLoadL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemLoadL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemLoadL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - if ( !iSettingItemList ) - { - iSettingItemList = new (ELeave) CTestSettingItemList; - iSettingItemList->ConstructL(); - } - - CAknMemorySelectionDialog::TMemory backtpye = iSettingItemList->iItem->GetInternalData(); - STIF_ASSERT_EQUALS( CAknMemorySelectionDialog::EPhoneMemory, backtpye ); - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemStoreL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemStoreL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemStoreL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - if ( !iSettingItemList ) - { - iSettingItemList = new (ELeave) CTestSettingItemList; - iSettingItemList->ConstructL(); - } - iSettingItemList->StoreSettingsL(); - CAknMemorySelectionDialog::TMemory backtpye = iSettingItemList->iItem->GetExternalData(); - STIF_ASSERT_EQUALS( CAknMemorySelectionDialog::EPhoneMemory, backtpye ); - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemSettingTextL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemSettingTextL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemSettingTextL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - if ( !iSettingItemList ) - { - iSettingItemList = new (ELeave) CTestSettingItemList; - iSettingItemList->ConstructL(); - } - - iSettingItemList->iItem->GetSettingText(); - TBuf buf; - iSettingItemList->iItem->GetText( buf ); -// sth need to do - return KErrNone; - } - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingitemmultidrive.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingitemmultidrive.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,175 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 CAknMemorySelectionSettingItemMultidrive.h - * -*/ - - -// [INCLUDE FILES] -#include -#include - -#include "testsdkcfd.h" -#include "testsdkcfdsettingitemmultidrive.h" -#include "testsdkcfd.hrh" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemMultiConstructorL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemMultiConstructorL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemMultiConstructorL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - TDriveNumber selectedDrive = EDriveC; - CTestSettingItemMultiDrive* settingitem = - new ( ELeave ) CTestSettingItemMultiDrive( ETestSettingItem, selectedDrive ); - STIF_ASSERT_NOT_NULL( settingitem ); - CleanupStack::PushL( settingitem ); - CleanupStack::PopAndDestroy( settingitem ); - - return KErrNone; - } -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemMultiDeconstructorL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemMultiDeconstructorL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemMultiDeconstructorL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemMultiCompleteConstructionL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemMultiCompleteConstructionL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemMultiCompleteConstructionL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - TDriveNumber selectedDrive = EDriveC; - CTestSettingItemMultiDrive* settingitem = - new ( ELeave ) CTestSettingItemMultiDrive( ETestSettingItem, selectedDrive ); - CleanupStack::PushL( settingitem ); - settingitem->CompleteConstructionL(); - CAknMemorySelectionSettingItemExtension* temp= NULL; - temp = settingitem->GetExtensionPointer(); - STIF_ASSERT_NOT_NULL( temp ); - temp = NULL; - CleanupStack::PopAndDestroy( settingitem ); - return KErrNone; - - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemMultiEditItemL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemMultiEditItemL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemMultiEditItemL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - iSettingItemListMulti = new ( ELeave ) CTestSettingItemListMultiDrive; - iSettingItemListMulti->ConstructL(); - iSettingItemListMulti->EditItemL( 0, ETrue ); - delete iSettingItemListMulti; - iSettingItemListMulti = NULL; - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemMultiLoadL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemMultiLoadL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemMultiLoadL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - TDriveNumber selectedDrive = EDriveC; - CTestSettingItemMultiDrive* settingitem = - new ( ELeave ) CTestSettingItemMultiDrive( ETestSettingItem, selectedDrive ); - CleanupStack::PushL( settingitem ); - settingitem->CompleteConstructionL(); - settingitem->LoadL(); - CleanupStack::PopAndDestroy( settingitem ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemMultiStoreL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemMultiStoreL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemMultiStoreL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - TDriveNumber selectedDrive = EDriveC; - CTestSettingItemMultiDrive* settingitem = - new ( ELeave ) CTestSettingItemMultiDrive( ETestSettingItem, selectedDrive ); - CleanupStack::PushL( settingitem ); - settingitem->CompleteConstructionL(); - settingitem->StoreL(); - CleanupStack::PopAndDestroy( settingitem ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingItemMultiSettingTextL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingItemMultiSettingTextL(CStifItemParser& /*aItem*/) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingItemMultiSettingTextL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - TDriveNumber selectedDrive = EDriveC; - CTestSettingItemMultiDrive* settingitem = - new ( ELeave ) CTestSettingItemMultiDrive( ETestSettingItem, selectedDrive ); - CleanupStack::PushL( settingitem ); - settingitem->CompleteConstructionL(); - settingitem->SettingTextL(); - CleanupStack::PopAndDestroy( settingitem ); - - return KErrNone; - } - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingpage.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingpage.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,196 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 CAknMemorySelectionSettingPage.h -* -*/ - - -#include - -#include "testsdkcfd.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingPageNewLNoParaL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingPageNewLNoParaL( CStifItemParser& /*aItem*/ ) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingPageNewLNoPara" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log( KExample ); - - CAknMemorySelectionSettingPage* pagepointer = CAknMemorySelectionSettingPage::NewL(); - CleanupStack::PushL( pagepointer ); - STIF_ASSERT_NOT_NULL( pagepointer ); - CleanupStack::PopAndDestroy( pagepointer ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingPageNewL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingPageNewL( CStifItemParser& /*aItem*/ ) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KNewL, "In TestSettingPageNewL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KNewL ); - iLog->Log(KNewL); - - iSettingPage = CAknMemorySelectionSettingPage::NewL( R_TEST_MEMORY_SELECTION_DIALOG ); - STIF_ASSERT_NOT_NULL( iSettingPage ); - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingPageExecuteLOnlyMemoryTypeL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingPageExecuteLOnlyMemoryTypeL( CStifItemParser& aItem ) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingPageExecuteLOnlyMemoryType" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - // Print to log file - iLog->Log( KExample ); - - CAknMemorySelectionDialog::TMemory memorytype = CAknMemorySelectionDialog::EPhoneMemory; - CAknCommonDialogsBase::TReturnKey returnkey; - if( !iSettingPage ) - { - iSettingPage = CAknMemorySelectionSettingPage::NewL(); - } - - TInt num = 0; - TInt err = aItem.GetNextInt( num ); - if( err != KErrNone) - return err; - switch ( num ) - { - case ECaseOne: - { - returnkey = iSettingPage->ExecuteL(memorytype); - STIF_ASSERT_EQUALS( CAknCommonDialogsBase::ELeftSoftkey, returnkey ); - STIF_ASSERT_EQUALS( CAknMemorySelectionDialog::EPhoneMemory, memorytype ); - break; - } - case ECaseTwo: - { - returnkey = iSettingPage->ExecuteL(memorytype); - STIF_ASSERT_EQUALS( CAknCommonDialogsBase::ERightSoftkey, returnkey ); - STIF_ASSERT_EQUALS( CAknMemorySelectionDialog::EPhoneMemory, memorytype ); - break; - } - case ECaseThree: - { - returnkey = iSettingPage->ExecuteL(memorytype); - //ESelectionKey in TReturnKey can't be getten in here, ELeftSoftkey will be return - STIF_ASSERT_EQUALS( CAknCommonDialogsBase::ELeftSoftkey, returnkey ); - STIF_ASSERT_EQUALS( CAknMemorySelectionDialog::EPhoneMemory, memorytype ); - break; - } - default: - return KErrNotSupported; - } - - _LIT( KFinished, "TestSettingPageExecuteLOnlyMemoryTypeL finished" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KFinished ); - iLog->Log( KFinished ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingPageDeconstructor -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingPageDeconstructorL( CStifItemParser& /*aItem*/ ) - { - CAknMemorySelectionSettingPage* pagepointer = CAknMemorySelectionSettingPage::NewL(); - CleanupStack::PushL( pagepointer ); - STIF_ASSERT_NOT_NULL( pagepointer ); - CleanupStack::PopAndDestroy( pagepointer ); - - return KErrNone; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingPageRunDlgLDTwoParaL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingPageRunDlgLDTwoParaL( CStifItemParser& aItem ) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingPageRunDlgLDTwoParaL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log( KExample ); - - CTestControl* control = CTestControl::NewL(); - CleanupStack::PushL( control ); - CCoeEnv::Static()->AppUi()->AddToStackL( control ); - TInt err = control->TestSettingPageRunLDL( aItem ); - CCoeEnv::Static()->AppUi()->RemoveFromStack( control ); - CleanupStack::PopAndDestroy( control ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingPageRunDlgLDThreeParaL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingPageRunDlgLDThreeParaL( CStifItemParser& aItem ) - { - //can't get the title because the object will be destoried after display - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingPageRunDlgLDTwoParaL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - CTestControl* control = CTestControl::NewL(); - CleanupStack::PushL( control ); - CCoeEnv::Static()->AppUi()->AddToStackL( control ); - TInt err = control->TestSettingPageRunLDL( aItem ); - CCoeEnv::Static()->AppUi()->RemoveFromStack( control ); - CleanupStack::PopAndDestroy( control ); - - return err; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFD::TestSettingPageRunDlgLDFiveParaL -// ----------------------------------------------------------------------------- -// -TInt CTestSDKCFD::TestSettingPageRunDlgLDFiveParaL( CStifItemParser& aItem ) - { - _LIT( Ktestsdkcfd, "testsdkcfd" ); - _LIT( KExample, "In TestSettingPageRunDlgLDTwoParaL" ); - TestModuleIf().Printf( 0, Ktestsdkcfd, KExample ); - iLog->Log(KExample); - - CTestControl* control = CTestControl::NewL(); - CleanupStack::PushL( control ); - CCoeEnv::Static()->AppUi()->AddToStackL( control ); - TInt err = control->TestSettingPageRunLDL( aItem ); - CCoeEnv::Static()->AppUi()->RemoveFromStack( control ); - CleanupStack::PopAndDestroy( control ); - - return err; - } - -// End of File diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdcontrol.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdcontrol.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,170 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 CAknMemorySelectionSettingPage.h - * -*/ - - -// [INCLUDE FILES] - -#include -#include -#include - -#include "testsdkcfdcontrol.h" - -// CONSTS -const TInt KBufSize = 32; - -// ============================ MEMBER FUNCTIONS =============================== - - -// ----------------------------------------------------------------------------- -// CTestControl::NewL -// ----------------------------------------------------------------------------- -// -CTestControl* CTestControl::NewL() - { - CTestControl* self = new (ELeave) CTestControl; - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - -// ----------------------------------------------------------------------------- -// CTestControl::~CTestControl -// ----------------------------------------------------------------------------- -// -CTestControl::~CTestControl(){} - -// ----------------------------------------------------------------------------- -// CTestControl::CTestControl -// ----------------------------------------------------------------------------- -// -CTestControl::CTestControl(){}; - -// ----------------------------------------------------------------------------- -// CTestControl::ConstructL -// ----------------------------------------------------------------------------- -// -void CTestControl::ConstructL() - { - CreateWindowL(); - //add controls - SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect()); - ActivateL(); - } - -// ----------------------------------------------------------------------------- -// CTestControl::OfferKeyEventL -// ----------------------------------------------------------------------------- -// -TKeyResponse CTestControl::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/, - TEventCode /*aType*/) - { - return EKeyWasConsumed; - } - -// ----------------------------------------------------------------------------- -// CTestControl::Draw -// ----------------------------------------------------------------------------- -// -void CTestControl::Draw(const TRect& /*aRect*/) const - { - } - -// ----------------------------------------------------------------------------- -// CTestControl::CountComponentControls -// ----------------------------------------------------------------------------- -// -TInt CTestControl::CountComponentControls() const - { - return 0; - } - -// ----------------------------------------------------------------------------- -// CTestControl::ComponentControl -// ----------------------------------------------------------------------------- -// -CCoeControl* CTestControl::ComponentControl(TInt /*aIndex*/) const - { - return NULL; - - } - -// ----------------------------------------------------------------------------- -// CTestControl::SizeChanged -// ----------------------------------------------------------------------------- -// -void CTestControl::SizeChanged() - { - } - -// ----------------------------------------------------------------------------- -// CTestControl::TestSettingPageRunLDL -// ----------------------------------------------------------------------------- -// -TInt CTestControl::TestSettingPageRunLDL(CStifItemParser& aItem) - { - TInt num = 0; - TBool backvalue = EFalse; - CAknMemorySelectionDialog::TMemory memorytype = CAknMemorySelectionDialog::EMemoryCard; - TInt err = aItem.GetNextInt(num); - if (err != KErrNone) - return err; - switch (num) - { - case 1: - { - backvalue = CAknMemorySelectionSettingPage::RunDlgLD(memorytype, this); - break; - } - case 2: - { - TBuf tempbuf(_L("Example")); - backvalue = CAknMemorySelectionSettingPage::RunDlgLD(memorytype, tempbuf, NULL); - break; - } - case 3: - { - backvalue = CAknMemorySelectionSettingPage::RunDlgLD(memorytype, - R_TEST_MEMORY_SELECTION_DIALOG, NULL, NULL, NULL); - break; - } - default: - return KErrNotSupported; - } - if (backvalue) - { - //press key arrowup before playing dlg - CAknMemorySelectionDialog::EPhoneMemory == memorytype? err = 0 : err = KErrUnknown; - } - else - { - CAknMemorySelectionDialog::EMemoryCard == memorytype? err = 0 : err = KErrUnknown; - } - return err; - } - -// ----------------------------------------------------------------------------- -// CTestControl::OkToExitL -// ----------------------------------------------------------------------------- -// -TBool CTestControl::OkToExitL( CAknMemorySelectionDialog::TMemory /*aMemory*/ ) - { - // it is only for testing, no used - return ETrue; - } -// End of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdmaknmemoryselectionobserver.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdmaknmemoryselectionobserver.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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: observer -* -*/ - - -// INCLUDE FILES -#include "testsdkcfdmaknmemoryselectionobserver.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSDKCFDMAknMemorySelectionOberver::CTestSDKCFDMAknMemorySelectionOberver -// C++ default constructor can NOT contain any code, that -// might leave. -// ----------------------------------------------------------------------------- -// -CTestSDKCFDMAknMemorySelectionOberver::CTestSDKCFDMAknMemorySelectionOberver() - { - } - -// ----------------------------------------------------------------------------- -// Destructor -// ----------------------------------------------------------------------------- -// -CTestSDKCFDMAknMemorySelectionOberver::~CTestSDKCFDMAknMemorySelectionOberver() - { - } - -// ----------------------------------------------------------------------------- -// Get's called when user selects a memory. -// ----------------------------------------------------------------------------- -// -TBool CTestSDKCFDMAknMemorySelectionOberver::OkToExitL( - CAknMemorySelectionDialog::TMemory /*aMemory*/ ) - { - return ETrue; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFDMAknMemorySelectionOberver::NewL -// Two-phased constructor. -// ----------------------------------------------------------------------------- -// -CTestSDKCFDMAknMemorySelectionOberver* CTestSDKCFDMAknMemorySelectionOberver::NewL() - { - CTestSDKCFDMAknMemorySelectionOberver* self = new( ELeave ) CTestSDKCFDMAknMemorySelectionOberver; - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - -// ----------------------------------------------------------------------------- -// CTestSDKCFDMAknMemorySelectionOberver::ConstructL -// Symbian 2nd phase constructor can leave. -// ----------------------------------------------------------------------------- -// -void CTestSDKCFDMAknMemorySelectionOberver::ConstructL() - { - } - diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdsettingitem.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdsettingitem.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,117 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 Common File Dialogs - * -*/ - - -// [INCLUDE FILES] -#include "testsdkcfdsettingitem.h" -#include "testsdkcfd.hrh" - -// ============================ MEMBER FUNCTIONS =============================== - - -// ----------------------------------------------------------------------------- -// CTestSettingItem::GetText -// Get text value. -// ----------------------------------------------------------------------------- -// -void CTestSettingItem::GetText( TDes& aDes ) - { - TInt memoryIndex( CAknMemorySelectionDialog::EPhoneMemory ); - iSettingPage->GetItem( memoryIndex, aDes ); - } - -// ----------------------------------------------------------------------------- -// CTestSettingItem::CTestSettingItem -// Constructor. -// ----------------------------------------------------------------------------- -// -CTestSettingItem::CTestSettingItem( TInt aIdentifier, - CAknMemorySelectionSettingPage::TMemory& aSelectedMemory ) : - CAknMemorySelectionSettingItem( aIdentifier, aSelectedMemory ) - { - } - -// ----------------------------------------------------------------------------- -// CAknMemorySelectionDialog::TMemory CTestSettingItem::GetExternalData -// Get iExternale value. -// ----------------------------------------------------------------------------- -// -CAknMemorySelectionDialog::TMemory CTestSettingItem::GetExternalData() const - { - return iExternalData; - } - -// ----------------------------------------------------------------------------- -// CAknMemorySelectionDialog::TMemory CTestSettingItem::GetInternalData -// Get iInternale value. -// ----------------------------------------------------------------------------- -// -CAknMemorySelectionDialog::TMemory CTestSettingItem::GetInternalData() const - { - return iInternalData; - } - -// ----------------------------------------------------------------------------- -// CAknMemorySelectionSettingPage* CTestSettingItem::GetSettingPagePointer -// Get setting page pointer. -// ----------------------------------------------------------------------------- -// -CAknMemorySelectionSettingPage* CTestSettingItem::GetSettingPagePointer() const - { - return iSettingPage; - } - -// ----------------------------------------------------------------------------- -// CTestSettingItem::GetSettingText -// Get text value. -// ----------------------------------------------------------------------------- -// -TDes CTestSettingItem::GetSettingText() const - { - return iSettingText; - } - -// ----------------------------------------------------------------------------- -// CAknSettingItem* CTestSettingItemList::CreateSettingItemL -// Constructor. -// ----------------------------------------------------------------------------- -// -CAknSettingItem* CTestSettingItemList::CreateSettingItemL( TInt aIdentifier ) - { - CAknMemorySelectionDialog::TMemory memorytpye = - CAknMemorySelectionDialog::EPhoneMemory; - iItem = NULL; - switch (aIdentifier) - { - case ETestSettingItem: - iItem = new( ELeave )CTestSettingItem( aIdentifier, memorytpye ); - break; - } - return iItem; - } - -// ----------------------------------------------------------------------------- -// CTestSettingItemList::ConstructL -// By default Symbian 2nd phase constructor is private. -// ----------------------------------------------------------------------------- -// -void CTestSettingItemList::ConstructL() - { - CAknSettingItemList::ConstructFromResourceL( R_SETTINGS_ITEM_LIST ); - } - -// End of file diff -r 56e9a0aaad89 -r 407d15c32f24 classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdsettingitemmultidrive.cpp --- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdsettingitemmultidrive.cpp Fri Jun 11 13:54:51 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +0,0 @@ -/* -* Copyright (c) 2002 - 2007 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 Common File Dialogs - * -*/ - - -// [INCLUDE FILES] -#include -#include "testsdkcfdsettingitemmultidrive.h" -#include "testsdkcfd.hrh" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CTestSettingItemMultiDrive::CTestSettingItemMultiDrive -// Constructor. -// ----------------------------------------------------------------------------- -// -CTestSettingItemMultiDrive::CTestSettingItemMultiDrive( - TInt aIdentifier, TDriveNumber& aSelectedDrive ) : - CAknMemorySelectionSettingItemMultiDrive( aIdentifier, aSelectedDrive ) - { - } - -// ----------------------------------------------------------------------------- -// CAknMemorySelectionSettingItemExtension* CTestSettingItemMultiDrive::GetExtensionPointer -// Get setting page pointer. -// ----------------------------------------------------------------------------- -// -CAknMemorySelectionSettingItemExtension* CTestSettingItemMultiDrive::GetExtensionPointer() const - { - return iExtension; - } - -// ----------------------------------------------------------------------------- -// CAknSettingItem* CTestSettingItemListMultiDrive::CreateSettingItemL -// Constructor. -// ----------------------------------------------------------------------------- -// -CAknSettingItem* CTestSettingItemListMultiDrive::CreateSettingItemL( TInt aIdentifier ) - { - TDriveNumber selectedDrive = EDriveC; - iItem = NULL; - switch ( aIdentifier ) - { - case ETestSettingItem: - iItem = new( ELeave )CTestSettingItemMultiDrive( aIdentifier, selectedDrive ); - break; - } - return iItem; - } - -// ----------------------------------------------------------------------------- -// CTestSettingItemListMultiDrive::ConstructL -// By default Symbian 2nd phase constructor is private. -// ----------------------------------------------------------------------------- -// -void CTestSettingItemListMultiDrive::ConstructL() - { - CAknSettingItemList::ConstructFromResourceL( R_SETTINGS_ITEM_LIST ); - } - -// End of file diff -r 56e9a0aaad89 -r 407d15c32f24 commonuisupport/uifwsdocs/app-framework_documentation.mrp --- a/commonuisupport/uifwsdocs/app-framework_documentation.mrp Fri Jun 11 13:54:51 2010 +0300 +++ b/commonuisupport/uifwsdocs/app-framework_documentation.mrp Wed Jun 23 18:29:30 2010 +0300 @@ -1,19 +1,3 @@ -# -# Copyright (c) 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: -# - component app-framework_documentation source \sf\mw\classicui\commonuisupport\uifwsdocs\ diff -r 56e9a0aaad89 -r 407d15c32f24 commonuisupport/uikon/coresrc/EIKENV.CPP --- a/commonuisupport/uikon/coresrc/EIKENV.CPP Fri Jun 11 13:54:51 2010 +0300 +++ b/commonuisupport/uikon/coresrc/EIKENV.CPP Wed Jun 23 18:29:30 2010 +0300 @@ -48,7 +48,7 @@ #include #include #include -#include "coedatastorage.h" +#include "CoeDataStorage.h" #include #include #include diff -r 56e9a0aaad89 -r 407d15c32f24 uifw/AknGlobalUI/AknCapServer/clientsrc/AknCapServerClient.cpp --- a/uifw/AknGlobalUI/AknCapServer/clientsrc/AknCapServerClient.cpp Fri Jun 11 13:54:51 2010 +0300 +++ b/uifw/AknGlobalUI/AknCapServer/clientsrc/AknCapServerClient.cpp Wed Jun 23 18:29:30 2010 +0300 @@ -29,6 +29,7 @@ #include #include #include +#include // For global note. #include diff -r 56e9a0aaad89 -r 407d15c32f24 uifw/AvKon/src/Aknslider.cpp --- a/uifw/AvKon/src/Aknslider.cpp Fri Jun 11 13:54:51 2010 +0300 +++ b/uifw/AvKon/src/Aknslider.cpp Wed Jun 23 18:29:30 2010 +0300 @@ -4282,7 +4282,7 @@ { intensity = FeedbackIntensity(); } - feedback->StartFeedback( this, ETouchDynamicSlider, aPointerEvent, intensity, aTimeout ); + feedback->StartFeedback( this, ETouchContinuousSlider, aPointerEvent, intensity, aTimeout ); iExt->SetFlag( CAknSliderExtension::EFlagPlayingContinuousFb ); } } diff -r 56e9a0aaad89 -r 407d15c32f24 uifw/EikStd/cdlgsrc/EIKALERT.CPP --- a/uifw/EikStd/cdlgsrc/EIKALERT.CPP Fri Jun 11 13:54:51 2010 +0300 +++ b/uifw/EikStd/cdlgsrc/EIKALERT.CPP Wed Jun 23 18:29:30 2010 +0300 @@ -15,7 +15,7 @@ * */ - +#include #include #include #include diff -r 56e9a0aaad89 -r 407d15c32f24 uifw/EikStd/coctlsrc/EIKMENUB.CPP --- a/uifw/EikStd/coctlsrc/EIKMENUB.CPP Fri Jun 11 13:54:51 2010 +0300 +++ b/uifw/EikStd/coctlsrc/EIKMENUB.CPP Wed Jun 23 18:29:30 2010 +0300 @@ -983,7 +983,7 @@ TTouchLogicalFeedback fbLogicalType = ETouchFeedbackPopUp; if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) { - fbLogicalType = ETouchFeedbackOptionsMenuOpen; + fbLogicalType = ETouchFeedbackPopupOpen; } feedback->InstantFeedback( this, @@ -1173,7 +1173,7 @@ TTouchLogicalFeedback fbLogicalType = ETouchFeedbackPopUp; if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) { - fbLogicalType = ETouchFeedbackOptionsMenuClosed; + fbLogicalType = ETouchFeedbackPopupClose; } feedback->InstantFeedback( this, diff -r 56e9a0aaad89 -r 407d15c32f24 uifw/EikStd/coctlsrc/EIKMENUP.CPP --- a/uifw/EikStd/coctlsrc/EIKMENUP.CPP Fri Jun 11 13:54:51 2010 +0300 +++ b/uifw/EikStd/coctlsrc/EIKMENUP.CPP Wed Jun 23 18:29:30 2010 +0300 @@ -2794,7 +2794,7 @@ TTouchLogicalFeedback fbLogicalType = ETouchFeedbackPopUp; if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) { - fbLogicalType = ETouchFeedbackSubMenuOpen; + fbLogicalType = ETouchFeedbackPopupOpen; } iExtension->ImmediateFeedback( fbLogicalType, ETouchFeedbackVibra ); @@ -4953,7 +4953,7 @@ { if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) { - iExtension->ImmediateFeedback( ETouchFeedbackSubMenuClosed ); + iExtension->ImmediateFeedback( ETouchFeedbackPopupClose ); } else { @@ -5312,7 +5312,7 @@ { if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) { - iExtension->ImmediateFeedback( ETouchFeedbackSubMenuClosed ); + iExtension->ImmediateFeedback( ETouchFeedbackPopupClose ); } else { @@ -5440,7 +5440,7 @@ { if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) { - iExtension->ImmediateFeedback( ETouchFeedbackSubMenuClosed ); + iExtension->ImmediateFeedback( ETouchFeedbackPopupClose ); } else { @@ -5549,7 +5549,7 @@ AknTransEffect::EComponentTransitionsOff ) ) { iExtension->ImmediateFeedback( - ETouchFeedbackSubMenuClosed ); + ETouchFeedbackPopupClose ); } else {