--- a/akntouchgesturefw/inc/akntouchgesturefwdefs.h Mon Jun 21 22:36:19 2010 +0100
+++ b/akntouchgesturefw/inc/akntouchgesturefwdefs.h Thu Jul 22 16:35:40 2010 +0100
@@ -99,7 +99,7 @@
const TUint32 KAknTouchGestureFwAllGestureTypes = 0x7fffffff;
/// Default feedback intensity.
-const TInt KAknTouchGestureFwFeedbackIntensity = 50;
+const TInt KAknTouchGestureFwFeedbackIntensity = 100;
/// Pinch feedback timeout (in microseconds).
const TInt KAknTouchGestureFwPinchFeedbackTimeout = 200000;
--- a/classicui_info/classicui_metadata/classicui_metadata.mrp Mon Jun 21 22:36:19 2010 +0100
+++ b/classicui_info/classicui_metadata/classicui_metadata.mrp Thu Jul 22 16:35:40 2010 +0100
@@ -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
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/bwins/testdomcfdfilterfactoryu.def Mon Jun 21 22:36:19 2010 +0100
+++ /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 &)
-
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/conf/tctestdomcfdfilterfactory.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/conf/ui_testdomcfdfilterfactory.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/data/testdomcfdfilterfactory.rss Mon Jun 21 22:36:19 2010 +0100
+++ /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 <avkon.rsg>
-#include <avkon.rh>
-#include <eikon.rh>
-
-RESOURCE RSS_SIGNATURE
- {
- }
-RESOURCE TBUF
- {
- buf = "";
- }
-
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/eabi/testdomcfdfilterfactoryu.def Mon Jun 21 22:36:19 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-EXPORTS
- _Z9LibEntryLR13CTestModuleIf @ 1 NONAME
-
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/bld.inf Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/testdomcfdfilterfactory.mmp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <data_caging_paths.hrh>
-#ifdef SBSV2
- #include <platform_paths.hrh>
-#else // SBSV2 not defined
- #include <platform_paths.hrh>
-#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
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/testdomcfdfilterfactory.pkg Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/inc/testdomcfdfilterfactory.h Mon Jun 21 22:36:19 2010 +0100
+++ /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 <stiflogger.h>
-#include <testscripterinternal.h>
-#include <stiftestmodule.h>
-#include <testclassassert.h>
-
-// 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
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/init/testdomcfdfilterfactory.ini Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/src/testdomcfdfilterfactory.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <stiftestinterface.h>
-#include <settingserverclient.h>
-#include <e32property.h>
-#include <coemain.h>
-
-#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
--- a/classicui_plat/common_file_dialogs_filter_factory_api/tsrc/src/testdomcfdfilterfactoryblocks.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <e32svr.h>
-#include <stifparser.h>
-#include <stiftestinterface.h>
-#include <aknfilefilterfactory.h>
-#include <testdomcfdfilterfactory.rsg>
-#include <coemain.h>
-#include <barsread.h>
-
-#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]
-
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/directory_localizer_api/directory_localizer_api.metaxml Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,18 @@
+<?xml version="1.0" ?>
+<api id="5460bfbef62504f671eece880cbb2d78" dataversion="1.0">
+ <name>Directory Localizer API</name>
+ <description>An interface for localizing directory names.</description>
+ <type>c++</type>
+ <subsystem>uiutils</subsystem>
+ <libs>
+ <lib name="DirectoryLocalizer.lib" />
+ </libs>
+ <release category="sdk" sinceversion="3.2"/>
+ <attributes>
+ <!-- This indicates wether the api provedes separate html documentation -->
+ <!-- or is the additional documentation generated from headers. -->
+ <!-- If you are unsuere then the value is "no" -->
+ <htmldocprovided>yes</htmldocprovided>
+ <adaptation>no</adaptation>
+ </attributes>
+</api>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/directory_localizer_api/group/bld.inf Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,28 @@
+/*
+* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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: File that exports the files belonging to
+: Directory Localizer API
+*
+*/
+
+
+#include <platform_paths.hrh>
+
+PRJ_PLATFORMS
+DEFAULT
+
+PRJ_EXPORTS
+
+../inc/DirectoryLocalizer.rh MW_LAYER_PUBLIC_EXPORT_PATH(DirectoryLocalizer.rh)
+../inc/CDirectoryLocalizer.h MW_LAYER_PUBLIC_EXPORT_PATH(CDirectoryLocalizer.h)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/directory_localizer_api/inc/CDirectoryLocalizer.h Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,201 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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: Directory Localizer interface class
+*
+*/
+
+
+
+#ifndef C_CDIRECTORYLOCALIZER_H
+#define C_CDIRECTORYLOCALIZER_H
+
+#include <e32def.h>
+
+class TResourceReader;
+
+
+/**
+ * Directory Localizer interface class.
+ *
+ * @lib directorylocalizer.lib
+ * @since S60 v3.2
+ */
+NONSHARABLE_CLASS(CDirectoryLocalizer) : public CBase
+ {
+public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ * Construct a CDirectoryLocalizer and initialize it with platform specific
+ * default localization data.
+ *
+ * @return apointer to the created instance of CDirectoryLocalizer.
+ */
+ IMPORT_C static CDirectoryLocalizer* NewL();
+
+ /**
+ * Two-phased constructor.
+ * Construct a CDirectoryLocalizer and initialize it from resource pointed
+ * by aReader.
+ *
+ * @param aReader Reference to an initialized resource reader instance.
+ * @return apointer to the created instance of CDirectoryLocalizer.
+ */
+ IMPORT_C static CDirectoryLocalizer* NewL( TResourceReader& aReader );
+
+ /**
+ * Two-phased constructor.
+ * Construct a CDirectoryLocalizer and initialize it from a resource ID.
+ *
+ * @param aResourceId Resource identifier to DIRECTORYLOCALIZER resource.
+ * @return apointer to the created instance of CDirectoryLocalizer.
+ */
+ IMPORT_C static CDirectoryLocalizer* NewL( TInt aResourceId );
+
+ /**
+ * Destructor.
+ */
+ IMPORT_C virtual ~CDirectoryLocalizer();
+
+public: // New methods
+
+ /**
+ * Adds entries to the localizer from resource pointed by aReader.
+ *
+ * @param aReader Reference to an initialized resouce reader instance.
+ * @return None.
+ */
+ IMPORT_C void AddFromResourceL( TResourceReader& aReader );
+
+ /**
+ * Adds entries to the localizer from resource pointed by aResourceId.
+ *
+ * @param aResourceId Resource identifier to DIRECTORYLOCALIZER resource.
+ * @return None.
+ */
+ IMPORT_C void AddFromResourceL( TInt aResourceId );
+
+ /**
+ * This method is used to set the absolute path to be localized.
+ * For example "c:\\nokia\\images\\pictures". Take care that the path
+ * is given with or without the trailing backslash depending on
+ * how the paths are defined in the resource. localizer can utilize
+ * pathinfo to retrieve predefined folder paths.
+ *
+ * @param aFullPath Full path name.
+ * @return None.
+ *
+ * @code
+ * #include <PathInfo.h>
+ *
+ * // Get the the full path of the contacts folder in the memory card.
+ * TFileName path = PathInfo::GetPath( PathInfo::EImagesPath );
+ *
+ * // 'path' contains now the images path to be appended to a root path.
+ *
+ * CDirectoryLocalizer loc = CDirectoryLocalizer::NewL();
+ * loc->SetFullPath ( path );
+ * @endcode
+ *
+ * @see PathInfo
+ */
+ IMPORT_C void SetFullPath( const TDesC& aFullPath );
+
+ /**
+ * Tells if the last given path is recognized as a localized directory.
+ *
+ * @return ETrue if last given path is localized and EFalse if not.
+ */
+ IMPORT_C TBool IsLocalized() const;
+
+ /**
+ * Returns a reference to a TDesC that contains the last given path's
+ * localized name. If the path is not a localized directory, then
+ * a pointer to KNullDesc is returned.
+ *
+ * @return the last given path's localized name.
+ */
+ IMPORT_C const TDesC& LocalizedName() const;
+
+ /**
+ * Returns a reference to a TDesC that contains the last given path's
+ * extra data. If the path is not a localized directory or no extra
+ * data is defined, then a pointer to KNullDesc is returned.
+ *
+ * @return the last given path's extra data.
+ */
+ IMPORT_C const TDesC& ExtraData() const;
+
+ /**
+ * Returns the icon index of the last given path. If the path is not a
+ * localized directory KErrGeneral is returned.
+ *
+ * @return the icon index of the last given path.
+ *
+ * @code
+ * CDirectoryLocalizer loc = CDirectoryLocalizer::NewL();
+ * loc-> SetFullPath( aDir );
+ * if ( loc->Icon() != KErrGeneral )
+ * {
+ * //...
+ * }
+ * @endcode
+ */
+ IMPORT_C TInt Icon() const;
+
+protected:
+
+ /**
+ * C++ default constructor.
+ */
+ CDirectoryLocalizer();
+
+ /**
+ * Symbian 2nd phase constructor.
+ */
+ void ConstructL();
+
+private: // data
+
+ /**
+ * The index of the current entry.
+ */
+ TInt iCurrentEntry;
+
+ /**
+ * A pointer to the array for paths.
+ * Own.
+ */
+ CArrayPtrFlat<TDesC>* iPaths;
+
+ /**
+ * A pointer to the array for localised names.
+ * Own.
+ */
+ CArrayPtrFlat<TDesC>* iLocalizedNames;
+
+ /**
+ * A pointer to the array for extra data.
+ * Own.
+ */
+ CArrayPtrFlat<TDesC>* iExtraData;
+
+ /**
+ * The array for icon indices.
+ */
+ RArray<TInt> iIconIndices;
+
+ };
+
+#endif // C_CDIRECTORYLOCALIZER_H
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/directory_localizer_api/inc/DirectoryLocalizer.rh Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,47 @@
+/*
+* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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 header file
+*
+*/
+
+
+#ifndef DIRECTORYLOCALIZER_RH
+#define DIRECTORYLOCALIZER_RH
+
+// -----------------------------------------------------------------------------
+// DIRECTORY
+// A resource structure for a directory entry
+// -----------------------------------------------------------------------------
+//
+STRUCT DIRECTORY
+ {
+ LTEXT fullPath; // Full path of the directory including drive
+ LTEXT localizedName; // Localised name defined in LOC file
+ LTEXT extraData; // For example localised name for another layout
+ WORD iconIndex; // Index of an icon.
+ // See definition of CDirectoryLocalizer::Icon()
+ }
+
+// -----------------------------------------------------------------------------
+// DIRECTORYLOCALIZER
+// A resource structure for directory localizer.
+// Contains DIRECTORY structures.
+// -----------------------------------------------------------------------------
+//
+STRUCT DIRECTORYLOCALIZER
+ {
+ STRUCT directories[]; // An array of DIRECTORY structures.
+ }
+
+#endif // DIRECTORYLOCALIZER_RH
--- a/classicui_plat/extended_notifiers_api/inc/AknNotifierWrapper.h Mon Jun 21 22:36:19 2010 +0100
+++ b/classicui_plat/extended_notifiers_api/inc/AknNotifierWrapper.h Thu Jul 22 16:35:40 2010 +0100
@@ -21,6 +21,7 @@
#include <eiknotapi.h>
#include <eikserverapp.h>
#include <AknNotifierWrapperDefs.h>
+#include <e32notif.h>
// FORWARD DECLARATIONS
class CAknNotifierMessageObserver;
--- a/classicui_plat/extended_sounds_api/group/bld.inf Mon Jun 21 22:36:19 2010 +0100
+++ b/classicui_plat/extended_sounds_api/group/bld.inf Thu Jul 22 16:35:40 2010 +0100
@@ -33,7 +33,7 @@
// TEMP
// Temp solution to remove original version exported from audiothemes
// To be removed after one release cycle to platform
-../inc/ataudioeventapi.h MW_LAYER_PLATFORM_EXPORT_PATH(../../ataudioeventapi.h)
-../inc/mateventcompleteobserver.h MW_LAYER_PLATFORM_EXPORT_PATH(../../mateventcompleteobserver.h)
+//../inc/ataudioeventapi.h MW_LAYER_PLATFORM_EXPORT_PATH(../../ataudioeventapi.h)
+//../inc/mateventcompleteobserver.h MW_LAYER_PLATFORM_EXPORT_PATH(../../mateventcompleteobserver.h)
// TEMP
// TEMP
--- a/classicui_plat/find_item_ui_api/inc/finditemdialog.h Mon Jun 21 22:36:19 2010 +0100
+++ b/classicui_plat/find_item_ui_api/inc/finditemdialog.h Thu Jul 22 16:35:40 2010 +0100
@@ -54,7 +54,6 @@
#endif // !RD_VIRTUAL_PHONEBOOK
class TCoeHelpContext;
class CFindItemVoIPExtension;
-class CSchemeHandler;
class CAknsBasicBackgroundControlContext;
class CRichTextEditorContainer;
class CSendUi;
@@ -475,8 +474,6 @@
// Contains information of the VoIP profiles.
CFindItemVoIPExtension* iFindItemVoIPExtension;
- CSchemeHandler* iSchemeHandler;
-
CAknsBasicBackgroundControlContext* iBgContext;
CRichTextEditorContainer* iEdwinContainer;
--- a/classicui_plat/find_item_ui_api/inc/finditemmenu.h Mon Jun 21 22:36:19 2010 +0100
+++ b/classicui_plat/find_item_ui_api/inc/finditemmenu.h Thu Jul 22 16:35:40 2010 +0100
@@ -43,7 +43,6 @@
class CPbkDataSaveAppUi;
class RPbkViewResourceFile;
#endif // !RD_VIRTUAL_PHONEBOOK
-class CSchemeHandler;
class CFindItemVoIPExtension;
class CCommonUiMPEngineApiLoader;
@@ -445,7 +444,6 @@
// Possible callback number, owned.
HBufC* iCallbackNumber;
- CSchemeHandler* iSchemeHandler;
// Contains information of the VoIP profiles.
CFindItemVoIPExtension* iFindItemVoIPExtension;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/findutil_api.metaxml Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,18 @@
+<?xml version="1.0" ?>
+<api id="5311c0915be9c721affbd95d5308cf9a" dataversion="2.0">
+ <name>FindUtil API</name>
+ <description>Utility for search functionality in lists. Used e.g. in phonebook.</description>
+ <type>c++</type>
+ <collection>domain</collection>
+ <libs>
+ <lib name="findutil.lib" />
+ </libs>
+ <release category="platform"/>
+ <attributes>
+ <!-- This indicates wether the api provedes separate html documentation -->
+ <!-- or is the additional documentation generated from headers. -->
+ <!-- If you are unsuere then the value is "no" -->
+ <htmldocprovided>no</htmldocprovided>
+ <adaptation>no</adaptation>
+ </attributes>
+</api>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/group/bld.inf Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,28 @@
+/*
+* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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: File that exports the files belonging to
+: FindUtil API
+*
+*/
+
+
+
+#include <platform_paths.hrh>
+
+PRJ_PLATFORMS
+DEFAULT
+
+PRJ_EXPORTS
+
+../inc/FindUtil.h OS_LAYER_PLATFORM_EXPORT_PATH(FindUtil.h)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/inc/FindUtil.h Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,84 @@
+/*
+* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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:
+*
+*/
+
+
+
+#ifndef __FINDUTIL_H__
+#define __FINDUTIL_H__
+
+#include <e32base.h>
+
+/**
+* Identify the match policy for FindUtil API
+*/
+enum TMatchPolicy
+{
+ EDefault,
+ ECustomConverter
+};
+
+/**
+* Interface for the conversion of find string
+*/
+class MFindStringConverter
+ {
+public:
+ virtual void Converter(const TDesC& aSourStr, TDes& aDestStr) = 0;
+ };
+
+/**
+* FindUtil API
+*/
+class MFindUtil
+ {
+public:
+ virtual TBool Match(const TDesC& aContactsField, const TDesC& aWord) = 0;
+ virtual TBool MatchRefineL( const TDesC& aItemString, const TDesC &aSearchText) = 0;
+ virtual TBool IsWordValidForMatching(const TDesC& aWord) = 0;
+ virtual TBool MatchAdaptiveRefineL( const TDesC& aItemString, const TDesC &aSearchText, HBufC*& aNextChars ) = 0;
+ virtual TBool MatchRefineL( const TDesC& aItemString, const TDesC& aSearchText,
+ TMatchPolicy aPolicy, MFindStringConverter* aConverter) = 0;
+ };
+
+/**
+* CFindUtil instance gives access to MFindUtil interface.
+*/
+NONSHARABLE_CLASS(CFindUtil) : public CBase
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Creates a new CFindUtil instance.
+ * In those language variants, where FindUtil is not used,
+ * this method returns NULL.
+ */
+ IMPORT_C static CFindUtil* NewL();
+ IMPORT_C ~CFindUtil();
+
+ public: // New functions
+ MFindUtil* Interface() {return iInterface;}
+
+ private: // Private constructors
+ CFindUtil();
+ void ConstructL();
+
+ private: // Data
+ MFindUtil* iInterface;
+ RLibrary iLib;
+ };
+
+#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/conf/tctestdomfindutil.cfg Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,84 @@
+[Test]
+title TestMatchRefineL
+run testscripter c:\testframework\ui_testdomfindutil.cfg 1
+[Endtest]
+
+
+[Test]
+title TestMatch1
+run testscripter c:\testframework\ui_testdomfindutil.cfg 2
+[Endtest]
+
+
+[Test]
+title TestMatch2
+run testscripter c:\testframework\ui_testdomfindutil.cfg 3
+[Endtest]
+
+
+[Test]
+title TestMatch3
+run testscripter c:\testframework\ui_testdomfindutil.cfg 4
+[Endtest]
+
+
+[Test]
+title TestMatch4
+run testscripter c:\testframework\ui_testdomfindutil.cfg 5
+[Endtest]
+
+
+[Test]
+title TestMatch5
+run testscripter c:\testframework\ui_testdomfindutil.cfg 6
+[Endtest]
+
+
+[Test]
+title TestIsWordValidForMatching1
+run testscripter c:\testframework\ui_testdomfindutil.cfg 7
+[Endtest]
+
+
+[Test]
+title TestIsWordValidForMatching2
+run testscripter c:\testframework\ui_testdomfindutil.cfg 8
+[Endtest]
+
+
+[Test]
+title TestIsWordValidForMatching3
+run testscripter c:\testframework\ui_testdomfindutil.cfg 9
+[Endtest]
+
+
+[Test]
+title TestMatchAdaptiveRefineL1
+run testscripter c:\testframework\ui_testdomfindutil.cfg 10
+[Endtest]
+
+
+[Test]
+title TestMatchAdaptiveRefineL2
+run testscripter c:\testframework\ui_testdomfindutil.cfg 11
+[Endtest]
+
+
+[Test]
+title TestMatchAdaptiveRefineL3
+run testscripter c:\testframework\ui_testdomfindutil.cfg 12
+[Endtest]
+
+
+[Test]
+title TestMatchAdaptiveRefineL4
+run testscripter c:\testframework\ui_testdomfindutil.cfg 13
+[Endtest]
+
+
+[Test]
+title TestNewL
+run testscripter c:\testframework\ui_testdomfindutil.cfg 14
+[Endtest]
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/conf/ui_testdomfindutil.cfg Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,113 @@
+[Test]
+title TestMatchRefineL
+create testdomfindutil test
+test TestMatchRefineL vaibhav mahesh
+delete test
+[Endtest]
+
+
+[Test]
+title TestMatch1
+create testdomfindutil test
+test TestMatch vaibhav vaib
+delete test
+[Endtest]
+
+
+[Test]
+title TestMatch2
+create testdomfindutil test
+test TestMatch vaibhav vaibhav
+delete test
+[Endtest]
+
+
+[Test]
+title TestMatch3
+create testdomfindutil test
+test TestMatch vaibhav mahesh
+delete test
+[Endtest]
+
+
+[Test]
+title TestMatch4
+create testdomfindutil test
+test TestMatch vaibhav
+delete test
+[Endtest]
+
+
+[Test]
+title TestMatch5
+create testdomfindutil test
+test TestMatch vaibhavchavagoundapatilhowareyoueverythingfineoranythingspetial hi
+delete test
+[Endtest]
+
+
+[Test]
+title TestIsWordValidForMatching1
+create testdomfindutil test
+test TestIsWordValidForMatching vaibhav
+delete test
+[Endtest]
+
+
+[Test]
+title TestIsWordValidForMatching2
+create testdomfindutil test
+test TestIsWordValidForMatching 123
+delete test
+[Endtest]
+
+
+[Test]
+title TestIsWordValidForMatching3
+create testdomfindutil test
+test TestIsWordValidForMatching ~*&%
+delete test
+[Endtest]
+
+
+[Test]
+title TestMatchAdaptiveRefineL1
+create testdomfindutil test
+test TestMatchAdaptiveRefineL vaibhav vaibhav vaibhav
+delete test
+[Endtest]
+
+
+
+[Test]
+title TestMatchAdaptiveRefineL2
+create testdomfindutil test
+test TestMatchAdaptiveRefineL vaibhav vaibhav bhav
+delete test
+[Endtest]
+
+
+[Test]
+title TestMatchAdaptiveRefineL3
+create testdomfindutil test
+test TestMatchAdaptiveRefineL vaibhav mahesh raj
+delete test
+[Endtest]
+
+
+[Test]
+title TestMatchAdaptiveRefineL4
+create testdomfindutil test
+test TestMatchAdaptiveRefineL vaibhav vai
+delete test
+[Endtest]
+
+
+[Test]
+title TestNewL
+create testdomfindutil test
+test TestNewL
+delete test
+[Endtest]
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/group/bld.inf Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,35 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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 findutil.h
+*
+*/
+
+
+
+
+PRJ_PLATFORMS
+DEFAULT
+
+PRJ_TESTEXPORTS
+
+
+PRJ_EXPORTS
+
+
+PRJ_TESTMMPFILES
+testdomfindutil.mmp
+
+PRJ_MMPFILES
+
+// End of File
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/group/testdomfindutil.mmp Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,48 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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 findutil.h
+*
+*/
+
+
+
+
+#include <data_caging_paths.hrh>
+#include <platform_paths.hrh>
+
+TARGET testdomfindutil.dll
+TARGETTYPE dll
+UID 0x1000008D 0x2001CB80
+
+CAPABILITY ALL -TCB
+
+DEFFILE testdomfindutil.def
+
+USERINCLUDE ../inc
+
+MW_LAYER_SYSTEMINCLUDE
+
+SOURCEPATH ../src
+
+SOURCE testdomfindutil.cpp
+SOURCE testdomfindutilblocks.cpp
+
+LIBRARY euser.lib
+LIBRARY stiftestinterface.lib
+LIBRARY stiftestengine.lib
+LIBRARY findutil.lib
+
+LANG SC
+
+// End of File
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/group/testdomfindutil.pkg Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,39 @@
+;
+; 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 the License "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:
+;
+&EN
+
+; Header
+#{"testdomfindutil"}, (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\testdomfindutil.ini"-"c:\Testframework\testdomfindutil.ini", FF ; FF stands for Normal file
+"..\conf\tctestdomfindutil.cfg"-"c:\Testframework\tctestdomfindutil.cfg", FF ; FF stands for Normal file
+"..\conf\ui_testdomfindutil.cfg"-"c:\Testframework\ui_testdomfindutil.cfg", FF ; FF stands for Normal file
+
+"\epoc32\RELEASE\ARMV5\urel\testdomfindutil.dll"-"c:\sys\bin\testdomfindutil.dll", FF
+
+
+; Trim For Mms
+; ------------
+; to be added later
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/inc/testdomfindutil.h Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,156 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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 findutil.h
+*
+*/
+
+
+
+
+
+#ifndef C_TESTDOMFINDUTIL_H
+#define C_TESTDOMFINDUTIL_H
+
+// INCLUDES
+#include <stiflogger.h>
+#include <testscripterinternal.h>
+#include <stiftestmodule.h>
+#include <testclassassert.h>
+
+// MACROS
+#define TEST_CLASS_VERSION_MAJOR 0
+#define TEST_CLASS_VERSION_MINOR 0
+#define TEST_CLASS_VERSION_BUILD 0
+
+// Logging path
+_LIT( KtestdomfindutilLogPath, "\\logs\\testframework\\testdomfindutil\\" );
+// Log file
+_LIT( KtestdomfindutilLogFile, "testdomfindutil.txt" );
+_LIT( KtestdomfindutilLogFileWithTitle, "testdomfindutil_[%S].txt" );
+
+/**
+* CTestDOMFindUtil test class for STIF Test Framework TestScripter.
+* @since S60 5.0
+*/
+NONSHARABLE_CLASS( CTestDOMFindUtil ) : public CScriptBase
+ {
+public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CTestDOMFindUtil* NewL( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CTestDOMFindUtil();
+
+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.
+ */
+ CTestDOMFindUtil( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ /**
+ * Method used to log version of test class
+ */
+ void SendTestClassVersion();
+
+ /**
+ * Turn off ScreenSaver
+ * @since S60 5.0
+ * @return Symbian OS error code.
+ */
+ void TurnOffScreenSaver();
+
+ /**
+ * Restore ScreenSaver
+ * @since S60 5.0
+ * @return Symbian OS error code.
+ */
+ void RestoreScreenSaver();
+
+private: // test functions of MFindUtil class
+
+ /**
+ * test MatchRefineL method.
+ * @since S60 5.0
+ * @param aItem Script line containing parameters.
+ * @return Symbian OS error code.
+ */
+ virtual TInt TestMatchRefineL( CStifItemParser& aItem );
+
+ /**
+ * test Match method.
+ * @since S60 5.0
+ * @param aItem Script line containing parameters.
+ * @return Symbian OS error code.
+ */
+ virtual TInt TestMatchL( CStifItemParser& aItem );
+
+ /**
+ * test IsWordValidForMatching method.
+ * @since S60 5.0
+ * @param aItem Script line containing parameters.
+ * @return Symbian OS error code.
+ */
+ virtual TInt TestIsWordValidForMatchingL( CStifItemParser& aItem );
+
+ /**
+ * test MatchAdaptiveRefineL method.
+ * @since S60 5.0
+ * @param aItem Script line containing parameters.
+ * @return Symbian OS error code.
+ */
+ virtual TInt TestMatchAdaptiveRefineL( CStifItemParser& aItem );
+
+private: // test functions of CFindUtil class
+
+ /**
+ * test NewL method.
+ * @since S60 5.0
+ * @param aItem never used.
+ * @return Symbian OS error code.
+ */
+ virtual TInt TestNewL( CStifItemParser& aItem );
+
+private: // Data
+
+ /**
+ * ScreenSaver Property
+ */
+ TInt iOldScreenSaverProperty;
+
+ };
+
+#endif // C_TESTDOMFINDUTIL_H
+
+// End of File
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/init/testdomfindutil.ini Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,181 @@
+#
+# 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= testdomfindutiltestdomfindutiltestdomfindutil
+# 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\tctestdomfindutil.cfg
+[End_Module]
+
+#[New_Module]
+#ModuleName= testscripter
+#TestCaseFile= c:\testframework\ui_testdomfindutil.cfg
+#[End_Module]
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+#Load testmoduletestdomfindutil, optionally with initialization file and/or test case files
+#[New_Module]
+#ModuleName= testmodulexxx
+
+#TestModuletestdomfindutil used initialization file
+#IniFile= init.txt
+
+#TestModuletestdomfindutil 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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/src/testdomfindutil.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,186 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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 findutil.h
+*
+*/
+
+
+
+
+
+// INCLUDE FILES
+#include <stiftestinterface.h>
+#include <settingserverclient.h>
+#include <screensaverinternalpskeys.h>
+#include <e32property.h>
+
+#include "testdomfindutil.h"
+
+// CONSTANTS
+_LIT( KModuleName, "testdomfindutil.dll" );
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::CTestDOMFindUtil
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+CTestDOMFindUtil::CTestDOMFindUtil( CTestModuleIf& aTestModuleIf ):
+ CScriptBase( aTestModuleIf )
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::~CTestDOMFindUtil
+// Destructor.
+// -----------------------------------------------------------------------------
+//
+CTestDOMFindUtil::~CTestDOMFindUtil()
+ {
+ // Delete logger
+ delete iLog;
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::ConstructL
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+void CTestDOMFindUtil::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( KtestdomfindutilLogFileWithTitle, &title );
+ }
+ else
+ {
+ logFileName.Copy( KtestdomfindutilLogFile );
+ }
+
+ iLog = CStifLogger::NewL( KtestdomfindutilLogPath,
+ logFileName,
+ CStifLogger::ETxt,
+ CStifLogger::EFile,
+ EFalse );
+
+ SendTestClassVersion();
+
+ TurnOffScreenSaver();
+ }
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::NewL
+// Two-phased constructor.
+// -----------------------------------------------------------------------------
+//
+CTestDOMFindUtil* CTestDOMFindUtil::NewL( CTestModuleIf& aTestModuleIf )
+ {
+ CTestDOMFindUtil* self = new( ELeave ) CTestDOMFindUtil( aTestModuleIf );
+
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop( self );
+
+ return self;
+
+ }
+
+//-----------------------------------------------------------------------------
+// CTestDOMFindUtil::SendTestClassVersion
+// Method used to send version of test class
+//-----------------------------------------------------------------------------
+//
+void CTestDOMFindUtil::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* ) CTestDOMFindUtil::NewL( aTestModuleIf );
+ }
+
+// -----------------------------------------------------------------------------
+// Turn off ScreenSaver
+// -----------------------------------------------------------------------------
+//
+void CTestDOMFindUtil::TurnOffScreenSaver()
+ {
+ TInt err1 = RProperty::Get( KPSUidScreenSaver, KScreenSaverAllowScreenSaver,
+ iOldScreenSaverProperty );
+ TInt err2 = RProperty::Set( KPSUidScreenSaver, KScreenSaverAllowScreenSaver,
+ KScreenSaverAllowScreenSaver );
+ RDebug::Printf( "screensaver property=%d err1=%d err2=%d\n",
+ iOldScreenSaverProperty, err1, err2 );
+ }
+
+// -----------------------------------------------------------------------------
+// Restore ScreenSaver
+// -----------------------------------------------------------------------------
+//
+void CTestDOMFindUtil::RestoreScreenSaver()
+ {
+ RProperty::Set( KPSUidScreenSaver, KScreenSaverAllowScreenSaver,
+ iOldScreenSaverProperty );
+ User::ResetInactivityTime();
+ }
+
+
+// End of File
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/src/testdomfindutilblocks.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -0,0 +1,221 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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 findutil.h
+*
+*/
+
+
+
+
+
+// [INCLUDE FILES]
+#include <e32svr.h>
+#include <stifparser.h>
+#include <stiftestinterface.h>
+#include <findutil.h>
+
+#include "testdomfindutil.h"
+
+// CONSTANTS
+const TInt KMaxLength = 10;
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::RunMethodL
+// Run specified method. Contains also table of test mothods and their names.
+// -----------------------------------------------------------------------------
+//
+TInt CTestDOMFindUtil::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( "TestMatchRefineL", CTestDOMFindUtil::TestMatchRefineL ),
+ ENTRY( "TestMatch", CTestDOMFindUtil::TestMatchL ),
+ ENTRY( "TestIsWordValidForMatching",
+ CTestDOMFindUtil::TestIsWordValidForMatchingL ),
+ ENTRY( "TestMatchAdaptiveRefineL",
+ CTestDOMFindUtil::TestMatchAdaptiveRefineL),
+
+ ENTRY( "TestNewL", CTestDOMFindUtil::TestNewL ),
+
+ // [test cases entries]
+
+ };
+
+ const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo );
+
+ return RunInternalL( KFunctions, count, aItem );
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::TestMatchRefineL
+// -----------------------------------------------------------------------------
+//
+TInt CTestDOMFindUtil::TestMatchRefineL( CStifItemParser& aItem )
+ {
+
+ // Print to UI
+ _LIT( KTestDOMFindUtil, "testdomfindutil" );
+ _LIT( KTestMatchRefineL, "In MatchRefineL" );
+ TestModuleIf().Printf( 0, KTestDOMFindUtil, KTestMatchRefineL );
+ // Print to log file
+ iLog->Log( KTestMatchRefineL );
+
+ CFindUtil* util = CFindUtil::NewL();
+ CleanupStack::PushL( util );
+ MFindUtil* findUtil = util->Interface();
+
+ TPtrC firstRow, stringToFind;
+ aItem.GetNextString( firstRow );
+ aItem.GetNextString( stringToFind );
+
+ TInt result = findUtil->MatchRefineL( firstRow, stringToFind );
+ STIF_ASSERT_EQUALS( 0, result );
+
+ CleanupStack::PopAndDestroy( util );
+ return KErrNone;
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::TestMatchL
+// -----------------------------------------------------------------------------
+//
+TInt CTestDOMFindUtil::TestMatchL( CStifItemParser& aItem )
+ {
+
+ // Print to UI
+ _LIT( KTestDOMFindUtil, "testdomfindutil" );
+ _LIT( KTestMatch, "In Match" );
+ TestModuleIf().Printf( 0, KTestDOMFindUtil, KTestMatch );
+ // Print to log file
+ iLog->Log( KTestMatch );
+
+ CFindUtil* util = CFindUtil::NewL();
+ CleanupStack::PushL( util );
+ MFindUtil* findUtil = util->Interface();
+
+ TPtrC firstWord, secondWord;
+ aItem.GetNextString( firstWord );
+ aItem.GetNextString( secondWord );
+
+ TBool result = findUtil->Match( firstWord, secondWord );
+
+ CleanupStack::PopAndDestroy( util );
+
+ return KErrNone;
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::TestIsWordValidForMatchingL
+// -----------------------------------------------------------------------------
+//
+TInt CTestDOMFindUtil::TestIsWordValidForMatchingL(
+ CStifItemParser& aItem )
+ {
+
+ // Print to UI
+ _LIT( KTestDOMFindUtil, "testdomfindutil" );
+ _LIT( KTestIsWordValidForMatching, "In IsWordValidForMatching" );
+ TestModuleIf().Printf( 0, KTestDOMFindUtil, KTestIsWordValidForMatching );
+ // Print to log file
+ iLog->Log( KTestIsWordValidForMatching );
+
+ CFindUtil* util = CFindUtil::NewL();
+ CleanupStack::PushL( util );
+ MFindUtil* findUtil = util->Interface();
+
+ TPtrC word;
+ aItem.GetNextString( word );
+
+ TBool result = findUtil->IsWordValidForMatching( word );
+ STIF_ASSERT_TRUE( result );
+
+ CleanupStack::PopAndDestroy( util );
+ return KErrNone;
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::TestMatchAdaptiveRefineL
+// -----------------------------------------------------------------------------
+//
+TInt CTestDOMFindUtil::TestMatchAdaptiveRefineL( CStifItemParser& aItem )
+ {
+
+ // Print to UI
+ _LIT( KTestDOMFindUtil, "testdomfindutil" );
+ _LIT( KTestMatchAdaptiveRefineL, "In MatchAdaptiveRefineL" );
+ TestModuleIf().Printf( 0, KTestDOMFindUtil, KTestMatchAdaptiveRefineL );
+ // Print to log file
+ iLog->Log( KTestMatchAdaptiveRefineL );
+
+ CFindUtil* util = CFindUtil::NewL();
+ CleanupStack::PushL( util );
+ MFindUtil* findUtil = util->Interface();
+
+ TPtrC firstWord, secondWord, temp;
+
+ HBufC* nextChar = HBufC::NewL( KMaxLength );
+ CleanupStack::PushL( nextChar );
+
+ aItem.GetNextString( firstWord );
+ aItem.GetNextString( secondWord );
+ aItem.GetNextString( temp );
+ nextChar->Des().Copy( temp );
+
+ TBool result = findUtil->MatchAdaptiveRefineL( firstWord, secondWord,
+ nextChar );
+ STIF_ASSERT_FALSE( result );
+
+ CleanupStack::PopAndDestroy( nextChar );
+ CleanupStack::PopAndDestroy( util );
+ return KErrNone;
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTestDOMFindUtil::TestNewL
+// -----------------------------------------------------------------------------
+//
+TInt CTestDOMFindUtil::TestNewL( CStifItemParser& /*aItem*/ )
+ {
+
+ // Print to UI
+ _LIT( KTestDOMFindUtil, "testdomfindutil" );
+ _LIT( KTestNewL, "In NewL" );
+ TestModuleIf().Printf( 0, KTestDOMFindUtil, KTestNewL );
+ // Print to log file
+ iLog->Log( KTestNewL );
+
+ CFindUtil* findUtil = CFindUtil::NewL();
+ CleanupStack::PushL( findUtil );
+ STIF_ASSERT_NOT_NULL( findUtil );
+
+ CleanupStack::Pop( findUtil );
+ delete findUtil;
+ findUtil = NULL;
+
+ return KErrNone;
+
+ }
+
+
+// [End of File]
--- a/classicui_plat/group/bld.inf Mon Jun 21 22:36:19 2010 +0100
+++ b/classicui_plat/group/bld.inf Thu Jul 22 16:35:40 2010 +0100
@@ -100,3 +100,5 @@
#include "../discreet_popup_api/group/bld.inf"
#include "../touch_gesture_framework_api/group/bld.inf"
#include "../extended_options_menu_api/group/bld.inf"
+#include "../findutil_api/group/bld.inf"
+#include "../directory_localizer_api/group/bld.inf"
--- a/classicui_pub/common_file_dialogs_api/tsrc/bwins/testsdkcfdu.def Mon Jun 21 22:36:19 2010 +0100
+++ /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 &)
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdcommondialogs.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdcommondialogsdynmem.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdfilenamepromptdialog.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdfileselectiondialog.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectiondialog.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectiondialogmulti.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingitem.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingitemmulti.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/tctestsdkcfdmemoryselectionsettingpage.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdcommondialogs.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdcommondialogsdynmem.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdfilenamepromptdialog.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdfileselectiondialog.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectiondialog.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectiondialogmulti.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingitem.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingitemmulti.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/conf/ui_testsdkcfdmemoryselectionsettingpage.cfg Mon Jun 21 22:36:19 2010 +0100
+++ /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]
--- a/classicui_pub/common_file_dialogs_api/tsrc/data/testsdkcfd.rss Mon Jun 21 22:36:19 2010 +0100
+++ /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 <avkon.rsg>
-#include <avkon.rh>
-#include <eikon.rh>
-
-#include <commondialogs.hrh> // enumerations
-#include <commondialogs.rh> // 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";
- }
- };
- }
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/eabi/testsdkcfdu.def Mon Jun 21 22:36:19 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-EXPORTS
- _Z9LibEntryLR13CTestModuleIf @ 1 NONAME
- _ZTI12CTestControl @ 2 NONAME ; #<TI>#
- _ZTI20CTestSettingItemList @ 3 NONAME ; #<TI>#
- _ZTI30CTestSettingItemListMultiDrive @ 4 NONAME ; #<TI>#
- _ZTI37CTestSDKCFDMAknMemorySelectionOberver @ 5 NONAME ; #<TI>#
- _ZTV12CTestControl @ 6 NONAME ; #<VT>#
- _ZTV20CTestSettingItemList @ 7 NONAME ; #<VT>#
- _ZTV30CTestSettingItemListMultiDrive @ 8 NONAME ; #<VT>#
- _ZTV37CTestSDKCFDMAknMemorySelectionOberver @ 9 NONAME ; #<VT>#
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/group/bld.inf Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/group/testsdkcfd.mmp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <data_caging_paths.hrh>
-#ifdef SBSV2
-
- #include <platform_paths.hrh>
-
-#else // SBSV2 not defined
-
- #include <platform_paths.hrh>
-
-#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
--- a/classicui_pub/common_file_dialogs_api/tsrc/group/testsdkcfd.pkg Mon Jun 21 22:36:19 2010 +0100
+++ /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
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfd.h Mon Jun 21 22:36:19 2010 +0100
+++ /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 <stiflogger.h>
-#include <testscripterinternal.h>
-#include <stiftestmodule.h>
-#include <testclassassert.h>
-#include <coemain.h>
-#include <coeaui.h>
-#include <caknmemoryselectionsettingpage.h>
-#include <caknfilenamepromptdialog.h>
-#include <maknfileselectionobserver.h>
-#include <caknfileselectiondialog.h>
-
-#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
--- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfd.hrh Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdcontrol.h Mon Jun 21 22:36:19 2010 +0100
+++ /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 <coecntrl.h>
-#include <e32std.h>
-#include <testclassassert.h>
-#include <stifitemparser.h>
-#include <caknmemoryselectionsettingpage.h>
-#include <maknmemoryselectionobserver.h>
-
-/**
- * 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*/
--- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdmaknmemoryselectionobserver.h Mon Jun 21 22:36:19 2010 +0100
+++ /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 <maknmemoryselectionobserver.h>
-
-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*/
-
-
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdsettingitem.h Mon Jun 21 22:36:19 2010 +0100
+++ /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 <caknmemoryselectionsettingitem.h>
-#include <testsdkcfd.rsg>
-
-/**
- * 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
--- a/classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdsettingitemmultidrive.h Mon Jun 21 22:36:19 2010 +0100
+++ /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 <caknmemoryselectionsettingitemmultidrive.h>
-
-/**
- * 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
--- a/classicui_pub/common_file_dialogs_api/tsrc/init/testsdkcfd.ini Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfd.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <stiftestinterface.h>
-#include <settingserverclient.h>
-#include <e32property.h>
-
-#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
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocks.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <e32svr.h>
-#include <stifparser.h>
-#include <stiftestinterface.h>
-
-#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]
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblockscommondialogs.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <testsdkcfd.rsg>
-#include <akncommondialogs.h>
-#include <maknfileselectionobserver.h>
-#include <maknfilefilter.h>
-
-#include "testsdkcfd.h"
-
-// ============================ MEMBER FUNCTIONS ===============================
-
-// -----------------------------------------------------------------------------
-// CTestSDKCFD::TestCDRunSelectDlgLD
-// -----------------------------------------------------------------------------
-//
-TInt CTestSDKCFD::TestCDRunSelectDlgLD( CStifItemParser& /*aItem*/ )
- {
- _LIT( KFileName, "Select Dialog" );
- TBuf<KMaxFileName> 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<KMaxFileName> 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<KMaxFileName> fileName( KFileName );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> 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<KMaxPath> 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<KMaxPath> 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<KMaxPath> directory( KDirectory );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxPath> 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<KMaxFileName> 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<KMaxFileName> 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<KMaxFileName> defaultFileName( KDefaultFileName );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> fileSelTitle( KFileSelTitle );
- _LIT( KFileNamePromptTitle, "File Name Prompt Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> 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<KMaxFileName> defaultFileName( KDefaultFileName );
- _LIT( KFileNamePromptTitle, "File Name Prompt Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> 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<KMaxFileName> defaultFileName( KDefaultFileName );
- _LIT( KFileNamePromptTitle, "File Name Prompt Title" );
- TBuf<KMaxFileName> 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<KMaxPath> 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<KMaxPath> 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<KMaxPath> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data\\Images" );
- TBuf<KMaxPath> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data\\Images" );
- TBuf<KMaxPath> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data\\Images" );
- TBuf<KMaxPath> startFolder( KStartFolder );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data" );
- TBuf<KMaxPath> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data" );
- TBuf<KMaxPath> startFolder( KStartFolder );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data" );
- TBuf<KMaxPath> startFolder( KStartFolder );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxPath> folder( KFolder );
- _LIT( KStartFolder, "C:\\Data\\Images" );
- TBuf<KMaxPath> startFolder( KStartFolder );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> fileSelTitle( KFileSelTitle );
-
- TBool flag = AknCommonDialogs::RunFolderSelectDlgLD
- ( folder, startFolder, 0, 0, fileSelTitle, NULL, NULL );
- STIF_ASSERT_FALSE( flag );
-
- return KErrNone;
- }
-
-// [End of File]
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblockscommondialogsdynmem.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <testsdkcfd.rsg>
-#include <akncommondialogsdynmem.h>
-#include <maknfileselectionobserver.h>
-#include <maknfilefilter.h>
-
-#include "testsdkcfd.h"
-
-// ============================ MEMBER FUNCTIONS ===============================
-
-// -----------------------------------------------------------------------------
-// CTestSDKCFD::TestCDDMRunSelectDlgLD
-// -----------------------------------------------------------------------------
-//
-TInt CTestSDKCFD::TestCDDMRunSelectDlgLD( CStifItemParser& /*aItem*/ )
- {
- _LIT( KFileName, "Select Dialog" );
- TBuf<KMaxFileName> 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<KMaxFileName> 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<KMaxFileName> fileName( KFileName );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> 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<KMaxPath> 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<KMaxPath> 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<KMaxPath> directory( KDirectory );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxPath> 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<KMaxFileName> 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<KMaxFileName> 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<KMaxFileName> defaultFileName( KDefaultFileName );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> fileSelTitle( KFileSelTitle );
- _LIT( KFileNamePromptTitle, "File Name Prompt Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> 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<KMaxFileName> defaultFileName( KDefaultFileName );
- _LIT( KFileNamePromptTitle, "File Name Prompt Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> 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<KMaxFileName> defaultFileName( KDefaultFileName );
- _LIT( KFileNamePromptTitle, "File Name Prompt Title" );
- TBuf<KMaxFileName> 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<KMaxPath> 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<KMaxPath> 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<KMaxPath> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data\\Images" );
- TBuf<KMaxPath> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data\\Images" );
- TBuf<KMaxPath> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data\\Images" );
- TBuf<KMaxPath> startFolder( KStartFolder );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data" );
- TBuf<KMaxPath> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data" );
- TBuf<KMaxPath> startFolder( KStartFolder );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxFileName> fileName( KFileName );
- _LIT( KStartFolder, "C:\\Data" );
- TBuf<KMaxPath> startFolder( KStartFolder );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> 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<KMaxPath> folder( KFolder );
- _LIT( KStartFolder, "C:\\Data\\Images" );
- TBuf<KMaxPath> startFolder( KStartFolder );
- _LIT( KFileSelTitle, "File Selection Title" );
- TBuf<KMaxFileName> fileSelTitle( KFileSelTitle );
-
- TBool flag = AknCommonDialogsDynMem::RunFolderSelectDlgLD
- ( AknCommonDialogsDynMem::EMemoryTypePhone, folder, startFolder, 0, 0,
- fileSelTitle, NULL, NULL );
- STIF_ASSERT_FALSE( flag );
-
- return KErrNone;
- }
-
-
-// [End of File]
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksfilenamepromptdialog.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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]
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksfileselectiondialog.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <maknfileselectionobserver.h>
-#include <maknfilefilter.h>
-
-#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]
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectiondialog.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <caknmemoryselectiondialog.h>
-#include <cakncommondialogsbase.h>
-
-#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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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<KRootPathLength> rootBuf( KRootPath );
- TBuf<KDefaultFolderLength> 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 <MemorySelectionDialog>" );
- _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 <MemorySelectionDialog>" );
- _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<KMaxFileName> 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 <MemorySelectionDialog>" );
- _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<KRootPathLength> rootBuf( KRootPath );
- TBuf<KDefaultFolderLength> 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 <MemorySelectionDialog>" );
- _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<KItemDiscriptor> itemdes;
- memorySelectionDialog->GetItem( index, itemdes );
-
- CleanupStack::PopAndDestroy( memorySelectionDialog );
-
- return KErrNone;
- }
-// ============================ MEMBER FUNCTIONS ===============================
-
-// -----------------------------------------------------------------------------
-// CTestSDKCFD::TestMSDGetMemoriesL
-// -----------------------------------------------------------------------------
-TInt CTestSDKCFD::TestMSDGetMemoriesL( CStifItemParser& /*aItem*/ )
- {
-
- _LIT( KTitle, "Class <MemorySelectionDialog>" );
- _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<KRootPathLength> rootBuf(KRootPath);
- TBuf<KDefaultFolderLength> defaultBuf(KDefaultFolder);
- memorySelectionDialog->GetMemories( memType, &rootBuf, &defaultBuf );
-
- CleanupStack::PopAndDestroy( memorySelectionDialog );
-
- return KErrNone;
- }
-
-// [End of File]
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectiondialogmultidrive.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <caknmemoryselectiondialogmultidrive.h>
-#include <cakncommondialogsbase.h>
-
-#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 <MemorySelectionDialogMultiDrive>" );
- _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 <MemorySelectionDialogMultiDrive>" );
- _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 <MemorySelectionDialogMultiDrive>" );
- _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 <MemorySelectionDialogMultiDrive>" );
- _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 <MemorySelectionDialogMultiDrive>" );
- _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 <MemorySelectionDialogMultiDrive>" );
- _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 <MemorySelectionDialogMultiDrive>" );
- _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 <MemorySelectionDialogMultiDrive>" );
- _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<KRootPathLength> rootBuf( KRootPath );
- TBuf<KDefaultFolderLength> 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 <MemorySelectionDialogMultiDrive>" );
- _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 <MemorySelectionDialogMultiDrive>" );
- _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::TestMSDMDRunDlgLDTitleL" );
-
- iLog->Log( KTitle );
- iLog->Log( KCall1 );
-
- _LIT( KDialogTitle, "Hello Dialog!" );
- TBuf<KMaxFileName> dialogTitle( KDialogTitle );
-
- TDriveNumber selectedDrive = EDriveC;
-
- CAknMemorySelectionDialogMultiDrive::RunDlgLD( selectedDrive, dialogTitle );
-
- return KErrNone;
- }
-
-// -----------------------------------------------------------------------------
-// CTestSDKCFD::TestMSDMDRunDlgLDResourceL
-// -----------------------------------------------------------------------------
-TInt CTestSDKCFD::TestMSDMDRunDlgLDResourceL( CStifItemParser& /*aItem*/ )
- {
- _LIT( KTitle, "Class <MemorySelectionDialogMultiDrive>" );
- _LIT( KCall1, "Test MemorySelectionDialogMultiDrive::TestMSDMDRunDlgLDResourceL" );
- iLog->Log( KTitle );
- iLog->Log( KCall1 );
-
- TDriveNumber selectedDrive = EDriveC;
-
- _LIT( KRootPath, "C:\\" );
- _LIT( KDefaultFolder, " " );
-
- TBuf<KRootPathLength> rootBuf( KRootPath );
- TBuf<KDefaultFolderLength> defaultBuf( KDefaultFolder );
- CAknMemorySelectionDialogMultiDrive::RunDlgLD( selectedDrive, 0, &rootBuf,
- &defaultBuf );
-
- return KErrNone;
- }
-
-// -----------------------------------------------------------------------------
-// CTestSDKCFD::TestMSDMDGetItemL
-// -----------------------------------------------------------------------------
-TInt CTestSDKCFD::TestMSDMDGetItemL( CStifItemParser& /*aItem*/ )
- {
- _LIT( KTitle, "Class <MemorySelectionDialogMultiDrive>" );
- _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<KItemDiscriptor> itemdes;
- memorySelectionDialog->GetItem( index, itemdes );
-
- CleanupStack::PopAndDestroy( memorySelectionDialog );
-
- return KErrNone;
- }
-
-// -----------------------------------------------------------------------------
-// CTestSDKCFD::TestMSDMDAddDrivePathsL
-// -----------------------------------------------------------------------------
-TInt CTestSDKCFD::TestMSDMDAddDrivePathsL( CStifItemParser& /*aItem*/ )
- {
-
- _LIT( KTitle, "Class <MemorySelectionDialogMultiDrive>" );
- _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<KRootPathLength> rootBuf(KRootPath);
- TBuf<KDefaultFolderLength> defaultBuf(KDefaultFolder);
- memorySelectionDialog->AddDrivePathsL( rootBuf, defaultBuf );
-
- CleanupStack::PopAndDestroy( memorySelectionDialog );
-
- return KErrNone;
- }
-
-// -----------------------------------------------------------------------------
-// CTestSDKCFD::TestMSDMDFindIndexByDriveL
-// -----------------------------------------------------------------------------
-TInt CTestSDKCFD::TestMSDMDFindIndexByDriveL( CStifItemParser& /*aItem*/ )
- {
-
- _LIT( KTitle, "Class <MemorySelectionDialogMultiDrive>" );
- _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]
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingitem.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <aknsettingitemlist.h>
-#include <testsdkcfd.rsg>
-
-#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<KBufSize> buf;
- iSettingItemList->iItem->GetText( buf );
-// sth need to do
- return KErrNone;
- }
-
-// End of File
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingitemmultidrive.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <aknsettingitemlist.h>
-#include <testsdkcfd.rsg>
-
-#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
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdblocksmemoryselectionsettingpage.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <testsdkcfd.rsg>
-
-#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
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdcontrol.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <eikenv.h>
-#include <aknappui.h>
-#include <testsdkcfd.rsg>
-
-#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<KBufSize> 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
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdmaknmemoryselectionobserver.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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()
- {
- }
-
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdsettingitem.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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
--- a/classicui_pub/common_file_dialogs_api/tsrc/src/testsdkcfdsettingitemmultidrive.cpp Mon Jun 21 22:36:19 2010 +0100
+++ /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 <testsdkcfd.rsg>
-#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
--- a/commonuis/CommonUi/group/CommonUI.mmp Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuis/CommonUi/group/CommonUI.mmp Thu Jul 22 16:35:40 2010 +0100
@@ -102,15 +102,11 @@
LIBRARY CommonEngine.lib // For class Stringloader, etc.
LIBRARY apgrfx.lib // For class RApaLsSession, class TApaTask
LIBRARY FeatMgr.lib // For class FeatureManager
-#ifdef __SERIES60_MMC
-LIBRARY CommonDialogs.lib
-#endif
// FindUI
LIBRARY etext.lib // For class CPlainText, class TCharFormat
LIBRARY form.lib // For class CTextLayout
LIBRARY eikctl.lib // For class CRichText
-LIBRARY FavouritesEngine.lib // For class CFavouritesItem, etc.
LIBRARY sendui.lib // For class CSendUi, class CMessageData
#ifndef RD_VIRTUAL_PHONEBOOK
LIBRARY PbkView.lib // For class RPbkViewResourceFile, class CPbkDataSaveAppUi
--- a/commonuis/CommonUi/src/FindItemDialog.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuis/CommonUi/src/FindItemDialog.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -35,11 +35,6 @@
#include <eikbtgpc.h> // for ButtonGroupContainer
#include <uikon.hrh> // for EKeyOk
-#include <FavouritesLimits.h> // KFavouritesMaxUrl
-#include <FavouritesItem.h> // for CBookmarkItem
-
-#include <FavouritesDb.h>
-
#include <apgcli.h> // RApaLsSession for WMLBrowser launch
#ifndef RD_VIRTUAL_PHONEBOOK
@@ -60,8 +55,6 @@
#include <baclipb.h> // For CClipboard
-#include <SchemeHandler.h> // For CSchemeHandler
-
#include <aknnotewrappers.h>
#include <finditemui.rsg>
@@ -319,8 +312,6 @@
delete iServiceHandler;
delete iFindItemVoIPExtension;
- delete iSchemeHandler;
-
delete iBgContext;
delete iTitleText;
@@ -707,23 +698,6 @@
}
// If current app is other than Browser, use schemehandler for launching
// file
- else
- {
- if ( iSchemeHandler )
- {
- delete iSchemeHandler;
- iSchemeHandler = 0;
- }
- iSchemeHandler = CSchemeHandler::NewL( itemtextPtr );
- if ( itemtext->FindF( KRtspUrlAddress ) != KErrNotFound )
- {
- iSchemeHandler->HandleUrlEmbeddedL();
- }
- else
- {
- iSchemeHandler->HandleUrlStandaloneL();
- }
- }
CleanupStack::PopAndDestroy(); // itemtext
return EFalse;
@@ -744,9 +718,7 @@
TPtr paramPtr = parameters->Des();
paramPtr.Copy( KWmlBrowserParameter );
paramPtr.Append( KSpace );
- paramPtr.Append(
- aItemtextPtr.Mid(
- 0, Min( aItemtextPtr.Length(), KFavouritesMaxUrl ) ) );
+ paramPtr.Append( aItemtextPtr.Mid( 0, aItemtextPtr.Length() ) );
TApaTaskList taskList( iEikonEnv->WsSession() );
TApaTask task = taskList.FindApp( KWapUid );
@@ -778,10 +750,6 @@
{
__ASSERT_DEBUG( iEdwin->SelectionLength() > 0, Panic( ENoItemSelected ) );
- // Create an item and fill with meaningful data.
- CFavouritesItem* item = CFavouritesItem::NewLC();
- item->SetParentFolder( KFavouritesRootUid );
- item->SetType( CFavouritesItem::EItem );
// Read default name from resources
HBufC* defaultName =
iEikonEnv->AllocReadResourceLC( R_FINDITEM_DEFAULT_BOOKMARK_NAME );
@@ -796,33 +764,17 @@
if ( !dlg->ExecuteLD( R_FINDITEM_BOOKMARK_QUERY_DIALOG ) )
{
// User press cancel - do not add bookmark
- CleanupStack::PopAndDestroy( ); // item
return;
}
-
- item->SetNameL( retName );
+
TCursorSelection selection = iEdwin->Selection();
- item->SetUrlL( iPlainText.Mid( selection.LowerPos(), selection.Length() ) );
-
- RFavouritesSession sess;
- RFavouritesDb db;
-
- User::LeaveIfError( sess.Connect() );
- CleanupClosePushL<RFavouritesSession>( sess );
- User::LeaveIfError( db.Open( sess, KBrowserBookmarks ) );
- CleanupClosePushL<RFavouritesDb>( db );
-
- // Add item.
- db.Add( *item, ETrue );
- // Close the database.
- db.Close();
-
+
HBufC* msgBuffer =
iCoeEnv->AllocReadResourceLC( R_FINDITEM_BOOKMARK_SAVED );
CAknConfirmationNote* note = new (ELeave)CAknConfirmationNote( ETrue );
note->ExecuteLD( *msgBuffer );
- CleanupStack::PopAndDestroy( 4 ); // magBuffer, db, sess, item
+ CleanupStack::PopAndDestroy(); // magBuffer
}
// -----------------------------------------------------------------------------
--- a/commonuis/CommonUi/src/FindItemMenu.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuis/CommonUi/src/FindItemMenu.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -34,11 +34,6 @@
#include <commonphoneparser.h> // Phonenumber parser
#include <SendUiConsts.h> // Mtm uids
-#include <FavouritesLimits.h> // KFavouritesMaxUrl
-#include <FavouritesItem.h> // for CBookmarkItem
-
-#include <FavouritesDb.h>
-
#include <apgcli.h> // RApaLsSession for WMLBrowser launch
#include <apgtask.h>
@@ -62,7 +57,6 @@
#include <CommonUiInternalCRKeys.h>
#include <AiwCommon.hrh>
-#include <SchemeHandler.h>
// Callback query
#include <aknlists.h>
@@ -225,7 +219,6 @@
delete iCallbackNumber;
- delete iSchemeHandler;
delete iDialData;
@@ -958,12 +951,12 @@
case EFindItemCmdGoToUrl:
{
- LaunchGenericUriL();
+
break;
}
case EFindItemCmdGoToRstp:
{
- LaunchGenericUriL();
+
break;
}
@@ -1015,7 +1008,6 @@
case EFindItemCmdUse:
{
- LaunchGenericUriL();
break;
}
@@ -1174,10 +1166,6 @@
void CFindItemMenu::AddToBookmarkL()
{
- // Create an item
- CFavouritesItem* item = CFavouritesItem::NewLC();
- item->SetParentFolder( KFavouritesRootUid );
- item->SetType( CFavouritesItem::EItem );
// Read default name from resources
RConeResourceLoader ldr( *iCoeEnv );
@@ -1199,31 +1187,15 @@
if ( !dlg->ExecuteLD( R_FINDITEM_BOOKMARK_QUERY_DIALOG ) )
{
// User press cancel - do not add bookmark
- CleanupStack::PopAndDestroy( 3 ); // item, defaultName, resourceLoader
+ CleanupStack::PopAndDestroy( 2 ); // defaultName, resourceLoader
return;
}
- item->SetNameL( retName );
- item->SetUrlL( iAutomaticFind->CurrentItemExt().iItemDescriptor->Des() );
-
- RFavouritesSession sess;
- RFavouritesDb db;
-
- User::LeaveIfError( sess.Connect() );
- CleanupClosePushL<RFavouritesSession>( sess );
- User::LeaveIfError( db.Open( sess, KBrowserBookmarks ) );
- CleanupClosePushL<RFavouritesDb>( db );
-
- // add item
- db.Add( *item, ETrue );
- // Close the database.
- db.Close();
-
HBufC* msgBuffer = iCoeEnv->AllocReadResourceLC( R_FINDITEM_BOOKMARK_SAVED );
CAknConfirmationNote* note = new (ELeave)CAknConfirmationNote( ETrue );
note->ExecuteLD( *msgBuffer );
- CleanupStack::PopAndDestroy( 6 ); // item, db, sess, resourceLoader,
+ CleanupStack::PopAndDestroy( 3 ); // resourceLoader,
// defaultName, msgBuffer
}
@@ -1533,20 +1505,7 @@
void CFindItemMenu::LaunchGenericUriL()
{
- if ( iSchemeHandler )
- {
- delete iSchemeHandler;
- iSchemeHandler = 0;
- }
- iSchemeHandler = CSchemeHandler::NewL( iAutomaticFind->CurrentItemExt().iItemDescriptor->Des() );
- if ( iAutomaticFind->CurrentItemExt().iItemDescriptor->FindF( KRtspUrlAddress ) != KErrNotFound )
- {
- iSchemeHandler->HandleUrlEmbeddedL();
- }
- else
- {
- iSchemeHandler->HandleUrlStandaloneL();
- }
+
}
EXPORT_C void CFindItemMenu::SetCallbackNumber( const TDesC& aPhoneNumber )
--- a/commonuisupport/uifwsdocs/app-framework_documentation.mrp Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uifwsdocs/app-framework_documentation.mrp Thu Jul 22 16:35:40 2010 +0100
@@ -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\
--- a/commonuisupport/uikon/coresrc/EIKAPP.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/coresrc/EIKAPP.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -20,7 +20,7 @@
#include <bautils.h>
#include <coeutils.h>
#include <apgicnfl.h>
-#include "apfdef.h"
+#include "APFDEF.H"
#include <apgcli.h>
#include <barsc2.h>
#include <barsread2.h>
--- a/commonuisupport/uikon/coresrc/EIKENV.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/coresrc/EIKENV.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -48,7 +48,7 @@
#include <coecntrl.h>
#include <coeerror.h>
#include <coesndpy.h>
-#include "coedatastorage.h"
+#include "CoeDataStorage.h"
#include <eikenv.h>
#include <eikappui.h>
#include <eikdoc.h>
@@ -70,7 +70,7 @@
#include <uiklaf/private/lafshut.h>
#include <ecom/ecom.h>
#include <eikserverapp.h>
-#include "eiksrvc.h"
+#include "EIKSRVC.H"
#include "eikdebugprefs.h"
#include "eikprivate.h"
@@ -80,8 +80,8 @@
#include <graphics/cone/coeerrorconsts.h>
#include "eikdefconst.h"
#include "eikdefconstinternal.h"
-#include "eiklibry.h"
-#include "eikdgfty.h"
+#include "EIKLIBRY.H"
+#include "EIKDGFTY.H"
GLDEF_C void Panic(TEikPanic aPanic)
{
--- a/commonuisupport/uikon/coresrc/EIKFCTRY.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/coresrc/EIKFCTRY.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -15,7 +15,7 @@
#include <eikfctry.h>
#include <eikenv.h>
-#include "eikdgfty.h"
+#include "EIKDGFTY.H"
/** Creates the specified type of control by going through the dynamically loaded
DLLs' Control Factories until one is found which successfully creates the
--- a/commonuisupport/uikon/coresrc/EIKPROC.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/coresrc/EIKPROC.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -20,7 +20,7 @@
#include <eikpanic.h>
#include <apacmdln.h>
#include <apparc.h>
-#include "apfdef.h"
+#include "APFDEF.H"
#include <eikenv.h>
--- a/commonuisupport/uikon/group/BLD.INF Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/group/BLD.INF Thu Jul 22 16:35:40 2010 +0100
@@ -20,7 +20,7 @@
*/
// include test code
-#include "../test/group/BLD.INF"
+#include "../test/group/bld.inf"
PRJ_EXPORTS
// specify the source file followed by its destination here
@@ -88,16 +88,16 @@
../group/uikon.iby /epoc32/rom/include/uikon.iby
-../bwins/Eikinitu.def /epoc32/release/wins/eikinitu.def
-../EABI/EIKINITU.DEF /epoc32/include/def/eabi/eikinitu.def
+../bwins/EIKINITU.DEF /epoc32/release/wins/eikinitu.def
+../eabi/EIKINITU.DEF /epoc32/include/def/eabi/eikinitu.def
// from ..\docs
-../docs/extended_notifier_design_spec.doc /epoc32/engdoc/application_framework/uikon/proposed/extended_notifier_design_spec.doc
-../docs/status_pane_design.doc /epoc32/engdoc/application_framework/uikon/status_pane_design.doc
-../docs/uikon_1.2_menu_extensions.doc /epoc32/engdoc/application_framework/uikon/uikon_1.2_menu_extensions.doc
-../docs/uikon_1.2_border_extensions.doc /epoc32/engdoc/application_framework/uikon/uikon_1.2_border_extensions.doc
-../docs/uikon_1.2_border_colours_utilities_extensions.doc /epoc32/engdoc/application_framework/uikon/uikon_1.2_border_colours_utilities_extensions.doc
-../docs/Uikon_1.2_Caps_Lock_Extension.doc /epoc32/engdoc/application_framework/uikon/uikon_1.2_caps_lock_extension.doc
+//../docs/extended_notifier_design_spec.doc /epoc32/engdoc/application_framework/uikon/proposed/extended_notifier_design_spec.doc
+//../docs/status_pane_design.doc /epoc32/engdoc/application_framework/uikon/status_pane_design.doc
+//../docs/uikon_1.2_menu_extensions.doc /epoc32/engdoc/application_framework/uikon/uikon_1.2_menu_extensions.doc
+//../docs/uikon_1.2_border_extensions.doc /epoc32/engdoc/application_framework/uikon/uikon_1.2_border_extensions.doc
+//../docs/uikon_1.2_border_colours_utilities_extensions.doc /epoc32/engdoc/application_framework/uikon/uikon_1.2_border_colours_utilities_extensions.doc
+//../docs/Uikon_1.2_Caps_Lock_Extension.doc /epoc32/engdoc/application_framework/uikon/uikon_1.2_caps_lock_extension.doc
PRJ_MMPFILES
--- a/commonuisupport/uikon/srvsrc/EIKNFYSV.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/srvsrc/EIKNFYSV.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -988,6 +988,7 @@
void CEikSrvNotifierManager::LookForNotifierInObservedListL(TUid aNotifierUid, TUid aChannelUid, RArray<TInt>& aNotifierPositions)
{
+ CleanupClosePushL(aNotifierPositions);
const TInt count = iObservedList->Count();
for (TInt ii = 0; ii < count; ii++)
{
@@ -996,6 +997,7 @@
if (info.iUid == aNotifierUid && (aChannelUid == KNonExistentUid || info.iChannel == aChannelUid))
User::LeaveIfError(aNotifierPositions.Append(ii));
}
+ CleanupStack::Pop(&aNotifierPositions);
}
void CEikSrvNotifierManager::NotifierStartAndGetResponseL(TUid aNotifierUid, const TDesC8& aBuffer, TInt aReplySlot,
--- a/commonuisupport/uikon/srvsrc/EIKSRVC.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/srvsrc/EIKSRVC.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -17,7 +17,7 @@
#include <e32std.h>
#include <e32math.h>
#include <centralrepository.h>
-#include "coedatastorage.h"
+#include "CoeDataStorage.h"
#include <eiksrvc.h>
#include <eiksvdef.h>
#include <s32mem.h>
--- a/commonuisupport/uikon/srvsrc/UpdateSystemColorList.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/srvsrc/UpdateSystemColorList.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -23,7 +23,7 @@
#include <e32base.h>
#include <e32test.h>
#include <apadef.h>
-#include "coedatastorage.h"
+#include "CoeDataStorage.h"
#include <eikenv.h>
void PopulateColorListL()
{
--- a/commonuisupport/uikon/srvsrc/eiksrv_securedata.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/srvsrc/eiksrv_securedata.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -17,7 +17,7 @@
#include <eiksvdef.h>
#include <s32file.h>
#include <s32mem.h>
-#include "coedatastorage.h"
+#include "CoeDataStorage.h"
//
// class CEikServSecureData
--- a/commonuisupport/uikon/test/scripts/uiktest_T_Backup.script Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uikon/test/scripts/uiktest_T_Backup.script Thu Jul 22 16:35:40 2010 +0100
@@ -16,6 +16,10 @@
//
PRINT Run TBackup test
//
+
+// Init MTM before it will be used by backup service
+RUN_WS_PROGRAM mailinit.exe
+
LOAD_SUITE UiktestServer
RUN_TEST_STEP 1000 UiktestServer TBackup
--- a/commonuisupport/uilaf/GROUP/BLD.INF Mon Jun 21 22:36:19 2010 +0100
+++ b/commonuisupport/uilaf/GROUP/BLD.INF Thu Jul 22 16:35:40 2010 +0100
@@ -27,7 +27,7 @@
// to the same name in \epoc32\include
../bwins/uiklaf_unbranchedu.def /epoc32/include/uiklaf/private/bwins/uiklafu.def
-../EABI/uiklaf_unbranchedu.def /epoc32/include/uiklaf/private/eabi/uiklafu.def
+../eabi/uiklaf_unbranchedu.def /epoc32/include/uiklaf/private/eabi/uiklafu.def
// from \uiklaf\inc
../inc/uikon.hrh /epoc32/include/uikon.hrh
--- a/lafagnosticuifoundation/animation/tef/TFrames.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/animation/tef/TFrames.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -265,8 +265,9 @@
iTransSpriteAnimWin->Window()->Invalidate();
iFrameWin->Window()->Invalidate();
iTransFrameWin->Window()->Invalidate();
- Ws().Flush();
+ Ws().Finish();
WaitForRedrawsToFinish();
+ Ws().Finish();
// Start the animations:
TAnimationConfig config;
@@ -288,17 +289,27 @@
break;
}
iBasicAnimations[frame]->Start(config);
+ Wait(KFramesFrameLength);
+ Ws().Finish();
+ WaitForRedrawsToFinish();
+
iSpriteAnimations[frame]->Start(config);
+ Wait(KFramesFrameLength);
+ Ws().Finish();
+ WaitForRedrawsToFinish();
}
// Why * 4? because we seem to go very slowly?
Wait(KFramesFrameLength * iBasicAnimations.Count() * 4);
-
- // Verify output:
+ Ws().Finish();
WaitForRedrawsToFinish();
- ANIMTESTRECT(TRect(iBasicAnimWinPosition, iWinSize), TRect(iFrameWinPosition, iWinSize));
+ Ws().Finish();
+
+ // When verifying output,
+ // Should have at least one animation frame drawn
+ ANIMTESTRECT(TRect(iBasicAnimWinPosition, TSize(KFramesWindowHeight,KFramesWindowHeight)), TRect(iFrameWinPosition, TSize(KFramesWindowHeight,KFramesWindowHeight)));
if(!(aFlags & ENoSprites))
- ANIMTESTRECT(TRect(iSpriteAnimWinPosition, iWinSize), TRect(iFrameWinPosition, iWinSize));
+ ANIMTESTRECT(TRect(iSpriteAnimWinPosition, TSize(KFramesWindowHeight,KFramesWindowHeight)), TRect(iFrameWinPosition, TSize(KFramesWindowHeight,KFramesWindowHeight)));
}
/**
@SYMTestCaseID UIF-animation-TFrames-TestFramesL2
--- a/lafagnosticuifoundation/bmpanimation/group/BLD.INF Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/bmpanimation/group/BLD.INF Thu Jul 22 16:35:40 2010 +0100
@@ -30,7 +30,7 @@
../inc/bmpansrv.h SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(bmpansrv.h)
../inc/bmpanconsts.h SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(bmpanconsts.h)
-../docs/animation_design_spec.doc /epoc32/engdoc/application_framework/bmpanim/animation_design_spec.doc
+//../docs/animation_design_spec.doc /epoc32/engdoc/application_framework/bmpanim/animation_design_spec.doc
../group/BmpAnim.iby /epoc32/rom/include/bmpanim.iby
PRJ_MMPFILES
--- a/lafagnosticuifoundation/bmpanimation/inc/bmpansrv.h Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/bmpanimation/inc/bmpansrv.h Thu Jul 22 16:35:40 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1997-2010 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"
@@ -272,7 +272,7 @@
// Returns ETrue every time the index frame is valid, otherwise it returns EFalse.
inline TBool CBitmapAnim::IsFrameDisplayable() const
- { return ( (iIndex >= 0) && iBitmapAnimFrameDataArray[iIndex]->iBitmap ); }
+ { return ( (iIndex >= 0) && (iIndex < Count()) && iBitmapAnimFrameDataArray[iIndex]->iBitmap ); }
// Returns ETrue if the animation is running, otherwise it returns EFalse.
inline TBool CBitmapAnim::IsRunning() const
--- a/lafagnosticuifoundation/cone/group/BLD.INF Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/cone/group/BLD.INF Thu Jul 22 16:35:40 2010 +0100
@@ -52,7 +52,7 @@
../inc/coeerrorconsts.h SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(graphics/cone/coeerrorconsts.h)
../bwins/COEFEPU.DEF /epoc32/release/wins/coefepu.def
-../EABI/COEFEPU.DEF /epoc32/include/def/eabi/coefepu.def
+../eabi/COEFEPU.DEF /epoc32/include/def/eabi/coefepu.def
../group/cone.iby /epoc32/rom/include/cone.iby
--- a/lafagnosticuifoundation/cone/src/COECNTSS.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/cone/src/COECNTSS.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -208,6 +208,7 @@
@param aLogicalToPixelSizes TInt array to be poulated with font sizes */
EXPORT_C void CCoeControlStaticSettings::GetLogicalToPixelFontSizesL(RArray<TInt>& aLogicalToPixelSizes)
{
+ CleanupClosePushL(aLogicalToPixelSizes);
CCoeControlStaticSettings* self = Self();
aLogicalToPixelSizes.Reset();
@@ -224,6 +225,7 @@
User::LeaveIfError(aLogicalToPixelSizes.Append(22));
User::LeaveIfError(aLogicalToPixelSizes.Append(26));
}
+ CleanupStack::Pop(&aLogicalToPixelSizes);
}
/**
--- a/lafagnosticuifoundation/cone/src/COEFEP.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/cone/src/COEFEP.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -18,7 +18,7 @@
#include <e32std.h>
#include <e32base.h>
#include <coemain.h>
-#include "coedatastorage.h"
+#include "CoeDataStorage.h"
#include "coepanic.h"
#include <centralrepository.h>
#include "coedefkeys.h"
--- a/lafagnosticuifoundation/cone/src/COEMAIN.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/cone/src/COEMAIN.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -21,7 +21,7 @@
#include "COETLS.H"
#include "COEFEP.H" // class FepName
#include "coepanic.h"
-#include "coever.h"
+#include "COEVER.H"
#include <coecntrl.h>
#include <coeerror.h>
#include "coeenvextra.h"
@@ -30,7 +30,7 @@
#include <viewcli.h>
#include <coeaui.h>
#include <hal.h>
-#include "coedatastorage.h"
+#include "CoeDataStorage.h"
#include <coefontprovider.h>
#include <centralrepository.h>
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
--- a/lafagnosticuifoundation/cone/src/COEMAINSECUREFEP.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/cone/src/COEMAINSECUREFEP.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -18,7 +18,7 @@
#include "coepanic.h"
#include <fepplugin.h>
#include "COEFEP.H"
-#include "coedatastorage.h"
+#include "CoeDataStorage.h"
#include <ecom/ecom.h>
@@ -74,6 +74,7 @@
@param aDisplayNames The array of FEP display names to be filled. May be passed as NULL if display names are not required.
*/
{
+ CleanupClosePushL(aUids);
aUids.Reset();
if(aDisplayNames)
{
@@ -93,6 +94,7 @@
}
}
CleanupStack::PopAndDestroy(&implementationArray);
+ CleanupStack::Pop(&aUids);
}
EXPORT_C void CCoeEnv::InstallFepL(TUid aFepUid)
--- a/lafagnosticuifoundation/cone/src/CoeDataStorage.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/cone/src/CoeDataStorage.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -17,7 +17,7 @@
#include <s32mem.h>
#include <centralrepository.h>
#include <coemain.h>
-#include "coedatastorage.h"
+#include "CoeDataStorage.h"
#include <coedef.h>
#include <gulcolor.h>
#include <barsread.h>
--- a/lafagnosticuifoundation/cone/src/CoeEnvExtra.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/cone/src/CoeEnvExtra.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -169,11 +169,13 @@
void CCoeEnvExtra::AddObserverL(RArray<TAny*>& aArrayOfObservers, TAny* aObserver)
{
__ASSERT_ALWAYS(aObserver!=NULL, Panic(ECoePanicIllegalNullParameter3));
+ CleanupClosePushL(aArrayOfObservers);
for (TInt i=aArrayOfObservers.Count()-1; i>=0; --i)
{
__ASSERT_ALWAYS(aArrayOfObservers[i]!=aObserver, Panic(ECoePanicFocusObserverHasAlreadyBeenAdded));
}
User::LeaveIfError(aArrayOfObservers.Append(aObserver));
+ CleanupStack::Pop(&aArrayOfObservers);
}
void CCoeEnvExtra::RemoveObserver(RArray<TAny*>& aArrayOfObservers, const TAny* aObserver)
--- a/lafagnosticuifoundation/graphicseffects/group/GfxTransAdapterStub.mmp Mon Jun 21 22:36:19 2010 +0100
+++ b/lafagnosticuifoundation/graphicseffects/group/GfxTransAdapterStub.mmp Thu Jul 22 16:35:40 2010 +0100
@@ -36,8 +36,8 @@
LIBRARY euser.lib
#if defined(WINSCW)
-deffile ../Adapter/BWINS/GFXTRANSADAPTER.DEF
+deffile ../Adapter/bwins/GFXTRANSADAPTER.DEF
#else
-deffile ../Adapter/EABI/GFXTRANSADAPTER.DEF
+deffile ../Adapter/eabi/GFXTRANSADAPTER.DEF
#endif
SMPSAFE
--- a/tsrc/group/bld.inf Mon Jun 21 22:36:19 2010 +0100
+++ b/tsrc/group/bld.inf Thu Jul 22 16:35:40 2010 +0100
@@ -24,7 +24,6 @@
#include "../../classicui_plat/avkon_secondary_display_support_api/tsrc/group/bld.inf"
#include "../../classicui_plat/avkon_ui_server_api/tsrc/group/bld.inf"
#include "../../classicui_plat/battery_pane_api/tsrc/group/bld.inf"
-#include "../../classicui_plat/common_file_dialogs_filter_factory_api/tsrc/group/bld.inf"
#include "../../classicui_plat/custom_cursors_api/tsrc/group/bld.inf"
#include "../../classicui_plat/eikon_server_extension_client_api/tsrc/group/bld.inf"
#include "../../classicui_plat/emergency_call_support_api/tsrc/group/bld.inf"
@@ -81,7 +80,6 @@
#include "../../classicui_pub/base_controls_api/tsrc/group/bld.inf"
#include "../../classicui_pub/buttons_api/tsrc/group/bld.inf"
#include "../../classicui_pub/choice_list_api/tsrc/group/bld.inf"
-#include "../../classicui_pub/common_file_dialogs_api/tsrc/group/bld.inf"
#include "../../classicui_pub/context_pane_api/tsrc/group/bld.inf"
#include "../../classicui_pub/dialog_shutter_api/tsrc/group/bld.inf"
#include "../../classicui_pub/dialogs_api/tsrc/group/bld.inf"
--- a/uifw/AknGlobalUI/AknCapServer/clientsrc/AknCapServerClient.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AknGlobalUI/AknCapServer/clientsrc/AknCapServerClient.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -29,6 +29,7 @@
#include <apasvst.h>
#include <aknconsts.h>
#include <AknNotifierControllerUtilities.h>
+#include <e32notif.h>
// For global note.
#include <AknGlobalNote.h>
--- a/uifw/AknGlobalUI/AknCapServer/inc/AknCapServerEntry.h Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AknGlobalUI/AknCapServer/inc/AknCapServerEntry.h Thu Jul 22 16:35:40 2010 +0100
@@ -192,7 +192,6 @@
void PublishHiddenList();
void PublishInstalledLanguagesL();
static TInt GlobalNotesAllowedCallBack(TAny* aPtr);
- static TInt TelephonyIdleUidCallBack(TAny* aPtr);
void HandlePropertyChange(const TInt aProperty);
void ProcessInitFlipStatus();
void InitiateOFNStatus();
@@ -264,8 +263,6 @@
RProperty iGlobalNotesAllowedProperty;
CPropertySubscriber* iGlobalNotesAllowedSubscriber;
- RProperty iTelephonyIdleUidProperty;
- CPropertySubscriber* iTelephonyIdleUidSubscriber;
TBool iIdleActive;
};
--- a/uifw/AknGlobalUI/AknCapServer/src/AknCapServerEntry.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AknGlobalUI/AknCapServer/src/AknCapServerEntry.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -32,7 +32,6 @@
#endif
#include "avkoninternalpskeys.h" // KAknIdleAppWindowGroupId
#include <AknCapServerDefs.h>
-#include <activeidle2domainpskeys.h>
#include <eikpriv.rsg>
#include <coedef.h>
#include <eiksvdef.h>
@@ -84,7 +83,7 @@
#include "akncapserverdiscreetpopuphandler.h"
const TUid KPtiEnginePSUid = {0x101F8610}; // Same as PtiEngine dll
-
+const TUid KPhoneUid = { 0x100058B3 };
enum TPtiEnginePSKeys
{
EKeyMapPropertyCount,
@@ -153,7 +152,6 @@
CAknCapAppServerAppUi::~CAknCapAppServerAppUi()
{
delete iAlternateFS;
- delete iTelephonyIdleUidSubscriber;
delete iGlobalNotesAllowedSubscriber;
if (iKeyCaptureControl)
@@ -442,16 +440,6 @@
iGlobalNotesAllowedSubscriber->Subscribe();
- // Start listening "telephony idle uid" property.
- User::LeaveIfError(iTelephonyIdleUidProperty.Attach(
- KPSUidAiInformation,
- KActiveIdleUid));
-
- iTelephonyIdleUidSubscriber = new (ELeave) CPropertySubscriber(
- TCallBack(TelephonyIdleUidCallBack, this),
- iTelephonyIdleUidProperty);
-
- iTelephonyIdleUidSubscriber->Subscribe();
#ifdef RD_INTELLIGENT_TEXT_INPUT
TInt err1 = 0;
@@ -1359,15 +1347,6 @@
return KErrNone;
}
-TInt CAknCapAppServerAppUi::TelephonyIdleUidCallBack(TAny* aPtr)
- {
- CAknCapAppServerAppUi* self = static_cast<CAknCapAppServerAppUi*>(aPtr);
- if (self)
- {
- self->HandlePropertyChange(KActiveIdleUid);
- }
- return KErrNone;
- }
void CAknCapAppServerAppUi::HandlePropertyChange(const TInt aProperty)
{
@@ -1375,29 +1354,15 @@
{
case KUikGlobalNotesAllowed:
{
- TInt globalNotesAllowed = 0;
- TInt err = iTelephonyIdleUidProperty.Get(globalNotesAllowed);
- if(!err && globalNotesAllowed)
+ TUid uid = KPhoneUid;
+ TApaTaskList taskList ( CEikonEnv::Static ()->WsSession () );
+ TApaTask task = taskList.FindApp ( uid );
+ if ( task.Exists() )
{
- // Global notes allowed, so the boot is finished. Now the idle app uid and its
- // window group id can be fetched.
- HandlePropertyChange(KActiveIdleUid);
- }
- }
- break;
- case KActiveIdleUid:
- {
- TInt idleAppUid = 0;
- TInt err = iTelephonyIdleUidProperty.Get(idleAppUid);
- if(!err)
- {
- // Fetch the Idle application window group id.
- TApaTaskList taskList(CEikonEnv::Static()->WsSession());
- TApaTask task = taskList.FindApp(TUid::Uid(idleAppUid));
- TInt wgId = task.WgId();
-
+ TInt wgId = task.WgId ();
// Save the window group id to PubSub.
- RProperty::Set(KPSUidAvkonInternal, KAknIdleAppWindowGroupId, wgId);
+ RProperty::Set ( KPSUidAvkonInternal, KAknIdleAppWindowGroupId,
+ wgId );
}
}
break;
--- a/uifw/AknGlobalUI/AknCapServer/src/aknphonekeyforwarder.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AknGlobalUI/AknCapServer/src/aknphonekeyforwarder.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -18,17 +18,11 @@
#include <e32property.h>
#include <e32std.h> // needed because activeidle2domainpskeys.h doesn't include this
#include "AknCapServerEntry.h"
-#include <activeidle2domainpskeys.h> // yet another nasty dep
#define KPhoneAppUid TUid::Uid(0x100058B3)
TBool AknPhoneKeyForwarder::ForwardKeyToPhoneApp(TAny* aKeyEvent)
{
- RProperty::Set(
- KPSUidAiInformation,
- KActiveIdleState,
- EPSAiNumberEntry );
-
RWsSession& ws = CCoeEnv::Static()->WsSession();
TApaTaskList list(ws);
TApaTask phone = list.FindApp(KPhoneAppUid);
--- a/uifw/AvKon/akncompamode/rom/akncompamode.iby Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AvKon/akncompamode/rom/akncompamode.iby Thu Jul 22 16:35:40 2010 +0100
@@ -30,7 +30,7 @@
S60_APP_EXE(akncompasrv)
// General settings plugin (ECOM)
-ECOM_PLUGIN(akncompags.dll, akncompags.rsc)
-data=DATAZ_\RESOURCE_FILES_DIR\akncompagsrsc.rsc RESOURCE_FILES_DIR\akncompagsrsc.rsc
+//ECOM_PLUGIN(akncompags.dll, akncompags.rsc)
+//data=DATAZ_\RESOURCE_FILES_DIR\akncompagsrsc.rsc RESOURCE_FILES_DIR\akncompagsrsc.rsc
#endif // AKNCOMPAMODE_IBY
--- a/uifw/AvKon/animdllsrc/AknAnimKeySound.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AvKon/animdllsrc/AknAnimKeySound.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -32,7 +32,7 @@
// This is currently nasty set dependencies, API should be moved to middleware layer asap
#include <ctsydomainpskeys.h>
-#include <activeidle2domainpskeys.h>
+
#include <networkhandlingdomainpskeys.h>
#include <PSVariables.h>
@@ -525,7 +525,6 @@
// If system is not in idle or there are calls ongoing, then end key ought to be generated.
User::LeaveIfError( RProperty::Get( KPSUidCtsyCallInformation, KCTsyCallState, ps ) );
- User::LeaveIfError( RProperty::Get( KPSUidAiInformation, KActiveIdleState, idle ) );
User::LeaveIfError( RProperty::Get( KPSUidUikon, KUikGlobalNotesAllowed, startupOk ) );
RDebug::Print(_L("call: %d, idle %d, notes %d"), ps, idle, startupOk);
@@ -536,23 +535,11 @@
{
return;
}
-
- if ( idle == EPSAiForeground )
- {
- // Notify active idle plugins that combined end key / power key has been pressed.
- RProperty::Set(KPSUidAvkonDomain, KAknEndKeyEvent, 1);
- }
-
if ( ps != EPSCTsyCallStateNone )
{
// A phone call is active.
aResult = EEmulateNowPhoneCallActive;
}
- else if ( idle != EPSAiForeground )
- {
- // We are not in idle view. No active phone calls.
- aResult = EEmulateNow;
- }
else
{
// We are in idle view with no active phone calls.
--- a/uifw/AvKon/group/avkon.mmp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AvKon/group/avkon.mmp Thu Jul 22 16:35:40 2010 +0100
@@ -343,6 +343,7 @@
LIBRARY viewcli.lib
LIBRARY aknphysics.lib
LIBRARY HWRMLightClient.lib
+LIBRARY lockclient.lib
DEFFILE AVKON.def
--- a/uifw/AvKon/rom/avkon.iby Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AvKon/rom/avkon.iby Thu Jul 22 16:35:40 2010 +0100
@@ -34,13 +34,11 @@
SCALABLE_IMAGE(BITMAP_DIR,BITMAP_DIR,avkon2)
SCALABLE_IMAGE(BITMAP_DIR,BITMAP_DIR,callstatus)
-SCALABLE_IMAGE(BITMAP_DIR,BITMAP_DIR,smiley)
// Avkon2.mif CDL header
ECOM_PLUGIN(102827CF.dll,102827CF.rsc)
data=DATAZ_\resource\cdl\102827CF_cdl_detail.rsc Resource\Cdl\102827CF_cdl_detail.rsc
data=ZRESOURCE\aknpriv.rsc RESOURCE_FILES_DIR\aknpriv.rsc
-data=ZRESOURCE\smiley.rsc RESOURCE_FILES_DIR\smiley.rsc
#include "aknglobalui.iby"
--- a/uifw/AvKon/src/AknCharMap.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AvKon/src/AknCharMap.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -42,7 +42,7 @@
#include <AknPanic.h>
#include "aknSctDialog.h" // CAknCharmapDialog
#include <aknPopupHeadingPane.h>
-#include <aknfep.rsg>
+//#include <aknfep.rsg>
#include <bautils.h>
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
#include <uikon/eikenvinterface.h>
--- a/uifw/AvKon/src/AknDef.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AvKon/src/AknDef.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -21,13 +21,8 @@
#include "AknDef.h"
#include <vwsdef.h> // TVwsViewId
-#ifdef RD_IDLE_SEPARATION
-#include <e32property.h>
-#include <activeidle2domainpskeys.h>
-#endif
-
-const TInt KPhoneUid( 0x100058B3 );
-const TInt KActiveIdle2Uid( 0x102750F0 );
+const TUid KPhoneUid = { 0x100058B3 };
+const TUid KPhoneViewUid = { 0x10282D81 };
// -----------------------------------------------------------------------------
// AknDef::GetPhoneIdleViewId()
@@ -38,56 +33,9 @@
//
EXPORT_C TInt AknDef::GetPhoneIdleViewId(TVwsViewId& aViewId)
{
- TInt uidValue = NULL;
- TInt retVal = KErrNone;
-
-#ifdef RD_IDLE_SEPARATION
- retVal = RProperty::Get( KPSUidAiInformation, KActiveIdleUid, uidValue );
- if(retVal == KErrNotFound)
- {
- retVal = KErrNone;
- uidValue = KPhoneUid;
- }
-#else
- uidValue = KPhoneUid; // Was defined as KAknPhoneIdleViewId in akndef.h.
-#endif // RD_IDLE_SEPARATION
-
- if(retVal == KErrNone)
- {
- aViewId = TVwsViewId(TUid::Uid(uidValue), TUid::Uid(uidValue));
- }
-
-#ifdef RD_BOOT_CUSTOMIZABLE_AI
-
- // ActiveIdle2 is view-based, so this is a temporary fix
- // in order to be able to activate idle from app shell with menu-key,
- // until a proper way for view uid acquisition is made.
-
- TInt pluginRangeStart;
- TInt pluginRangeEnd;
-
- RProperty::Get( KPSUidAiInformation, KAIActivePluginRangeStart, pluginRangeStart );
- RProperty::Get( KPSUidAiInformation, KAIActivePluginRangeEnd, pluginRangeEnd );
-
- if ( uidValue >= pluginRangeStart && uidValue <= pluginRangeEnd && pluginRangeEnd )
- {
- uidValue = KActiveIdle2Uid;
- aViewId.iAppUid = TUid::Uid( uidValue );
- }
- else if ( uidValue >= pluginRangeStart ) // end UID may not be defined
- {
- uidValue = KActiveIdle2Uid;
- aViewId.iAppUid = TUid::Uid( uidValue );
- }
-
- if ( uidValue == KActiveIdle2Uid )
- {
- aViewId.iViewUid = TUid::Uid(1);
- }
-
-#endif // RD_BOOT_CUSTOMIZABLE_AI
-
- return retVal;
+ aViewId.iAppUid = KPhoneUid;
+ aViewId.iViewUid = KPhoneViewUid;
+ return KErrNone;
}
// End of File
--- a/uifw/AvKon/src/AknKeyLock.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AvKon/src/AknKeyLock.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -37,6 +37,8 @@
#include <e32property.h>
#include "aknkeylock.h"
#include "AknNotifierController.h"
+#include <keyguardaccessapi.h>
+#include <devicelockaccessapi.h>
// RAknKeyLock
@@ -60,6 +62,7 @@
EXPORT_C TBool RAknKeyLock::IsKeyLockEnabled()
{
TInt value;
+ /*
TInt err = RProperty::Get(KPSUidAvkonDomain, KAknKeyguardStatus, value);
if ( err != KErrNone )
return EFalse;
@@ -72,6 +75,22 @@
default:
return EFalse;
}
+ */
+
+ TInt valueKeyguard;
+ CKeyguardAccessApi* iKeyguardAccess = CKeyguardAccessApi::NewL( );
+ valueKeyguard = iKeyguardAccess->IsKeyguardEnabled( );
+ delete iKeyguardAccess;
+
+ TInt valueDevicelock;
+ CDevicelockAccessApi* iDevicelockAccess = CDevicelockAccessApi::NewL( );
+ valueDevicelock = iDevicelockAccess->IsDevicelockEnabled( );
+ delete iDevicelockAccess;
+
+ value = EFalse;
+ if( valueKeyguard || valueDevicelock )
+ value = ETrue;
+ return value;
}
EXPORT_C void RAknKeyLock::EnableSoftNotifications(TBool aEnable)
@@ -103,12 +122,66 @@
void RAknKeyLock::SendMessage(TKeyLockNotifierReason aMessage)
{
+
+ switch(aMessage)
+ {
+ case ELockEnabled:
+ {
+ CKeyguardAccessApi* iKeyguardAccess = CKeyguardAccessApi::NewL( );
+ iKeyguardAccess->EnableKeyguard( ETrue );
+ delete iKeyguardAccess;
+ }
+ break;
+ case EEnableWithoutNote:
+ {
+ CKeyguardAccessApi* iKeyguardAccess = CKeyguardAccessApi::NewL( );
+ iKeyguardAccess->EnableKeyguard( EFalse );
+ delete iKeyguardAccess;
+ }
+ break;
+ case ELockDisabled:
+ {
+ CKeyguardAccessApi* iKeyguardAccess = CKeyguardAccessApi::NewL( );
+ iKeyguardAccess->DisableKeyguard( ETrue );
+ delete iKeyguardAccess;
+ }
+ break;
+ case EDisableWithoutNote:
+ {
+ CKeyguardAccessApi* iKeyguardAccess = CKeyguardAccessApi::NewL( );
+ iKeyguardAccess->DisableKeyguard( EFalse );
+ delete iKeyguardAccess;
+ }
+ break;
+ case EOfferKeylock:
+ {
+ CKeyguardAccessApi* iKeyguardAccess = CKeyguardAccessApi::NewL( );
+ iKeyguardAccess->OfferKeyguard( );
+ delete iKeyguardAccess;
+ }
+ break;
+ case EEnableAutoLockEmulation:
+ {
+ CDevicelockAccessApi* iDevicelockAccess = CDevicelockAccessApi::NewL( );
+ iDevicelockAccess->OfferDevicelock( ); // TODO maybe EnableDevicelock ?
+ delete iDevicelockAccess;
+ }
+ break;
+ default:
+ {
+ }
+ break;
+ }
+ /*
+ This is the old method. Not used anymore because now KeyguardAccessApi and DeviceLockAccessApi send the requests to Autolock
+
TPckgBuf<SAknNotifierPackage<SAknKeyLockNotifierParams> > data;
TRequestStatus status;
data().iParamData.iReason = aMessage;
StartNotifierAndGetResponse(status,KAknKeyLockNotifierUid, data, data);
User::WaitForRequest(status);
CancelNotifier(KAknKeyLockNotifierUid);
+ */
}
// RAknKeyLock2
--- a/uifw/AvKon/src/Aknslider.cpp Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/AvKon/src/Aknslider.cpp Thu Jul 22 16:35:40 2010 +0100
@@ -63,7 +63,7 @@
// Default draw color
const TInt KAknSliderDefaultDrawColor = 120;
const TInt KScrollRepeatTimeout = 250000; // 0.25 seconds
-const TInt KStableFeedbackIntesity = 50;
+const TInt KStableFeedbackIntesity = 100;
const TInt KFeedbackTimeout = 100000;
const TInt KNoFeedbackTimeout = 0;
const TInt KStepThreshold = 15;
--- a/uifw/EikStd/cdlgsrc/EIKALERT.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/EikStd/cdlgsrc/EIKALERT.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -15,7 +15,7 @@
*
*/
-
+#include <e32notif.h>
#include <eikalert.h>
#include <eikon.hrh>
#include <eikcdlg.rsg>
--- a/uifw/EikStd/coctlsrc/EIKSCRLB.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/EikStd/coctlsrc/EIKSCRLB.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -41,7 +41,7 @@
#include "eikscrlb.h"
#include "EIKSBEXT.H"
-const TInt KIntensity = 50; // 50%
+const TInt KIntensity = 100; // 100%
const TInt KScrollBarWidth=9;
// const TInt KScrollButtonHeight=10;
@@ -1324,7 +1324,7 @@
feedback->StartFeedback( this,
ETouchContinuousSlider,
&aPointerEvent,
- KIntensity, // intensity 50%
+ KIntensity, // intensity 100%
timeout );
}
extension->SetModelThumbPosition(thumbPosition);
--- a/uifw/EikStd/srvuisrc/EIKSRVUI.CPP Mon Jun 21 22:36:19 2010 +0100
+++ b/uifw/EikStd/srvuisrc/EIKSRVUI.CPP Thu Jul 22 16:35:40 2010 +0100
@@ -628,12 +628,13 @@
EXPORT_C void CEikServAppUiBase::HandleThreadExitL(RThread& aThread)
{
+ _LIT(KAppArcServerThread, "AppArcServerThread");
if (aThread.Name() == ASCliDefinitions::ServerAndThreadName()) // alarm server died
{
aThread.Close(); // need to Close() before restarting with same name
iServerToRestart |= EAlwlSvr; // restarted under active object
}
- else if (aThread.Name()==NameApaServServerThread()) // AppArc server died
+ else if (aThread.Name() == KAppArcServerThread) // AppArc server died
{
aThread.Close();
iServerToRestart|=EApaSvr;
@@ -1069,7 +1070,11 @@
_LIT(KTimeout, "timeout");
_LIT(KTitle, "title");
- CHbDeviceDialogSymbian* dlg = CHbDeviceDialogSymbian::NewL();
+ //@TODO replace the hardcoded parameter after enum EASyncServerStartup
+ // is defined(after MCL wk26).
+ //CHbDeviceDialogSymbian* dlg = CHbDeviceDialogSymbian::NewL(
+ // CHbDeviceDialogSymbian::EASyncServerStartup);
+ CHbDeviceDialogSymbian* dlg = CHbDeviceDialogSymbian::NewL(2);
CleanupStack::PushL(dlg);
TInt timeout = 0;